drachtio / drachtio-srf

drachtio signaling resource framework
https://drachtio.org
MIT License
171 stars 60 forks source link

createB2BUA can forward UAS Cancel request to UAC Cancel request. #150

Closed xquanluu closed 1 year ago

xquanluu commented 1 year ago

When sending a CANCEL to the client, Drachtio should include the Reason header, if one was on the CANCEL received from the server.

UAS Cancel request

CANCEL sip:user1@10.103.114.50:5060 SIP/2.0 Via: SIP/2.0/TCP 10.103.114.14:5060;branch=z9hG4bKin7f5930doafnua6evl0.1 CSeq: 629097851 CANCEL From: "User1"sip:124123122@10.103.114.14;user=phone;tag=2026464961-1689180343029- To: "User2"sip:124123123@10.103.114.50 Call-ID: BW0945430291207232038489834@10.108.100.203 Max-Forwards: 19 Content-Length: 0 Reason: SIP;cause=200;text="Call completed elsewhere"

UAC Cancel request

CANCEL sip:q71grb7j@a2j7vlhli4l5.invalid SIP/2.0 Via: SIP/2.0/WSS 10.103.114.50:8443;branch=z9hG4bKa37vt2egt4H7D Max-Forwards: 70 From: "User1" sip:124123122@10.103.114.14;user=phone;tag=2026464961-1689180343029- To: "User2" sip:124123123@10.103.114.50 Call-ID: 61f653c1-9b76-123c-85ad-005056923684 CSeq: 1 CANCEL Content-Length: 0