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

Face falazemi at gmail.com
Wed Nov 14 12:00:19 CST 2012


On Wed, Nov 14, 2012 at 7:42 PM, 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


Well, I have a SMS dialplan and the problem is I cannot send an offline SMS
to SIP users.  Therefore, I am trying  to edit the SMS dialplan to
save the failed SMS to a file
and  deliver them when the SIP user REGISTER.

-- 
Sincerely,
falazemi



More information about the asterisk-users mailing list