I am writing code for a SIP application that receives and answers incoming calls, so I guess it acts like a softphone. I have not been able to correctly construct BYE messages to terminate calls. Here is a trimmed down version of my SIP trace..
Incoming INVITE:
INVITE sip:17864754001@199.195.249.88:5001 SIP/2.0Via: SIP/2.0/UDP 107.6.67.238:5060;branch=z9hG4bK249ebd1a;rportFrom: "9844605651" <sip:9844605651@107.6.67.238>;tag=as4d38e191To: <sip:17864754001@199.195.249.88:5001>Contact: <sip:9844605651@107.6.67.238:5060>OK response:
SIP/2.0 200 OKVia: SIP/2.0/UDP 107.6.67.238:5060;branch=z9hG4bK249ebd1a;rport=5060;received=107.6.67.238To: <sip:17864754001@199.195.249.88:5001>;tag=17864754001From: "9844605651" <sip:9844605651@107.6.67.238>;tag=as4d38e191Contact: <sip:17864754001 @199.195.249.88:5001;ref=17864754001>ACK from caller:
ACK sip:17864754001 @199.195.249.88:5001;ref=17864754001 SIP/2.0Via: SIP/2.0/UDP 107.6.67.238:5060;branch=z9hG4bK32d5e00d;rportFrom: "9844605651" <sip:9844605651@107.6.67.238>;tag=as4d38e191To: <sip:17864754001@199.195.249.88:5001>;tag=17864754001Contact: <sip:9844605651@107.6.67.238:5060>...and now my failed attempt at a BYE...
BYE sip:9844605651@107.6.67.238:5060 SIP/2.0Via: SIP/2.0/UDP 107.6.67.238:5060;branch=z9hG4bK249ebd1a;rport=5060;received=107.6.67.238From: "9844605651" <sip:9844605651@107.6.67.238>;tag=as4d38e191To: <9844605651@107.6.67.238>;tag=17864754001..to which I receive the following response:
SIP/2.0 481 Call leg/transaction does not exist
I have been working on this for so long that I can no longer think straight. Can any of you guys point me in the right direction?
↧