如何使用Cintent-Type發送主體:multipart/mixed in Invite message through Asterisk server?如何發送邀請消息中的多部分主體?
我送
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 172.22.212.57:60754;branch=z9hG4bK1522237847
Max-Forwards: 70
From: <sip:[email protected]>;tag=1392040412
To: <sip:[email protected]>
Call-ID: 1990232974-1385880565-1351064234
CSeq: 3 INVITE
Contact: <sip:[email protected]>
Content-Type: multipart/mixed; boundary=unique-boundary-1
Content-Length: 2652
Allow: ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE, UPDATE, PUBLISH
User-Agent: SIP .NET 1.0, www.independentsoft.com
--unique-boundary-1
Content-Type: application/sdp
v=0
o=201 2 18299 IN IP4 172.22.212.57
s=SIP Call
c=IN IP4 172.22.212.57
t=0 0
m=audio 40004 RTP/AVP 0
a=rtpmap:0 pcmu/8000
--unique-boundary-1
Content-Type: application/rs-metadata+xml
Content-Disposition: recording-session; handling=required
<?xml version='1.0' encoding='UTF-8'?>
<content>
...
</content>
--unique-boundary-1--
第二個客戶端接收新邀請這是由星號創建的消息。 Asterisk的Invite具有內容類型應用程序/ sdp excepth multipart/mixed。