Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] SIP Headers and use of "" in the header


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





PostPosted: Mon Dec 22, 2008 12:00 pm    Post subject: [Freeswitch-users] SIP Headers and use of "" in th Reply with quote

Dear All,

I've been playing with the freeswitch options for one month now, and
I've been able to use it with kamailio working as a registrar.

What I'd like to do is to add a diversion header using the following
action in the dialplan:
<action application="export"
data="sip_h_Diversion=<123456789@10.10.10.254>;reason="unconditional""/>

Please note, that I'd like to put the word "unconditional" between
quotes, this is to comply with the SIP gateway to which I'm sending trafic.

But I've been unable to set an escape character to use theses quotes,
cause as you may understand, without escape character FS will consider
this instruction instead:

<action application="export"
data="sip_h_Diversion=<123456789@10.10.10.254>;reason="

cause the quote after reason= is considered as a closing quote for data=".

Is there a way to achieve this.

Thanks.
rod

_______________________________________________
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
mike at jerris.com
Guest





PostPosted: Mon Dec 22, 2008 12:12 pm    Post subject: [Freeswitch-users] SIP Headers and use of "" in th Reply with quote

You should be able to do this with xml CDATA syntax.

Mike

On Dec 22, 2008, at 10:55 AM, rod wrote:

Quote:
Dear All,

I've been playing with the freeswitch options for one month now, and
I've been able to use it with kamailio working as a registrar.

What I'd like to do is to add a diversion header using the following
action in the dialplan:
<action application="export"
data
="sip_h_Diversion=<123456789@10.10.10.254>;reason="unconditional""/>

Please note, that I'd like to put the word "unconditional" between
quotes, this is to comply with the SIP gateway to which I'm sending
trafic.

But I've been unable to set an escape character to use theses quotes,
cause as you may understand, without escape character FS will consider
this instruction instead:

<action application="export"
data="sip_h_Diversion=<123456789@10.10.10.254>;reason="

cause the quote after reason= is considered as a closing quote for
data=".


_______________________________________________
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 Dec 22, 2008 12:13 pm    Post subject: [Freeswitch-users] SIP Headers and use of "" in th Reply with quote

<action application="export"><![CDATA[sip_h_Diversion=<123456789@10.10.10.254
Quote:
;reason="unconditional"]]></action>

/b

On Dec 22, 2008, at 9:55 AM, rod wrote:

Quote:
Dear All,

I've been playing with the freeswitch options for one month now, and
I've been able to use it with kamailio working as a registrar.

What I'd like to do is to add a diversion header using the following
action in the dialplan:
<action application="export"
data
="sip_h_Diversion=<123456789@10.10.10.254>;reason="unconditional""/>

Please note, that I'd like to put the word "unconditional" between
quotes, this is to comply with the SIP gateway to which I'm sending
trafic.

But I've been unable to set an escape character to use theses quotes,
cause as you may understand, without escape character FS will consider
this instruction instead:

<action application="export"
data="sip_h_Diversion=<123456789@10.10.10.254>;reason="

cause the quote after reason= is considered as a closing quote for
data=".

Is there a way to achieve this.

Thanks.
rod

_______________________________________________
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


_______________________________________________
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
kawarod at laposte.net
Guest





PostPosted: Tue Dec 23, 2008 5:09 am    Post subject: [Freeswitch-users] SIP Headers and use of "" in th Reply with quote

Thanks guys, it works.

Brian West wrote:
Quote:
<action application="export"><![CDATA[sip_h_Diversion=<123456789@10.10.10.254
Quote:
;reason="unconditional"]]></action>

/b

On Dec 22, 2008, at 9:55 AM, rod wrote:


Quote:
Dear All,

I've been playing with the freeswitch options for one month now, and
I've been able to use it with kamailio working as a registrar.

What I'd like to do is to add a diversion header using the following
action in the dialplan:
<action application="export"
data
="sip_h_Diversion=<123456789@10.10.10.254>;reason="unconditional""/>

Please note, that I'd like to put the word "unconditional" between
quotes, this is to comply with the SIP gateway to which I'm sending
trafic.

But I've been unable to set an escape character to use theses quotes,
cause as you may understand, without escape character FS will consider
this instruction instead:

<action application="export"
data="sip_h_Diversion=<123456789@10.10.10.254>;reason="

cause the quote after reason= is considered as a closing quote for
data=".

Is there a way to achieve this.

Thanks.
rod

_______________________________________________
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



_______________________________________________
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




_______________________________________________
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