[asterisk-users] On SIP REGISTER event trigger a AGI script

Steve Edwards asterisk.org at sedwards.com
Wed Nov 14 10:42:43 CST 2012


> On Wed, 14 Nov 2012, Face wrote:
>
>>>> Is there a way I can trigger a AGI script On SIP REGISTER event.

On Wed, 14 Nov 2012, Danny Nicholas wrote:

> What you will need to do is to monitor for the SIP REGISTER in AMI, then 
> launch a local channel call to run your AGI process.  If the process is 
> not time-critical, you could monitor the logs to cut down on AMI 
> traffic.

Just for clarity...

If the OP's script does not interact with Asterisk using the AGI protocol, 
it is not an 'AGI' and does not need any channel.

If the OP's 'goal' is something like 'when Asterisk receives a REGISTER, I 
want to update a counter in my MySQL database' then no channel is needed.

Hey, OP, if we know what you are trying to accomplish, maybe we can 
suggest a solution rather than answering a 'feature' question.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list