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@lists.freeswitch.org [mailto:freeswitch-users-bounces@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

 

On Saturday, May 25, 2013 at 9:18 AM, xiaofengcanyuexp@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@dance.com;user=phone;SIP/2.0

From: "Caller"<sip:678923001@skynetwork.com>

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

Call-ID: QRLVLNKeKx-WDHAuwlEkR-EwhPPcTHOP@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@freeswitch.org

http://www.freeswitchsolutions.com

 

FreeSWITCH-powered IP PBX: The CudaTel Communication Server

http://www.cudatel.com

 

Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.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