[asterisk-bugs] [Asterisk 0018514]: [patch] Problem with dialing SIP peer that is not reachable.

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 29 09:12:25 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18514 
====================================================================== 
Reported By:                jarekj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18514
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.1.1 
JIRA:                       SWP-2807 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-21 15:32 CST
Last Modified:              2011-04-29 09:12 CDT
====================================================================== 
Summary:                    [patch] Problem with dialing SIP peer that is not
reachable.
Description: 
I am using:

*CLI> core show version
Asterisk 1.8.1.1 built by root @ asterisk on a i686 running Linux on
2010-12-17 23:03:58 UTC

I have some problem with DIal() to SIP unreachable friend.

My dialplan:

exten => _XXXX,1,Dial(SIP/${EXTEN},60,rt)

Now, when I Dial extension 1050, and there is no 1050 peer registered I
got:

[Dec 18 22:51:04] WARNING[2307] chan_sip.c: sip_xmit of 0xc2e1330 (len
843) to 0.0.4.26:5060 returned -1: Invalid argument

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0019087 chan_sip.c:3115 __sip_xmit: sip_xmit of...
has duplicate       0019144 Asterisk tries to send an INVITE even w...
====================================================================== 

---------------------------------------------------------------------- 
 (0134269) satish_lx (reporter) - 2011-04-29 09:12
 https://issues.asterisk.org/view.php?id=18514#c134269 
---------------------------------------------------------------------- 
@pabelanger,

Much much better v3 is. There is a 5 second silence before it say Invalid
extension :)  

But in asterisk 1.2 and 1.4 has only 1 or 2 second to declare invalid
extension. 

Now i am getting following error "ERROR[12988]" RED keyword sometime looks
scary to me :( can we change it to WARNING :) 

[Apr 29 10:08:44] ERROR[12988]: netsock2.c:263 ast_sockaddr_resolve:
Unable to resolve hostname '7203': Name or service not known
[Apr 29 10:08:44] WARNING[12988]: chan_sip.c:5182 create_addr: No such
host: 7203
[Apr 29 10:08:44] WARNING[12988]: app_dial.c:2039 dial_exec_full: Unable
to create channel of type 'sip' (cause 20 - Unknown) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-29 09:12 satish_lx      Note Added: 0134269                          
======================================================================




More information about the asterisk-bugs mailing list