[Asterisk-Dev] Thoughts on a context for dialplan execution upon a sip or iax register?

John Todd jtodd at loligo.com
Mon Apr 25 16:44:00 MST 2005


At 8:23 AM +1000 on 4/26/05, Edwin Groothuis wrote:
>On Mon, Apr 25, 2005 at 09:28:18AM -0700, Chris A. Icide wrote:
>>  I don't know what everyone might want to do with such a feature.
>
>When I read your original email, I thought "Aha! Finally a way to
>automatically update the ENUM records once somebody registers/unregisters."
>
>Edwin
>
>--
>Edwin Groothuis      |            Personal website: http://www.mavetju.org
>edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/

You can _sort_ of do this already, by externally examining the state 
of the Asterisk database for registrations.  Very, very ugly, but 
"asterisk -rx database show" and parsing the output will show you 
currently registered hosts.  If you create an "inclusive" filter 
based on what's in that list ("If the number exists in the SIP peers 
list, then create an ENUM entry...")

This is, however, crude.  Having database entries removed and added 
dynamically by actions from within Asterisk instead of simulating 
them on a queued examination-event basis is by far a better solution.

JT



More information about the asterisk-dev mailing list