[OpenSIPS-Users] Dialog matching problem
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Sep 6 08:48:48 CEST 2012
Hi Jan,
no you are not misusing the module, you can put the same call multiple
times in the dialog module - of course, when call is spiraling.
In loose_route(), the function should match the Route header
corresponding to that passing through the server (in your case, A1 will
have 2 Route headers - with different dialog ids ) - and at each passing
it should identify the corresponding Route header.
Do you have a SIP capture showing the ACK that hits A1 first time ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 09/06/2012 05:26 AM, Jan Blom wrote:
>
> Hello,
>
> I have problems with my dialog matching, using OpenSIPS 1.8.0. I have
> two edge proxies, A1 and A2, and an intermediate proxy B.
>
> An INVITE is received by A1 and passed on to B.
>
> B processes the request and sends in to A2.
>
> A2 send request to whatever destination that has been decided.
>
> Both A1 and A2 want to keep track on state during the call so they
> create dialogs. So far so good.
>
> However, B actually load balance the requests so a request might come
> back to A1. A1 will then try to create a new dialog for the same
> INVITE. Technically speaking this is the same dialog in terms of the
> RFC, however there are two dialog data structures created. I can see
> structures being allocated and the DID parameter in the record route
> header filled in properly (different values).
>
> The problem is that the dialog matching when calling loose_route()
> will not find the first created dialog on subsequent requests (ACK or
> BYE). I am using dlg_match_mode=0 (DID only).
>
> Am I misusing the dialog modules when trying to create two dialogs for
> the same call (on ingress and egress)?
>
> Since I actually have got two different DID parameters on two record
> route headers, I cannot see why it shouldn't work.
>
> I cannot seem to find another way to do it, since I cannot know if I
> am back to the same edge proxy or not.
>
> Regards,
>
> Jan
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120906/362779b2/attachment-0001.htm>
More information about the Users
mailing list