[pjsip] Respond CANCEL with ... in sip_inv.c

Benny Prijono bennylp at pjsip.org
Fri Nov 23 07:06:54 EST 2007

Sergey Bakulin wrote:
> Hi Benny!
> Studying sip_inv.c (as the best example of pjsip dialog usage) I noticed 
> one contradiction between code and comments. In function 
> inv_respond_incoming_cancel() in case of "Invite transaction not found" 
> the response is created with status code 200, while in comments said 
> "Respond CANCEL with 491". And really you mean status code 481 (Call 
> Leg/Transaction Does Not Exist), as on page 55 RFC 3261, do you?

Yeah, it should be 481, thanks for catching this (I've realized this 
since long time ago, but I thought nobody will notice ;-) ).

I've fixed this in http://www.pjsip.org/trac/ticket/426. I also 
changed few other places in sip_inv.c, so that incoming 481 response 
to CANCEL does not terminate the session (as per rfc 5057).


> P.S. Thanks for Changeset 1594.
> Best regards,
> Sergey

More information about the pjsip mailing list