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

xiaofengcanyuexp at 163.com xiaofengcanyuexp at 163.com
Sat May 25 05:18:16 MSD 2013


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;user=phone;SIP/2.0
From: "Caller"<sip:678923001 at skynetwork.com>
To: <sip:87896677 at dance.com>;user=phone
Call-ID: 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






Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list