[SR-Users] Differentiation between ACK INVITE and ACK CANCEL
Alex Balashov
abalashov at evaristesys.com
Tue Jul 6 17:11:55 CEST 2010
Hi Adrien,
On 07/06/2010 10:39 AM, inge wrote:
> Firstly, I was thinking to make a difference using the CSeq field, but
> it seems that the CSeq on ACK contains the ACK himself. Probably because
> ACK is a request and not a response.
You are correct; ACK is a wholly different request and a separate
transaction from the exchange it is meant to acknowledge.
It is possible to differentiate end-to-end vs. hop-by-hop ACKs using
t_check_trans():
http://www.kamailio.org/docs/modules/3.0.x/modules/tm.html#t_check_trans
See its usage in the stock kamailio.cfg.
Note that 200 response to CANCEL does not generate an ACK, but a 487
response does, so your question is rather academic.
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
More information about the sr-users
mailing list