[Asterisk-Users] Database file to copy for active sessions.

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sat Jun 10 07:42:04 MST 2006


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:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list