[SR-Users] Anybody using 2 instances with topos communicating with each other?

Daniel-Constantin Mierla miconda at gmail.com
Wed May 23 22:58:16 CEST 2018


Hello,

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.

>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.

Cheers,
Daniel


On 11.05.18 16:11, Daniel Tryba wrote:
> 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 sip:callee at sip.pocos.nl;transport=tcp SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Max-Forwards: 70
> Route: <sip:proxy:5060;lr>
> Contact: <sip:bob at endpoint:5060;ob>
>
> proxy:5060 -> backend:5060
> INVITE sip:callee at sip.itco.nl;transport=tcp SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> CSeq: 29848 INVITE
> Route: <sip:proxy:5060;lr>
> Contact: <sip:btpsh-5af5972d-bf5e-2 at proxy>
>
> backend:5060 -> proxy:5060
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP proxy;branch=...
> Contact: <sip:atpsh-5af19bf0-9f94-7 at backend>
>
> proxy:5060 -> endpoint:5060
> SIP/2.0 200 OK
> Contact: <sip:atpsh-5af19bf0-9f94-7 at backend>
> Via: SIP/2.0/UDP endpoint:5060;received=endpoint;rport=5060;branch=...
> Record-Route: <sip:proxy;lr>
>
> endpoint:5060 -> proxy:5060
> ACK sip:atpsh-5af19bf0-9f94-7 at backend SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Route: <sip:proxy;lr>
>
> proxy:5060 -> backend:5060
> ACK sip:atpsh-5af19bf0-9f94-7 at backend 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 sip:atpsh-5af19bf0-9f94-7 at backend SIP/2.0
> Via: SIP/2.0/UDP endpoint:5060;rport;branch=...
> Max-Forwards: 70
> Route: <sip:proxy;lr>
>
> proxy:5060 -> proxy:5060
> BYE sip:atpsh-5af19bf0-9f94-7 at backend 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: <sip:proxy;lr>
>
> proxy:5060 -> proxy:5060
> BYE sip:atpsh-5af19bf0-9f94-7 at backend 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: <sip:proxy;lr>
>
> [not going to mention the 50+ BYEs adding Vias and decrementing
> Max-Forwards.
>
>
> * Backend to endpoint scenario
>
> backend:5060 -> proxy:5060
> INVITE sip:bob at endpoint:5060;ob SIP/2.0
> Via: SIP/2.0/UDP backend;branch=...
> Route: <sip:loadbalancer at proxy;lr;received=sip:endpoint:5060>
> Contact: <sip:btpsh-5af07a27-72b-502c1 at backend>
>
> proxy:5060 -> endpoint:5060
> INVITE sip:bob at endpoint:5060;ob SIP/2.0
> Via: SIP/2.0/UDP proxy;branch=...
> Contact: <sip:btpsh-5af5972d-bf5d-5 at proxy>
>
> endpoint:5060 -> proxy:5060
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP proxy;received=proxy;branch=...
> Contact: <sip:bob at endpoint:5060;ob>
>
> proxy:5060 -> backend:5060
> SIP/2.0 200 OK
> Contact: <sip:bob at endpoint:5060;ob;alias=endpoint~5060~1>
> Via: SIP/2.0/UDP backend;rport=5060;branch=...
> Record-Route: <sip:proxy;lr>
>
> endpoint:5060 -> proxy:5060
> BYE sip:btpsh-5af5972d-bf5d-5 at proxy 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=...
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180523/cbd52398/attachment.html>


More information about the sr-users mailing list