<p dir="ltr">Well technically there could be SDP in ACK as well, in the body-less INVITE scenario. I am not sure if it's the case here, though. Other than that, it's correct, final positive ACK in RFC3261 is end-to-end, so that proxy is just passive retranslator for that. </p>
<div class="gmail_quote">On Mar 9, 2016 5:07 PM, "Alex Balashov" <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I think you may be missing a couple of key fundamentals of SIP protocol mechanics:<br>
<br>
1) By definition, one cannot respond to an ACK; an ACK garners no responses.<br>
<br>
2) End-to-end ACKs for 2xx INVITE responses are generated by a SIP UA; a proxy simply cannot behave as though it were an endpoint since it has no hand in SDP negotiation.<br>
<br>
So, you really have no choice but to forward an end-to-end ACK to the destination for which it is intended. If you intercepted it at the proxy and absorbed it somehow, the UA that is waiting for it (the callee) would eventually end the dialog because it remains in established-nonconfirmed state.<br>
<br>
Now, as far as Kamailio goes: an ACK is a separate transaction from the INVITE to which it corresponds, and accordingly, does not have access to transaction-persistent variables associated with that INVITE. There are two or three ways to maintain dialog-persistent variables:<br>
<br>
1) Stuff them into Record-Route parameters.<br>
<br>
2) Put them in htable entries.<br>
<br>
3) Use $dlg_var():<br>
<br>
<a href="http://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables#dlg_var_key" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables#dlg_var_key</a><br>
<br>
However, whatever you're trying to do here, it doesn't sound like it's going to work. I would encourage you to acquire a deeper understanding of SIP before proceeding further.<br>
<br>
-- Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>