Re: [Sip-implementors] Canceling an INVITE still under processing

2016-10-10 Thread Bogdan-Andrei Iancu
Thank you Alan, Thank you Dale, It seems we have a winning option here. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 10.10.2016 17:09, Dale R. Worley wrote: Bogdan-Andrei Iancu writes: Yes, the CANCEL is received before sending the INVITE

Re: [Sip-implementors] Canceling an INVITE still under processing

2016-10-10 Thread Dale R. Worley
Bogdan-Andrei Iancu writes: > Yes, the CANCEL is received before sending the INVITE to the UAS. > > Technically speaking (as coding), we can do both - handle the canceling > process in the proxy (200 OK to CANCEL and 487 to INVITE, without > sending anything further to UAS) , or to delay the CAN

Re: [Sip-implementors] Canceling an INVITE still under processing

2016-10-10 Thread Alan Ford
It is fine to cancel in the proxy alone. There are at least two relevant bits in 3261; Section 9.2 says “a stateful proxy might respond to it and generate some CANCEL requests of its own” … But you don’t need to send any CANCELs since you haven’t sent anything out. And Section 16.10: While a

Re: [Sip-implementors] Canceling an INVITE still under processing

2016-10-10 Thread Bogdan-Andrei Iancu
Hi Alan, Yes, the CANCEL is received before sending the INVITE to the UAS. Technically speaking (as coding), we can do both - handle the canceling process in the proxy (200 OK to CANCEL and 487 to INVITE, without sending anything further to UAS) , or to delay the CANCEL until the INVITE is se

Re: [Sip-implementors] Canceling an INVITE still under processing

2016-10-10 Thread Alan Ford
Hi Bogan-Andrei, To check your scenario: The CANCEL arrives from the UAC before the INVITE has been sent out the proxy to the UAS? CANCEL is a hop-by-hop message so ideally you would send back a 200 OK to the CANCEL from the proxy and internally stop yourself sending out the INVITE towards the