Gavin Adams
2006-Jan-21 09:35 UTC
[Asterisk-Users] Asterisk 1.2.2 - Double Quote on CallerID Causing SIP Problem (7940)
Hi, I just upgraded by 1.0.x home server to 1.2.2. Overall the upgrade went fine, but a strange problem has cropped up with the CALLERID name value of incoming calls from the X101P card. When an incoming call is presented (via Vonage ATA), the calledid value getting double quotes up from: -- Executing NoOp("Zap/1-1", """WIRELESS CALLE" <1404xxxxxxx>") in new stack ^^ There are two double quotes at the beginning of the CALLERID name and one at the end. -- Executing Dial("Zap/1-1", "SIP/1000|15|j") in new stack -- Called 1000 -- Got SIP response 400 "Bad Request" back from 172.16.200.32 And then the phone rejects the call based on a malformed From: header. The from-pstn context is really simple at this point: [from-pstn] ; CALLS FROM PSTN NETWORK ; ;exten => s,1,VoicemailMain2 exten => s,1,NoOp(${CALLERID}) exten => s,2,Dial(${SIP_PHONE},15,j) exten => s,3,Voicemail(u1000) ; Gavin's voicemail, unavailable exten => s,4,Hangup exten => s,103,Voicemail(b1000) ; On the phone exten => s,104,Hangup My Zapata.conf file hasn't changed since 1.0.x and looks like the following: [channels] ; entries are inherited ; added this to see if it could be the culprit. Setting it to a known value ; such as "Test" <(800) 555-1212> does work (but then I lose the actual ; value callerid=asreceived callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes echocancel=yes echocancelwhenbridged=no rxgain=0.0 txgain=0.0 group=1 ; overkill in testing callerid=asreceived busydetect=yes context=from-pstn signalling=fxs_ks channel=>1 group=2 context=internal signalling=fxo_ks mailbox=1000 callerid="My name" <404 xxx xxxx> channel=>2 I'm running this under CentOS 4.2, fully yumified. Not being familiar with the 1.2 syntax, should I be looking in zaptel or asterisk to figure this out? I'll try to rebuild and install zaptel. Maybe the extra quote is coming from a mismatched version? Regards, --- Gavin Adams
Technical Support
2006-Jan-21 10:09 UTC
[Asterisk-Users] Asterisk 1.2.2 - Double Quote on CallerID CausingSIP Problem (7940)
Having learned the hard way...here's something I noticed in the code you posted: callerid="My name" <404 xxx xxxx> Try changing to: callerid=My name <404 xxx xxxx> Some subtle differences between the bash and asterisk interpreters can cause experienced users to scratch their heads...(unless there is another problem this might help) Michelle Dupuis Technical Support Specialist Oxford Consulting Group Ltd. Making IT work for your business... T: (519) 672-8238 E: support@ocg.ca W: www.ocg.ca -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Gavin Adams Sent: Saturday, January 21, 2006 11:35 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Asterisk 1.2.2 - Double Quote on CallerID CausingSIP Problem (7940) Hi, I just upgraded by 1.0.x home server to 1.2.2. Overall the upgrade went fine, but a strange problem has cropped up with the CALLERID name value of incoming calls from the X101P card. When an incoming call is presented (via Vonage ATA), the calledid value getting double quotes up from: -- Executing NoOp("Zap/1-1", """WIRELESS CALLE" <1404xxxxxxx>") in new stack ^^ There are two double quotes at the beginning of the CALLERID name and one at the end. -- Executing Dial("Zap/1-1", "SIP/1000|15|j") in new stack -- Called 1000 -- Got SIP response 400 "Bad Request" back from 172.16.200.32 And then the phone rejects the call based on a malformed From: header. The from-pstn context is really simple at this point: [from-pstn] ; CALLS FROM PSTN NETWORK ; ;exten => s,1,VoicemailMain2 exten => s,1,NoOp(${CALLERID}) exten => s,2,Dial(${SIP_PHONE},15,j) exten => s,3,Voicemail(u1000) ; Gavin's voicemail, unavailable exten => s,4,Hangup exten => s,103,Voicemail(b1000) ; On the phone exten => s,104,Hangup My Zapata.conf file hasn't changed since 1.0.x and looks like the following: [channels] ; entries are inherited ; added this to see if it could be the culprit. Setting it to a known value ; such as "Test" <(800) 555-1212> does work (but then I lose the actual ; value callerid=asreceived callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes echocancel=yes echocancelwhenbridged=no rxgain=0.0 txgain=0.0 group=1 ; overkill in testing callerid=asreceived busydetect=yes context=from-pstn signalling=fxs_ks channel=>1 group=2 context=internal signalling=fxo_ks mailbox=1000 callerid="My name" <404 xxx xxxx> channel=>2 I'm running this under CentOS 4.2, fully yumified. Not being familiar with the 1.2 syntax, should I be looking in zaptel or asterisk to figure this out? I'll try to rebuild and install zaptel. Maybe the extra quote is coming from a mismatched version? Regards, --- Gavin Adams _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users