[Home]

Summary:ASTERISK-01557: Asterisk crashes with following syntax error in extensions.conf: exten => 1000,1,Dial(IAX2/60.254.236.xxx${EXTEN})
Reporter:atob (atob)Labels:
Date Opened:2004-05-07 13:06:05Date Closed:2008-01-15 14:54:01.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When asterisk tries to execute this line (which is missing the '/' between the ip address and ${EXTEN}): exten => 1000,1,Dial(IAX2/60.254.236.xxx${EXTEN})
it crashes.
I would expect it to throw out an error message and not crash. On correctly putting in the '/', it works ok.
exten => 1000,1,Dial(IAX2/60.254.236.xxx/${EXTEN})
This is happening for the following CVS version: 30th April 2004.
Comments:By: Brian West (bkw918) 2004-05-07 14:17:46

I can't recreate this.  Can you update?

By: Brian West (bkw918) 2004-05-07 14:19:58

AH HA found it.

#0  0x403bcd15 in create_addr (sin=0xbdbfed24, capability=0xbdbfec08, sendani=0xbdbfec0c, maxtime=0xbdbfec10,
   peer=0xbdbfec24 "65.38.23.131000", context=0x0, trunk=0xbdbfec14, notransfer=0xbdbfec18, secret=0x0, seclen=-1111496844)
   at chan_iax2.c:2007
#1  0x403ba8ec in iax2_request (type=0xbdbff424 "IAX2", format=256, data=0xbdbfe774) at chan_iax2.c:5706
#2  0x0805af5e in ast_request (type=0xbdbff424 "IAX2", format=256, data=0xbdbfe774) at channel.c:1768
#3  0x4056720b in dial_exec (chan=0x810f110, data=0xbdbff1d4) at app_dial.c:652
#4  0x0806ca2f in pbx_exec (c=0x810f110, app=0x8159768, data=0xbdbff764, newstack=1) at pbx.c:424
ASTERISK-1  0x0807436b in pbx_extension_helper (c=0x810f110, context=0x810f268 "default", exten=0x810f35c "1000", priority=1,
   callerid=0x8162220 "\"Brian West\" <10>", action=-1111492924) at pbx.c:1206
ASTERISK-2  0x0806e9da in ast_pbx_run (c=0x810f110) at pbx.c:1690
ASTERISK-3  0x08074991 in pbx_thread (data=0xbdbfe774) at pbx.c:1915
ASTERISK-4  0x40023de1 in pthread_detach () from /lib/libpthread.so.0
ASTERISK-5  0x401c5aba in clone () from /lib/libc.so.6

By: Brian West (bkw918) 2004-05-07 14:20:49

It only happens when you use an IP thats jacked up.  Does like it should when using a hostname.

bkw

By: Mark Spencer (markster) 2004-05-07 17:01:42

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:54:01.000-0600

Repository: asterisk
Revision: 2916

U   trunk/asterisk.c

------------------------------------------------------------------------
r2916 | markster | 2008-01-15 14:54:01 -0600 (Tue, 15 Jan 2008) | 2 lines

Check that hp->h_addr is not NULL before returning success (bug ASTERISK-1557)

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

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