Hi,
I'm not sure if this is the proper way to approach it but i can't figure
out how to setup dundi.
what i did is, i try to determine which server a user is registered, by calling
an agi to query? the realtime db and capture the regserver of? the user.
e.g.?
exten => _1xx,1,AGI(getserver.php)
exten => _1xx,2,GotoIf($["${REGSERVER}" !=
"asterisk-1"]?102)
exten => _1xx,3,Dial(SIP/${EXTEN}|30|t)
exten => _1xx,102,Dial(SIP/${EXTEN}@${REGSERVER}|30|t)
exten => _1xx,103,Hangup
then i created peering between the two. so far it is working i can call
extensions that are registered in whatever server. but what i'd like to know
is, would there be a difference on performance on calls when querying a DB to
get the regserver, or is it still adviseable to use dundi for peering.
also i setup DNS SRV for these servers, what if one server fails, should the
user close their phone to re-register to the server that is alive, or will it
automtically register to the other server if the other is unreachable? TIA
Regards
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080804/3e5768ad/attachment.htm
> I'm not sure if this is the proper way to approach it but i can't figure out how to setup dundi. > what i did is, i try to determine which server a user is registered, by calling an agi to query? the realtime db and capture the regserver of? the user. > > e.g.? > > exten => _1xx,1,AGI(getserver.php) > exten => _1xx,2,GotoIf($["${REGSERVER}" != "asterisk-1"]?102) > exten => _1xx,3,Dial(SIP/${EXTEN}|30|t) > exten => _1xx,102,Dial(SIP/${EXTEN}@${REGSERVER}|30|t) > exten => _1xx,103,Hangup > > then i created peering between the two. so far it is working i can call extensions that are registered in whatever server. but what i'd like to know is, would there be a difference on performance on calls when querying a DB to get the regserver, or is it still adviseable to use dundi for peering. > > also i setup DNS SRV for these servers, what if one server fails, should the user close their phone to re-register to the server that is alive, or will it automtically register to the other server if the other is unreachable? TIA > > Regards > Ron >Use DUNDi, perfect for this. The protocol is very light, no load on the servers to run it, can handle hundreds of queries a second with no load. You want to use regcontext and a few other things to make it all work together. Here are some papers to guide you: ftp://208.81.55.228/DUNDi_So_Easy.pdf ftp://208.81.55.228/Using_DUNDi_with_a_Cluster_of_Asterisk_Servers.pdf Good Luck. JR -- --------------------- JR Richardson Engineering for the Masses
On Mon, Aug 4, 2008 at 2:18 PM, JR Richardson <jmr.richardson at gmail.com> wrote:> > Use DUNDi, perfect for this. The protocol is very light, no load on > the servers to run it, can handle hundreds of queries a second with no > load. You want to use regcontext and a few other things to make it > all work together. Here are some papers to guide you: > > ftp://208.81.55.228/DUNDi_So_Easy.pdf > ftp://208.81.55.228/Using_DUNDi_with_a_Cluster_of_Asterisk_Servers.pdf > > Good Luck. > > JRJR, Those are great articles. Have you ever considered adding them to the Asterisk Cookbook: http://www.asteriskcookbook.com/wiki/index.php/Main_Page -- Kristian Kielhofner http://blog.krisk.org