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

2012-11-15 Thread Face
On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards
asterisk@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   sedwa...@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



I have a related question. I need to know if a SIP peer is registered
or unregistered. I try :

CLI
--
sip show peer 6000



AMI
--
Action: SIPShowPeer
Peer: 6000


AMI
--
Action: ExtensionState
Exten: 1



noun of those return anything about the SIP peer is registered or unregistered!


-- 
Sincerely,
falazemi

--
_
-- 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


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

2012-11-15 Thread Ali Pey
SIP peer doesn't need to be registered. It uses the host value to talk to
the peer.

Regards,
Ali Pey


On Thu, Nov 15, 2012 at 1:15 PM, Face falaz...@gmail.com wrote:

 On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards
 asterisk@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   sedwa...@sedwards.com  Voice: +1-760-468-3867PST
  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



 I have a related question. I need to know if a SIP peer is registered
 or unregistered. I try :

 CLI
 --
 sip show peer 6000



 AMI
 --
 Action: SIPShowPeer
 Peer: 6000


 AMI
 --
 Action: ExtensionState
 Exten: 1



 noun of those return anything about the SIP peer is registered or
 unregistered!


 --
 Sincerely,
 falazemi

 --
 _
 -- 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

--
_
-- 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

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

2012-11-15 Thread Danny Nicholas
Check for Status on these commands.  If it comes back OK the peer is
registered.  If not, it should return UNKNOWN.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Face
Sent: Thursday, November 15, 2012 12:15 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] On SIP REGISTER event trigger a AGI script

On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards asterisk@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   sedwa...@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



I have a related question. I need to know if a SIP peer is registered or
unregistered. I try :

CLI
--
sip show peer 6000



AMI
--
Action: SIPShowPeer
Peer: 6000


AMI
--
Action: ExtensionState
Exten: 1



noun of those return anything about the SIP peer is registered or
unregistered!


--
Sincerely,
falazemi

--
_
-- 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


--
_
-- 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


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

2012-11-15 Thread Face
On Fri, Nov 16, 2012 at 12:32 AM, Danny Nicholas da...@debsinc.com wrote:
 Check for Status on these commands.  If it comes back OK the peer is
 registered.  If not, it should return UNKNOWN.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Face
 Sent: Thursday, November 15, 2012 12:15 PM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] On SIP REGISTER event trigger a AGI script

 On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards asterisk@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   sedwa...@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



 I have a related question. I need to know if a SIP peer is registered or
 unregistered. I try :

 CLI
 --
 sip show peer 6000



 AMI
 --
 Action: SIPShowPeer
 Peer: 6000


 AMI
 --
 Action: ExtensionState
 Exten: 1



 noun of those return anything about the SIP peer is registered or
 unregistered!


 --
 Sincerely,
 falazemi

 --
 _
 -- 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


 --
 _
 -- 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


I try all of those
--
Action: Status
Peer: 600

Action: Status
Exten: 600

Action: Status
SIP: 600



the return is this
--
Response: Success
Message: Channel status will follow

Event: StatusComplete
Items: 0

Response: Success
Message: Channel status will follow

Event: StatusComplete
Items: 0

Response: Success
Message: Channel status will follow

Event: StatusComplete
Items: 0


-- 
Sincerely,
falazemi

--
_
-- 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


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

2012-11-14 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Steve Edwards
Sent: Tuesday, November 13, 2012 7:17 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] On SIP REGISTER event trigger a AGI script

On Wed, 14 Nov 2012, Face wrote:

 Is there a way I can  trigger a AGI script On SIP REGISTER event.

 On Wed, Nov 14, 2012 at 2:38 AM, Steve Edwards

 Well, an AGI runs in the context of a channel. A REGISTER does not.

 So, no.

On Wed, 14 Nov 2012, Face wrote:

 Is there a way to accomplish my goal ?

 On Wed, Nov 14, 2012 at 2:38 AM, Steve Edwards

I don't know what your goal is.

An AGI cannot execute without a channel and a REGISTER does not create a
channel.

Are you are asking 'Can I execute something when Asterisk receives a
REGISTER request?'

I'm just a 1.2 Luddite, but I suspect listening to events on the manager
interface (AMI) from an external daemon would be the way to go.

--
As usual, Steve is correct.  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.


--
_
-- 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


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

2012-11-14 Thread Steve Edwards

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   sedwa...@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


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

2012-11-14 Thread Ali Pey
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@sedwards.comwrote:

 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   sedwa...@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-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- 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

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

2012-11-14 Thread Face
On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards
asterisk@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   sedwa...@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

--
_
-- 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


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

2012-11-14 Thread Steve Edwards

On Wed, 14 Nov 2012, Face wrote:

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.


I see 2 parts:

1) When the 'send SMS' fails, you're going to save the details in a 
(MySQL) database using either the dialplan database applications or an 
AGI. (I prefer an AGI because I think the resulting dialplan is much 
'cleaner' and easier to maintain.)


2) When your 'AMI event monitoring daemon' receives the REGISTER event, 
you look for any pending SMS for this user and re-send the SMS using AMI 
-- no AGI needed.


Sound about right?

--
Thanks in advance,
-
Steve Edwards   sedwa...@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


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

2012-11-14 Thread Steve Edwards

On Wed, 14 Nov 2012, Ali Pey wrote:

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.


Valid points, but as we get clarity on what the OP wants to accomplish, I 
think he should be looking at AMI.


--
Thanks in advance,
-
Steve Edwards   sedwa...@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


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

2012-11-14 Thread Face
On Wed, Nov 14, 2012 at 10:14 PM, Steve Edwards
asterisk@sedwards.com wrote:
 On Wed, 14 Nov 2012, Ali Pey wrote:

 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.


 Valid points, but as we get clarity on what the OP wants to accomplish, I
 think he should be looking at AMI.


 --
 Thanks in advance,
 -
 Steve Edwards   sedwa...@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


Steve Edwards Thank you for help
-- 
Sincerely,
falazemi

--
_
-- 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


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

2012-11-13 Thread Steve Edwards

On Wed, 14 Nov 2012, Face wrote:


Is there a way I can  trigger a AGI script On SIP REGISTER event.


Well, an AGI runs in the context of a channel. A REGISTER does not.

So, no.

--
Thanks in advance,
-
Steve Edwards   sedwa...@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


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

2012-11-13 Thread Face
On Wed, Nov 14, 2012 at 2:38 AM, Steve Edwards
asterisk@sedwards.com wrote:
 On Wed, 14 Nov 2012, Face wrote:

 Is there a way I can  trigger a AGI script On SIP REGISTER event.


 Well, an AGI runs in the context of a channel. A REGISTER does not.

 So, no.

 --
 Thanks in advance,
 -
 Steve Edwards   sedwa...@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

Is there a way to accomplish my goal ?

--
_
-- 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


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

2012-11-13 Thread Steve Edwards

On Wed, 14 Nov 2012, Face wrote:


Is there a way I can  trigger a AGI script On SIP REGISTER event.



On Wed, Nov 14, 2012 at 2:38 AM, Steve Edwards


Well, an AGI runs in the context of a channel. A REGISTER does not.

So, no.


On Wed, 14 Nov 2012, Face wrote:


Is there a way to accomplish my goal ?



On Wed, Nov 14, 2012 at 2:38 AM, Steve Edwards


I don't know what your goal is.

An AGI cannot execute without a channel and a REGISTER does not create a 
channel.


Are you are asking 'Can I execute something when Asterisk receives a 
REGISTER request?'


I'm just a 1.2 Luddite, but I suspect listening to events on the manager 
interface (AMI) from an external daemon would be the way to go.


--
Thanks in advance,
-
Steve Edwards   sedwa...@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