[Freeswitch-users] Reading SIP headers
Anthony Minessale
anthony.minessale at gmail.com
Mon Oct 13 13:30:10 PDT 2008
${sip_h_X-conf-pin} should do the trick.
All X- headers are made into vars prepended with sip_h_
And all such vars will be turned back into X-headers on outbound.
*HINT* you can use the "info" app to see all the variables.
On Mon, Oct 13, 2008 at 3:23 PM, Kristian Kielhofner <
kkielhofner at star2star.com> wrote:
> Hello everyone,
>
> I'm trying to read SIP headers as described here:
>
> http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx
>
> It sounds like I should be able to grab an arbitrary SIP header and
> use it in my XML dialplan, right? However I've tried this and it
> doesn't seem to work. Here's the header I'm attaching:
>
> X-conf-pin: 1234
>
> However, reading sip_X-conf-pin doesn't return anything. What am I
> missing here? Is there any other way to read SIP headers?
>
> Thanks!
>
> --
> Kristian Kielhofner
> http://blog.krisk.org
> http://www.submityoursip.com
> http://www.astlinux.org
> http://www.star2star.com
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081013/48b5918d/attachment-0002.html
More information about the FreeSWITCH-users
mailing list