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

Ali Pey alipey at gmail.com
Wed Nov 14 11:23:55 CST 2012


You can also consider using a proxy server such as opensips or Kamailio.
They would enable you to do much more at the signalling level and many
other advantages such as better security or nat traversal.

Regards,
Ali Pey


On Wed, Nov 14, 2012 at 11:42 AM, Steve Edwards
<asterisk.org at sedwards.com>wrote:

> 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
>
> --
> ______________________________**______________________________**_________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121114/f65f37a7/attachment.htm>


More information about the asterisk-users mailing list