Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Reading SIP headers


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anthony.minessale at g...
Guest





PostPosted: Mon Oct 13, 2008 3:30 pm    Post subject: [Freeswitch-users] Reading SIP headers Reply with quote

${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@star2star.com (kkielhofner@star2star.com)> wrote:
Quote:
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@lists.freeswitch.org (Freeswitch-users@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@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
kkielhofner at star2st...
Guest





PostPosted: Mon Oct 13, 2008 3:38 pm    Post subject: [Freeswitch-users] Reading SIP headers Reply with quote

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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Mon Oct 13, 2008 3:41 pm    Post subject: [Freeswitch-users] Reading SIP headers Reply with quote

Try out the info app and see what happens to be there and you can get at it.

/b

On Oct 13, 2008, at 1:23 PM, Kristian Kielhofner wrote:
Quote:
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!
Back to top
kkielhofner at star2st...
Guest





PostPosted: Mon Oct 13, 2008 3:59 pm    Post subject: [Freeswitch-users] Reading SIP headers Reply with quote

On Mon, Oct 13, 2008 at 4:30 PM, Anthony Minessale
<anthony.minessale@gmail.com> wrote:
Quote:
${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.


That's so money.

Thanks guys!

--
Kristian Kielhofner
http://blog.krisk.org
http://www.submityoursip.com
http://www.astlinux.org
http://www.star2star.com

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services