[asterisk-bugs] [Asterisk 0012362]: Asterisk crashes everytime i try to dial a realtime peer. e.g.DIAL(SIP/peer/number, 60, tTwW)

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Apr 3 10:54:47 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12362 
====================================================================== 
Reported By:                vinsik
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12362
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-03-2008 07:36 CDT
Last Modified:              04-03-2008 10:54 CDT
====================================================================== 
Summary:                    Asterisk crashes everytime i try to dial a realtime
peer. e.g.DIAL(SIP/peer/number,60,tTwW)
Description: 
Asterisk crashes everytime i try to dial a realtime peer.

Command line output:
-- AGI Script Executing Application: (SET) Options:
(CDR(accountcode)=10000)
-- AGI Script Executing Application: (SET) Options:
(CALLERID(num)=123456)
-- AGI Script Executing Application: (DIAL) Options:
(SIP/roxser/123456|60|tTwW)
Disconnected from Asterisk server

Local realtime users work fine. Also all local CMD's work.
Cannot find an logical reason. Reverting back to 1.4.18, as it works ok.


Attached is GDB of asterisk process. 
Asterisk debug does not reveal anything relevant.
====================================================================== 

---------------------------------------------------------------------- 
 vinsik - 04-03-08 10:54  
---------------------------------------------------------------------- 
snuffy, will do. :)
putnopvut, it worked fine. Thanks for fast reply.

I am still wondering though, why cant i dial like this? 
SIP/peernamefromsql/number <-

Is this method obsolete?

res_config_mysql modules checks the host like this:
[Apr  3 18:49:45] DEBUG[9061] res_config_mysql.c: MySQL RealTime: Retrieve
SQL: SELECT * FROM server_sip_users WHERE name = 'roxser' AND host =
'dynamic'
And since it has host='HOSTNAME', asterisk cannot find peer properly. 
Only way for me to work around, is to use a hostname:

SIP/peerhostname/number

But with just the hostname i cannot define username/passwords to 
DIAL CMD if the other side requests them. This modification in the
asterisk code has been made for a reason, i presume. So what am i doing
wrong?

I dont know did i make any sence, but bare with me. :) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-03-08 10:54  vinsik         Note Added: 0084995                          
======================================================================




More information about the asterisk-bugs mailing list