freeswitch/sofia-sip

How to set History-Info with many lines?

Django-xinfa opened this issue · 0 comments

Case 1:
INVITE like:
INVITE sip:12121@test.cn;user=phone SIP/2.0
Via: SIP/2.0/UDP 1.1.1.1:5080;branch=z9hG4bKf77e.6659a8c5.1
From: sip:666666@test.cn;user=phone;tag=D.oqhO31mu-1379-8092-7-19
To: sip:12121@test.cn;user=phone
Call-ID: c8EUNtuIpMAuQa9966Pm3oURpeX_@test.cn
CSeq: 1 INVITE
Contact: sip:1.1.1.1:5080;did=8476.44505f72
Max-Forwards: 69
Supported: 100rel,timer
Allow: INVITE,PRACK,ACK,UPDATE,CANCEL,BYE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY
Privacy: none
P-Asserted-Identity: sip:666666@test.cn;user=phone
Min-SE: 90
Session-Expires: 1800
History-Info: sip:123@test.cn;user=phone?Privacy=none;index=1,
sip:1234@gd.ctcims.cn;user=phone;cause=408;index=1.1
User-Agent: test
Accept: application/sdp
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 251

Case 2:
INVITE like:
INVITE sip:12121@test.cn;user=phone SIP/2.0
Via: SIP/2.0/UDP 1.1.1.1:5080;branch=z9hG4bKf77e.6659a8c5.1
From: sip:666666@test.cn;user=phone;tag=D.oqhO31mu-1379-8092-7-19
To: sip:12121@test.cn;user=phone
Call-ID: c8EUNtuIpMAuQa9966Pm3oURpeX_@test.cn
CSeq: 1 INVITE
Contact: sip:1.1.1.1:5080;did=8476.44505f72
Max-Forwards: 69
Supported: 100rel,timer
Allow: INVITE,PRACK,ACK,UPDATE,CANCEL,BYE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY
Privacy: none
P-Asserted-Identity: sip:666666@test.cn;user=phone
Min-SE: 90
Session-Expires: 1800
History-Info: tel:+86111123;index=1
History-Info: tel:+861111234;cause=302;index=1.1
User-Agent: test
Accept: application/sdp
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 251