<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>only spirals cannot be handled by topos due to its initial design
(some things needs to be changed for it), so the case you present
should work.</p>
<p>From the excerpts you present, there is an unexpected
Record-Route with the proxy address in the 200ok towards endpoint.
Is it so or just a mistake in what you pasted here? Because there
should be no record-route with proxy address if proxy does topos.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 11.05.18 16:11, Daniel Tryba wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20180511141136.pvrxcj5d2fo67n22@office.pocos.nl">
<pre wrap="">Scenario:
endpoint (bob) <-> kamailio proxy (5.1.3) <-> kamailio backend (5.1.2)
Both kamailio instances are running the topos module (mysql backend).
Call setup is fine, but forwarding BYEs fail.
With a call from endpoint to kamailio, topos on the proxy scrambles
Contact to kamailio backend. But in responses from backend contact
remains untouched. In the ACK to the 200, topos on the proxy does
nothing. If the caller hangsup, the BYE will loop internally till max
hops is exceeded (483 which will be send to caller eventually).
When the backend initiates the call to the endpoint, topos appears to
work, but the BYE from the endpoint on hangup get a 404 Not here from
the proxy (route[WITHINDLG]).
Disabling topos on the proxy will result in a functioning proxy (config
attached).
Is there something wrong with my config? Or is this an unforseen
scenario that just doesn't work with topos?
* Endpoint to backend scenario
endpoint:5060 -> proxy:5060
INVITE <a class="moz-txt-link-freetext" href="sip:callee@sip.pocos.nl;transport=tcp">sip:callee@sip.pocos.nl;transport=tcp</a> SIP/2.0
Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
Max-Forwards: 70
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy:5060;lr"><sip:proxy:5060;lr></a>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:bob@endpoint:5060;ob"><sip:bob@endpoint:5060;ob></a>
proxy:5060 -> backend:5060
INVITE <a class="moz-txt-link-freetext" href="sip:callee@sip.itco.nl;transport=tcp">sip:callee@sip.itco.nl;transport=tcp</a> SIP/2.0
Via: SIP/2.0/UDP proxy;branch=...
CSeq: 29848 INVITE
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy:5060;lr"><sip:proxy:5060;lr></a>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:btpsh-5af5972d-bf5e-2@proxy"><sip:btpsh-5af5972d-bf5e-2@proxy></a>
backend:5060 -> proxy:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP proxy;branch=...
Contact: <a class="moz-txt-link-rfc2396E" href="sip:atpsh-5af19bf0-9f94-7@backend"><sip:atpsh-5af19bf0-9f94-7@backend></a>
proxy:5060 -> endpoint:5060
SIP/2.0 200 OK
Contact: <a class="moz-txt-link-rfc2396E" href="sip:atpsh-5af19bf0-9f94-7@backend"><sip:atpsh-5af19bf0-9f94-7@backend></a>
Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
endpoint:5060 -> proxy:5060
ACK <a class="moz-txt-link-freetext" href="sip:atpsh-5af19bf0-9f94-7@backend">sip:atpsh-5af19bf0-9f94-7@backend</a> SIP/2.0
Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
proxy:5060 -> backend:5060
ACK <a class="moz-txt-link-freetext" href="sip:atpsh-5af19bf0-9f94-7@backend">sip:atpsh-5af19bf0-9f94-7@backend</a> SIP/2.0
Via: SIP/2.0/UDP proxy;branch=...
Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
endpoint:5060 -> proxy:5060
BYE <a class="moz-txt-link-freetext" href="sip:atpsh-5af19bf0-9f94-7@backend">sip:atpsh-5af19bf0-9f94-7@backend</a> SIP/2.0
Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
Max-Forwards: 70
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
proxy:5060 -> proxy:5060
BYE <a class="moz-txt-link-freetext" href="sip:atpsh-5af19bf0-9f94-7@backend">sip:atpsh-5af19bf0-9f94-7@backend</a> SIP/2.0
Via: SIP/2.0/UDP proxy;branch=...
Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
Max-Forwards: 69
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
proxy:5060 -> proxy:5060
BYE <a class="moz-txt-link-freetext" href="sip:atpsh-5af19bf0-9f94-7@backend">sip:atpsh-5af19bf0-9f94-7@backend</a> SIP/2.0
Via: SIP/2.0/UDP proxy;branch=...
Via: SIP/2.0/UDP proxy;rport=5060;branch=...
Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
Max-Forwards: 68
Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
[not going to mention the 50+ BYEs adding Vias and decrementing
Max-Forwards.
* Backend to endpoint scenario
backend:5060 -> proxy:5060
INVITE <a class="moz-txt-link-freetext" href="sip:bob@endpoint:5060;ob">sip:bob@endpoint:5060;ob</a> SIP/2.0
Via: SIP/2.0/UDP backend;branch=...
Route: <a class="moz-txt-link-rfc2396E" href="sip:loadbalancer@proxy;lr;received=sip:endpoint:5060"><sip:loadbalancer@proxy;lr;received=sip:endpoint:5060></a>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:btpsh-5af07a27-72b-502c1@backend"><sip:btpsh-5af07a27-72b-502c1@backend></a>
proxy:5060 -> endpoint:5060
INVITE <a class="moz-txt-link-freetext" href="sip:bob@endpoint:5060;ob">sip:bob@endpoint:5060;ob</a> SIP/2.0
Via: SIP/2.0/UDP proxy;branch=...
Contact: <a class="moz-txt-link-rfc2396E" href="sip:btpsh-5af5972d-bf5d-5@proxy"><sip:btpsh-5af5972d-bf5d-5@proxy></a>
endpoint:5060 -> proxy:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP proxy;received=proxy;branch=...
Contact: <a class="moz-txt-link-rfc2396E" href="sip:bob@endpoint:5060;ob"><sip:bob@endpoint:5060;ob></a>
proxy:5060 -> backend:5060
SIP/2.0 200 OK
Contact: <a class="moz-txt-link-rfc2396E" href="sip:bob@endpoint:5060;ob;alias=endpoint~5060~1"><sip:bob@endpoint:5060;ob;alias=endpoint~5060~1></a>
Via: SIP/2.0/UDP backend;rport=5060;branch=...
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:proxy;lr"><sip:proxy;lr></a>
endpoint:5060 -> proxy:5060
BYE <a class="moz-txt-link-freetext" href="sip:btpsh-5af5972d-bf5d-5@proxy">sip:btpsh-5af5972d-bf5d-5@proxy</a> SIP/2.0
Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
proxy:5060 -> endpoint:5060
SIP/2.0 404 Not here
Via: SIP/2.0/UDP endpoint:5060;rport=5060;branch=...
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>