Skip to content

Commit 1e87cad

Browse files
InterLinked1kharwell
authored andcommitted
app_dial: Document DIALSTATUS return values.
Adds documentation for all of the possible return values for the DIALSTATUS variable in the Dial application. ASTERISK-25716 Change-Id: Id22593f1f1f7ea86e5734cee49516ec50848e8c0
1 parent d3abdf0 commit 1e87cad

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

apps/app_dial.c

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,31 @@
613613
</variable>
614614
<variable name="DIALSTATUS">
615615
<para>This is the status of the call</para>
616-
<value name="CHANUNAVAIL" />
617-
<value name="CONGESTION" />
618-
<value name="NOANSWER" />
619-
<value name="BUSY" />
620-
<value name="ANSWER" />
621-
<value name="CANCEL" />
616+
<value name="CHANUNAVAIL">
617+
Either the dialed peer exists but is not currently reachable, e.g.
618+
endpoint is not registered, or an attempt was made to call a
619+
nonexistent location, e.g. nonexistent DNS hostname.
620+
</value>
621+
<value name="CONGESTION">
622+
Channel or switching congestion occured when routing the call.
623+
This can occur if there is a slow or no response from the remote end.
624+
</value>
625+
<value name="NOANSWER">
626+
Called party did not answer.
627+
</value>
628+
<value name="BUSY">
629+
The called party was busy or indicated a busy status.
630+
Note that some SIP devices will respond with 486 Busy if their Do Not Disturb
631+
modes are active. In this case, you can use DEVICE_STATUS to check if the
632+
endpoint is actually in use, if needed.
633+
</value>
634+
<value name="ANSWER">
635+
The call was answered.
636+
Any other result implicitly indicates the call was not answered.
637+
</value>
638+
<value name="CANCEL">
639+
Dial was cancelled before call was answered or reached some other terminating event.
640+
</value>
622641
<value name="DONTCALL">
623642
For the Privacy and Screening Modes.
624643
Will be set if the called party chooses to send the calling party to the 'Go Away' script.
@@ -627,7 +646,9 @@
627646
For the Privacy and Screening Modes.
628647
Will be set if the called party chooses to send the calling party to the 'torture' script.
629648
</value>
630-
<value name="INVALIDARGS" />
649+
<value name="INVALIDARGS">
650+
Dial failed due to invalid syntax.
651+
</value>
631652
</variable>
632653
</variablelist>
633654
</description>
@@ -3602,4 +3623,4 @@ AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Dialing Application",
36023623
.load = load_module,
36033624
.unload = unload_module,
36043625
.requires = "ccss",
3605-
);
3626+
);

0 commit comments

Comments
 (0)