[Freeswitch-users] How to attche custom "content-type" in Freeswitch SIP message

Bob McCarthy bob at experient.com
Tue Aug 6 02:01:16 MSD 2013


Is there another way to create a mutipart body ? I am using this successfully to create an invite but it breaks the CDR-XML log.

<action application="set"><![CDATA[sip_mp_application/pidf+xml=${geolocationbyvalue}]]></action>

 

The “/” and the “+” break the CDR-XML when the sip_mp_application/pidf+xml variable is converted into an XML tag

FS-5403 fixed the reading of the “/” but does not address the writing and the “+” is also an issue

I have left a comment on jira, I am not sure if I need to open a new one.

 

Bob McCarthy

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Seven Du
Sent: Friday, May 24, 2013 8:39 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] How to attche custom "content-type" in Freeswitch SIP message

 

FS defined SOFIA_MULTIPART_PREFIX  which should can support multipart body. not sure if you can find the wiki. maybe you should look the source code and update the wiki when you find out.

 

I had tried that but I forget the procedure. it should be some chan vars like sip_mp_ ...

 

-- 

Seven Du

http://www.freeswitch.org.cn

http://about.me/dujinfang

http://www.dujinfang.com

 

Sent with Sparrow <http://www.sparrowmailapp.com/?sig> 

 

On Saturday, May 25, 2013 at 9:18 AM, xiaofengcanyuexp at 163.com <mailto:xiaofengcanyuexp at 163.com>  wrote:

Dear support,

 

I''m trying to encapsulate my private "application/isup" in the SIP Msg. Normally, it should like below example.

 

It firstly addresses "Content-Type: multipart/mixed;boundary=QRLVLNKeKxWDHAuwlEkR". And then can write private "content-type" like "application/sdp".

Now I can see the application/sdp is encapsulated via variable "switch_r_sdp".

Is there anyway to encapsulated other customized "content-type"? 

 

Appreciate to get your reply.

---------------------------------------------------------------------------------------------------------------

Here is an example of SIP message which encapsulated "applicaiton/sdp" and "application/isup".

 

INVITE sip: 87896677 at dance.com <mailto:87896677 at dance.com> ;user=phone;SIP/2.0

From: "Caller"<sip:678923001 at skynetwork.com <mailto:678923001 at skynetwork.com> >

To: <sip:87896677 at dance.com <mailto:87896677 at dance.com> >;user=phone

Call-ID: QRLVLNKeKx-WDHAuwlEkR-EwhPPcTHOP at skynetwork.com <mailto:QRLVLNKeKx-WDHAuwlEkR-EwhPPcTHOP at skynetwork.com> 

Content-Type: multipart/mixed;boundary=QRLVLNKeKxWDHAuwlEkR

MIME-Version: 1.0

Content-Length: 433

--QRLVLNKeKxWDHAuwlEkR

Content-Type: application/sdp

User-Agent: ENSR2.5.46.6-IS2-RMRG36-RG20-CPO487

Content-Length: 142

 

v=0

o=- 1706944438 1706944438 IN IP4 192.168.1.105

s=ENSResip

t=0 0

m=audio 6793 RTP/AVP 0

a=rtpmap:0 PCMU/8000

--QRLVLNKeKxWDHAuwlEkR

Content-Type: application/isup; version=ansi;base=ansi00

Content-Disposition: signal; handling=optional

 

01 00 60 01 0a 03 05 0b 02 c0 90 06 03 10 78 98 66 77 0a 07 83 13 76 98 32 00 0f 00 

--QRLVLNKeKxWDHAuwlEkR--

 

 

Thanks

-------------------

2013-05-25

 

 

 

 

_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org <mailto:consulting at freeswitch.org> 

http://www.freeswitchsolutions.com

 





 

Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com

 

FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org <mailto: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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130805/eccf203a/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list