如何通过 Asterisk 服务器发送带有 Cintent-Type: multipart/mixed 的正文?
我正在发送
INVITE sip:205@172.22.212.66 SIP/2.0
Via: SIP/2.0/UDP 172.22.212.57:60754;branch=z9hG4bK1522237847
Max-Forwards: 70
From: <sip:201@172.22.212.66>;tag=1392040412
To: <sip:205@172.22.212.66>
Call-ID: 1990232974-1385880565-1351064234
CSeq: 3 INVITE
Contact: <sip:201@172.22.212.57>
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 创建的新邀请消息。Asterisk 的邀请具有内容类型 application/sdp 除了 multipart/mixed。