[Home]

Summary:ASTERISK-01589: ast_gethostbyname interprets a peername with all numbers as a integers based IP address
Reporter:connor (connor)Labels:
Date Opened:2004-05-11 14:08:33Date Closed:2004-09-25 02:46:02
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I use 10 digit numbers for peernames (phone numbers) and Have crashes when someone trys to dial a peer that might be lagged out or down.  Attached is a back trace of the core dump.  This is related to the app_queue problem I found a while back that I thought as fixed by upgrading to latest CVS.  

****** ADDITIONAL INFORMATION ******

#0  0x41a98f96 in create_addr (r=0x8223398, peer=0x4a930f6c "84352472872") at chan_sip.c:1022
#1  0x08223a30 in ?? ()
#2  0x41a96ad5 in sip_request (type=0x4a93186c "SIP", format=4, data=0x8223398) at chan_sip.c:6675
#3  0x0805ac70 in ast_request (type=0x4a93186c "SIP", format=4, data=0xfbad2a84) at channel.c:1768
#4  0x41c951ed in dial_exec (chan=0x835ee28, data=0x4a93186c) at app_dial.c:670
ASTERISK-1  0x0806d376 in pbx_exec (c=0x835ee28, app=0x80fc900, data=0x4a931bac, newstack=1) at pbx.c:424
ASTERISK-2  0x08074b01 in pbx_extension_helper (c=0x835ee28, context=0x835ef80 "8435247287", exten=0x4a93186c "SIP",
   priority=304, callerid=0x80ea190 "\"Butler Marine\" <843-522-9461>", action=135554144) at pbx.c:1207
ASTERISK-3  0x0806f2dc in ast_pbx_run (c=0x8146460) at pbx.c:1691
ASTERISK-4  0x080751c1 in pbx_thread (data=0xfbad2a84) at pbx.c:1916
ASTERISK-5  0x400252b6 in start_thread () from /lib/tls/libpthread.so.0
Comments:By: Mark Spencer (markster) 2004-05-11 14:31:42

The crash has already been fixed in bug 1590.  I've also modified CVS head to not look up pure integers.