[asterisk-users] multiple asterisk approach

ronald ramos ronramos1004 at yahoo.com
Mon Aug 4 10:30:48 CDT 2008


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 


More information about the asterisk-users mailing list