Skip to content

Commit 892c065

Browse files
InterLinked1kharwell
authored andcommitted
chan_dahdi: Document dial resource options.
Documents the Dial syntax for DAHDI, namely the channel group, distinctive ring, answer confirmation, and digital call options that are specified in the resource itself. ASTERISK-24827 #close Change-Id: Ib95e78497fb00dc5cbfde1c93a69f034bfd08c30
1 parent 0a8b3d3 commit 892c065

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

Diff for: apps/app_dial.c

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<para>If you need more than one enter them as
8787
Technology2/Resource2&amp;Technology3/Resource3&amp;.....</para>
8888
</argument>
89+
<xi:include xpointer="xpointer(/docs/info[@name='Dial_Resource'])" />
8990
</parameter>
9091
<parameter name="timeout" required="false">
9192
<para>Specifies the number of seconds we attempt to dial the specified devices.</para>

Diff for: channels/chan_dahdi.c

+53
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,59 @@
234234
</enum>
235235
</enumlist>
236236
</info>
237+
<info name="Dial_Resource" language="en_US" tech="DAHDI">
238+
<para>DAHDI allows several modifiers to be specified as part of the resource.</para>
239+
<para>The general syntax is :</para>
240+
<para><literal>Dial(DAHDI/pseudo[/extension])</literal></para>
241+
<para><literal>Dial(DAHDI/&lt;channel#&gt;[c|r&lt;cadance#&gt;|d][/extension])</literal></para>
242+
<para><literal>Dial(DAHDI/(g|G|r|R)&lt;group#(0-63)&gt;[c|r&lt;cadance#&gt;|d][/extension])</literal></para>
243+
<para>The following modifiers may be used before the channel number:</para>
244+
<enumlist>
245+
<enum name="g">
246+
<para>Search forward, dialing on first available channel in group (lowest to highest).</para>
247+
</enum>
248+
<enum name="G">
249+
<para>Search backward, dialing on first available channel in group (highest to lowest).</para>
250+
</enum>
251+
<enum name="r">
252+
<para>Round robin search forward, picking up from where last left off (lowest to highest).</para>
253+
</enum>
254+
<enum name="R">
255+
<para>Round robin search backward, picking up from where last left off (highest to lowest).</para>
256+
</enum>
257+
</enumlist>
258+
<para>The following modifiers may be used after the channel number:</para>
259+
<enumlist>
260+
<enum name="c">
261+
<para>Wait for DTMF digit <literal>#</literal> before providing answer supervision.</para>
262+
<para>This can be useful on outbound calls via FXO ports, as otherwise
263+
they would indicate answer immediately.</para>
264+
</enum>
265+
<enum name="d">
266+
<para>Force bearer capability for ISDN/SS7 call to digital.</para>
267+
</enum>
268+
<enum name="i">
269+
<para>ISDN span channel restriction.</para>
270+
<para>Used by CC to ensure that the CC recall goes out the same span.
271+
Also to make ISDN channel names dialable when the sequence number
272+
is stripped off. (Used by DTMF attended transfer feature.)</para>
273+
</enum>
274+
<enum name="r">
275+
<para>Specifies the distinctive ring cadence number to use immediately after
276+
specifying this option. There are 4 default built-in cadences, and up to 24
277+
total cadences may be configured.</para>
278+
</enum>
279+
</enumlist>
280+
<example title="Dial 555-1212 on first available channel in group 1, searching from highest to lowest">
281+
same => n,Dial(DAHDI/g1/5551212)
282+
</example>
283+
<example title="Ringing FXS channel 4 with ring cadence 2">
284+
same => n,Dial(DAHDI/4r2)
285+
</example>
286+
<example title="Dial 555-1212 on channel 3 and require answer confirmation">
287+
same => n,Dial(DAHDI/3c/5551212)
288+
</example>
289+
</info>
237290
<manager name="DAHDITransfer" language="en_US">
238291
<synopsis>
239292
Transfer DAHDI Channel.

0 commit comments

Comments
 (0)