[Asterisk-Users] Register redirect
Matt Riddell
matt.riddell at sineapps.com
Sat Nov 19 05:42:54 MST 2005
tim panton wrote:
>
> On 19 Nov 2005, at 10:48, Matt Riddell wrote:
>
>> tim panton wrote:
>>
>>>
>>> On 19 Nov 2005, at 03:07, Matt Riddell wrote:
>>>
>>>> Marc Storck wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I would like to know if there is a way in IAX2 and SIP to tell a
>>>>> client
>>>>> to register at a different server.
>>>>>
>>>>> For example:
>>>>>
>>>>> Client tries to register at server B but server B answers with some
>>>>> sort
>>>>> of redirect to tell the client to register at server C. The
>>>>> client then
>>>>> tries to register with Server C.
>>>>
>>>>
>>>>
>>>> No, but wouldn't it be great!
>>>>
>>>
>>> Ok, let's persue this a bit more. How would we want it to work?
>>> (I might be interested in implementing it)
>>>
>>> At the IAX level it looks pretty easy, just add an
>>> APPARENT ADDR IE to the REGREJ packet (it is already in REGACK).
>>> The Address would be that of the 'advisory reg server' that should be
>>> tried next.
>>> The cause code IE could be "Resource unavailable, unspecified".
>>>
>>> How would the asterisk server decide that now was the moment
>>> to send redirects ?
>>
>>
>> You could do it based on the new max load/max calls values
>>
>>> What would the config look like?
>>
>>
>> you could just specify a regrej dest for each acct and allow load etc to
>> control it.
>
>
> For each account ? I thought of it as more of a per-server thing,
> in a load-balance sort of way.
>
> You would probably want to turn it around as fast as possible (your
> load being high and all), so it would be best to avoid having to lookup
> the account before sending the reject.
True. But it would be nice to have one box sitting there deciding where to
send registrations to as well. Like a registration proxyer (sp?)
--
Cheers,
Matt Riddell
_______________________________________________
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
More information about the asterisk-users
mailing list