[SR-Users] Detect 200 OK for ReINVITE

Olle E. Johansson oej at edvina.net
Tue Jul 12 15:55:35 CEST 2016


> On 12 Jul 2016, at 15:18, Grant Bagdasarian <gb at cm.nl> wrote:
> 
> Hi,
>  
> Is it possible in Kamailio, or SIP in general, to detect if a 200 OK is for a ReINVITE?
>  
Not from the 200 OK, but the matching INVITE you can check if there’s a to-tag in Kamailio and SIP.

In Kamailio, if you are stateful, you can use the TMX module pseudovariables to check the request
matching the response and check if there’s a to-tag. Check the cookbook for 
$T_req(pv)

http://www.kamailio.org/wiki/cookbooks/4.4.x/pseudovariables

/O
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160712/56ddc698/attachment.html>


More information about the sr-users mailing list