[Users] Dispatcher module - Does it actually work?
Daniel-Constantin Mierla
daniel at voice-system.ro
Thu Nov 24 20:36:40 CET 2005
On 11/24/05 19:50, Douglas Garstang wrote:
> I am doing record routing as far as I know. I've pretty much still got a default openser.cfg, with a few modifications. The record route statement is still in there towards the top. And besides, it's OpenSER that's adding itself to the record-route header, so the route is always going to be the same anyway. I don't follow how that helps.
>
The Record-Route ensures that all messages within same dialog will
follow same path. So the BYE will go same way (or opposite if callee
sends it) as the first INVITE.
>
> I'm still new at this.... at ideas how I'd tell if it was the first invite? Check Cseq?
>
The first invite of a dialog has no To-tag. There is a function in uri
module to check that.
Cheers,
Daniel
>
> Thanks.
>
> -----Original Message-----
> From: Daniel-Constantin Mierla [mailto:daniel at voice-system.ro]
> Sent: Thu 11/24/2005 10:32 AM
> To: Douglas Garstang
> Cc: users at openser.org
> Subject: Re: [Users] Dispatcher module - Does it actually work?
>
>
>
>
> On 11/24/05 02:16, Douglas Garstang wrote:
> > Actually, you know, now that I think about it, what I think should happen is that OpenSER should _never_ switch to another proxy when the Dialog/Callid is the same. This just confuses everyone.
> >
> Actually you should use the dispatcher only for the first INVITE and
> CANCEL. To ensure that all the other requests within the dialog follow
> same path, use record-routing.
>
> Cheers,
> Daniel
>
> >
> > It doesn't matter if you use the dispatcher module or DNS SRV. Either one when configured for round robin has the potential to send a second INVITE with requested auth credentials (with the same call-id) to another proxy server. This is bad. This was happening with DNS SRV and it's why I started looking at the dispatcher module instead.
> >
> > There has to be a way to do this....
> >
> > Doug
> >
> > -----Original Message-----
> > From: Douglas Garstang
> > Sent: Wed 11/23/2005 4:37 PM
> > To: users at openser.org
> > Cc:
> > Subject: [Users] Dispatcher module - Does it actually work?
> >
> >
> >
> > After many many fruitless hours spent on trying to get OpenSER to work with DNS SRV records (I made a post to the group earlier today on this), I stumbled across the dispatcher module, and have been trying to get it to work instead.
> >
> >
> > The module was designed to load balance, right? It doesn't seem to have been designed very well, unless I am missing something.
> >
> >
> > If you set the algorithm with ds_select_dst() to 4, round robin, it doesn't work! Here's what happens.
> >
> > 1. UA sends INVITE to OpenSER
> > 2. OpenSER forwards INVITE to the first proxy in the dispatcher list.
> > 3. Proxy sends back a digest challenge for authorisation credentials to OpenSER.
> > 4. OpenSER forwards the challenge back to the UA.
> > 5. The UA sends the INVITE again to OpenSER, this time with the requested credentials.
> > 6. OpenSER forwards the new INVITE to the _OTHER_ proxy in the dispatcher list.
> >
> > This is where things start to fall over. This proxy has not issued a challenge request yet so it _again_ sends a digest challenge back to the UA through OpenSER. The UA does not like to receive a second challenge to what it's already sent and gives up.
> >
> >
> > If you set the algorithm to something else besides 4, say 0, to hash to the callid, then OpenSER tries to use an arbitrary proxy from the list. Given that it's hashed against the callid it doesn't switch proxies like it does above in mid call. However, if that proxy is down, it _NEVER_ tries another proxy, thus rending the dispatcher module as a load balancer completely useless.
> >
> >
> > If this module was designed to be a load balancer, how have people gotten it to work? I find it incredibly hard to believe that the dispatcher module was not designed with the above scenarios in mind. I'm so frustrated because what I am trying to do is so simple (had issues with SRV behaving in a similar way). Send requests from OpenSER to another proxy/pbx in a redundant and load balanced fashion. If a system is down, simply go to the next! It's that simple!
> >
> >
> > Btw, the 'proxy' that OpenSER is forwarding too is Asterisk (yeah ok so it isn't a proxy) and the UA's are Polycom 301/501/601 phones.
> >
> >
> > Help very much appreciated!
> >
> > Thanks.
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
More information about the Users
mailing list