Summary: | ASTERISK-11828: Realtime Dial Crash | ||
Reporter: | Bill Kunyiha (bgitonga) | Labels: | |
Date Opened: | 2008-04-10 18:51:57 | Date Closed: | 2008-04-11 09:32:26 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | . I did not set the category correctly. |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I’m using asterisk realtime with Postgres and UnixODBC. When you have the trunk defines in realtime, and dial a number, asterisk crashes, but when you have the trunk defines in sip.conf, it works ok. For example dialing using the following defined in sip.conf will dial out ok but the database entry does not work in realtime and causes asterisk to crash. This works in asterisk-1.4.18 but not asterisk-1.4.19 Exten=> _1NXNNXXXXXX,1,Dial(SIP/${EXTEN}@trunk1|60) //This Works [trunk1] type=friend username=username secret=secret callerid="Name" <NUM> host=Provider IP canreinvite=yes context=context dtmfmode=rfc2833 disallow=all allow=ulaw //This Does not work INSERT INTO sip_buddies(name,callerid,canreinvite,context,dtmfmode,host, ,type,disallow,allow,username,secret) VALUES ('trunk1','Name <NUM>','yes','context','rfc2833',’Provider IP','friend','all','ulaw','username','sectret'); | ||
Comments: | By: Bill Kunyiha (bgitonga) 2008-04-10 19:47:52 Using gdb, its failing at the following condition. at chan_sip.c:2547 2547 if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr, &sin->sin_addr, sizeof(hp->h_addr)))) { By: Mark Michelson (mmichelson) 2008-04-11 09:32:24 Closing, as this is a duplicate of issue ASTERISK-11777, which has been fixed. |