[asterisk-users] SIPAddHeader cmd from Realtime MySQL, not getting all the 'appdata' field

JR Richardson jmr.richardson at gmail.com
Tue Sep 11 12:02:02 CDT 2007


Hi All,

I'm doing some simple paging functions and using the SIPAddHeader cmd.
* 1.2 branch. Using it in the extensions.conf file, it works fine:

exten => _*2XX,1,SIPAddHeader(Call-Info: sip:\;answer-after=0)

in * console:

lab2*CLI>
    -- Executing SIPAddHeader("SIP/204-0818dcd0", "Call-Info:
sip:;answer-after=0") in new stack

When i put the same cmd in Realtime MySQL, I get this:

-- Executing SIPAddHeader("SIP/53683-7ca5", ";answer-after=0") in new stack

Pulling the command from MySQL I loos the 'Call-Info: sip:' part of
the appdata field

Here is a direct query form MySQL:

mysql> select * from extensions where id like '5801'\G;
*************************** 1. row ***************************
         id: 5801
    context: demo
      exten: *107
   priority: 1
        app: SIPAddHeader
    appdata: Call-Info: sip:\;answer-after=0
accountcode: 0000
      notes: 0000
1 row in set (0.01 sec)

I'm wondering if the colons or the back slash is affecting this coming
into asterisk?

Thanks.

JR
-- 
JR Richardson
Engineering for the Masses



More information about the asterisk-users mailing list