On Fri, Jun 09, 2006 at 11:53:14AM -0600, Douglas Garstang wrote:
> Two solutions...
>  
> 1. Set OpenSER to to receive registrations from phones. OpenSER 
> 'fans out' the registrations to multiple Asterisk boxes with the 
> send() command. This will break things like call transfer however 
> unless you can guarantee that a transferred call goes back to the 
> same Asterisk box.
>  
> 2. Write a script that either reads the /var/lib/asterisk/astdb file 
> directly (with DB module), or screen scrapes it with 
> 'asterisk -rx sip show peers'. Pass the registration info to sipsak 
> who sends the registrations to the other Asterisk boxes. Because the 
> registrations come through the normal channels, Asterisk will update 
> what's in memory and what's in astdb with no locking situations.

You're polling for registration updates. Why not have them pushed to you
by Asterisk? Either listening on the manager for relevant events, or
watch a log file?

-- 
Tzafrir Cohen      sip:[EMAIL PROTECTED]
icq#16849755       iax:[EMAIL PROTECTED]
+972-50-7952406           
[EMAIL PROTECTED]  http://www.xorcom.com
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to