[Home]

Summary:ASTERISK-04176: DIALSTATUS is returning CONGESTION when it should return CHANUNAVAIL when dialing disconnected SIP phone
Reporter:Jean-Yves Avenard (jyavenard)Labels:
Date Opened:2005-05-15 06:16:58Date Closed:2008-01-15 15:34:55.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Example:
   -- Executing Dial("SIP/ipp100-e5aa", "SIP/ipp107|20|Ttr") in new stack
May 15 21:12:55 NOTICE[608]: app_dial.c:968 dial_exec_full: Unable to create channel of type 'SIP' (cause 3)
 == Everyone is busy/congested at this time (1:0/1/0)
   -- Executing NoOp("SIP/ipp100-e5aa", "CONGESTION") in new stack

${DIALSTATUS} should have been CHANUNAVAIL (works in Asterisk 1.0.7)
In CVS-HEAD it returns CONGESTION when either a SIP or a IAX2 is dialed and not connected
Comments:By: Clod Patry (junky) 2005-05-15 08:24:01

hi, could you active the debug mode ?
Plus i'd like to see a sip show peers before the dial.

By: Kevin P. Fleming (kpfleming) 2005-05-15 11:58:01

Moved bug to proper category.

By: Jean-Yves Avenard (jyavenard) 2005-05-15 18:44:25

voip*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Mask             Port     Status    
morsang-out/morsang-out    82.235.79.8      D   N      255.255.255.255  5061     OK (386 ms)
morsang/morsang            82.235.79.8      D   N      255.255.255.255  5060     OK (386 ms)
cyrille/cyrille            (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
gerald-out/gerald-out      218.214.19.13    D   N      255.255.255.255  60741    UNREACHABLE
gerald/gerald              218.214.19.13    D   N      255.255.255.255  60742    UNREACHABLE
ipp201/patrick             (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
jya-home-out/jya-home-out  203.166.233.162  D   N      255.255.255.255  5061     OK (66 ms)
jya-home/jya-home          203.166.233.162  D   N      255.255.255.255  5060     OK (66 ms)
ipp127                     (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
ipp126/ipp126              192.168.0.251    D   N      255.255.255.255  5060     OK (4 ms)
ipp125/ipp125              192.168.0.203    D   N      255.255.255.255  5060     OK (4 ms)
ipp124/ipp124              192.168.1.34     D          255.255.255.255  5060     OK (4 ms)
ipp123                     (Unspecified)    D          255.255.255.255  0        UNKNOWN  
ipp122/ipp122              192.168.1.32     D          255.255.255.255  5060     OK (4 ms)
ipp121/ipp121              192.168.1.31     D          255.255.255.255  5060     OK (117 ms)
ipp120/ipp120              192.168.1.30     D          255.255.255.255  5060     OK (122 ms)
ipp119/ipp119              192.168.0.101    D   N      255.255.255.255  5060     OK (16 ms)
ipp118                     (Unspecified)    D          255.255.255.255  0        UNKNOWN  
ipp117                     (Unspecified)    D          255.255.255.255  0        UNKNOWN  
ipp116                     (Unspecified)    D          255.255.255.255  0        UNKNOWN  
ipp115/ipp115              192.168.1.25     D          255.255.255.255  5060     OK (124 ms)
ipp114/ipp114              192.168.1.24     D          255.255.255.255  5060     OK (117 ms)
ipp113                     (Unspecified)    D          255.255.255.255  0        UNKNOWN  
ipp112/ipp112              192.168.1.22     D          255.255.255.255  5060     OK (122 ms)
ipp111                     (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
ipp110/ipp110              192.168.1.20     D   N      255.255.255.255  5060     OK (4 ms)
ipp109/ipp109              192.168.0.201    D   N      255.255.255.255  5060     OK (3 ms)
ipp108/ipp108              192.168.1.18     D   N      255.255.255.255  5060     OK (49 ms)
ipp107                     (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
ipp106/ipp106              192.168.1.16     D   N      255.255.255.255  5060     OK (4 ms)
ipp105/ipp105              192.168.1.15     D   N      255.255.255.255  5060     OK (4 ms)
ipp104/ipp104              192.168.1.14     D   N      255.255.255.255  5060     OK (4 ms)
ipp103/ipp103              192.168.0.100    D   N      255.255.255.255  9168     OK (5 ms)
ipp102/ipp102              192.168.1.12     D   N      255.255.255.255  5060     OK (63 ms)
ipp101/ipp101              192.168.1.11     D   N      255.255.255.255  5060     OK (3 ms)
ipp100/ipp100              203.166.233.162  D   N      255.255.255.255  8394     OK (50 ms)
guest                      (Unspecified)    D   N      255.255.255.255  0        UNKNOWN  
stanaphone/3475344065      204.147.183.18              255.255.255.255  5060     Unmonitored
38 sip peers [25 online , 13 offline]

By: Jean-Yves Avenard (jyavenard) 2005-05-15 18:46:30

Now dialing 107 which isn't registered:
   -- Executing Goto("SIP/ipp100-c84d", "sip|207|1") in new stack
   -- Goto (sip,207,1)
   -- Executing Macro("SIP/ipp100-c84d", "stdfwdiax|207|207|107") in new stack
   -- Executing DBget("SIP/ipp100-c84d", "temp=CFIM/207") in new stack
   -- DBget: varname=temp, family=CFIM, key=207
   -- DBget: Value not found in database.
   -- Executing Goto("SIP/ipp100-c84d", "3") in new stack
   -- Goto (macro-stdfwdiax,s,3)
   -- Executing Dial("SIP/ipp100-c84d", "IAX2/iax107|20|Ttr") in new stack
May 16 09:45:21 WARNING[3279]: chan_iax2.c:2727 create_addr: No such host: iax107
May 16 09:45:21 NOTICE[3279]: app_dial.c:968 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3)
 == Everyone is busy/congested at this time (1:0/1/0)
   -- Executing NoOp("SIP/ipp100-c84d", "CONGESTION") in new stack
   -- Executing Goto("SIP/ipp100-c84d", "s-CONGESTION|1") in new stack
   -- Goto (macro-stdfwdiax,s-CONGESTION,1)
   -- Executing Goto("SIP/ipp100-c84d", "s|400") in new stack
   -- Goto (macro-stdfwdiax,s,400)
   -- Executing Dial("SIP/ipp100-c84d", "SIP/ipp107|20|Ttr") in new stack
May 16 09:45:21 NOTICE[3279]: app_dial.c:968 dial_exec_full: Unable to create channel of type 'SIP' (cause 3)
 == Everyone is busy/congested at this time (1:0/1/0)
   -- Executing NoOp("SIP/ipp100-c84d", "CONGESTION") in new stack
   -- Executing Goto("SIP/ipp100-c84d", "s2-CONGESTION|1") in new stack
   -- Goto (macro-stdfwdiax,s2-CONGESTION,1)
   -- Executing Goto("SIP/ipp100-c84d", "s|200") in new stack
   -- Goto (macro-stdfwdiax,s,200)
   -- Executing DBget("SIP/ipp100-c84d", "temp=CFBS/207") in new stack
   -- DBget: varname=temp, family=CFBS, key=207
   -- DBget: Value not found in database.
   -- Executing Goto("SIP/ipp100-c84d", "202") in new stack
   -- Goto (macro-stdfwdiax,s,202)
   -- Executing VoiceMail("SIP/ipp100-c84d", "u207") in new stack
   -- Playing '/data/asterisk/var/spool/asterisk/voicemail/default/207/unavail' (language 'en')
voip*CLI>

By: Kevin P. Fleming (kpfleming) 2005-05-15 20:03:54

Fixed in CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:34:55.000-0600

Repository: asterisk
Revision: 5690

U   trunk/apps/app_dial.c

------------------------------------------------------------------------
r5690 | kpfleming | 2008-01-15 15:34:55 -0600 (Tue, 15 Jan 2008) | 2 lines

return CHANUNAVAIL for unregistered peers, not CONGESTION (bug ASTERISK-4176)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5690