SIP peer doesn&#39;t need to be registered. It uses the host value to talk to the peer.<div><br></div><div>Regards,</div><div>Ali Pey</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 1:15 PM, Face <span dir="ltr">&lt;<a href="mailto:falazemi@gmail.com" target="_blank">falazemi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Nov 14, 2012 at 7:42 PM, Steve Edwards<br>
&lt;<a href="mailto:asterisk.org@sedwards.com">asterisk.org@sedwards.com</a>&gt; wrote:<br>
&gt;&gt; On Wed, 14 Nov 2012, Face wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Is there a way I can trigger a AGI script On SIP REGISTER event.<br>
&gt;<br>
&gt;<br>
&gt; On Wed, 14 Nov 2012, Danny Nicholas wrote:<br>
&gt;<br>
&gt;&gt; What you will need to do is to monitor for the SIP REGISTER in AMI, then<br>
&gt;&gt; launch a local channel call to run your AGI process.  If the process is not<br>
&gt;&gt; time-critical, you could monitor the logs to cut down on AMI traffic.<br>
&gt;<br>
&gt;<br>
&gt; Just for clarity...<br>
&gt;<br>
&gt; If the OP&#39;s script does not interact with Asterisk using the AGI protocol,<br>
&gt; it is not an &#39;AGI&#39; and does not need any channel.<br>
&gt;<br>
&gt; If the OP&#39;s &#39;goal&#39; is something like &#39;when Asterisk receives a REGISTER, I<br>
&gt; want to update a counter in my MySQL database&#39; then no channel is needed.<br>
&gt;<br>
&gt; Hey, OP, if we know what you are trying to accomplish, maybe we can suggest<br>
&gt; a solution rather than answering a &#39;feature&#39; question.<br>
&gt;<br>
&gt; --<br>
&gt; Thanks in advance,<br>
&gt; -------------------------------------------------------------------------<br>
&gt; Steve Edwards       <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a>      Voice: <a href="tel:%2B1-760-468-3867" value="+17604683867">+1-760-468-3867</a> PST<br>
&gt; Newline                                              Fax: <a href="tel:%2B1-760-731-3000" value="+17607313000">+1-760-731-3000</a><br>
&gt;<br>
&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
<br>
</div></div>I have a related question. I need to know if a SIP peer is registered<br>
or unregistered. I try :<br>
<br>
CLI<br>
------------------------------<br>
sip show peer 6000<br>
<br>
<br>
<br>
AMI<br>
------------------------------<br>
Action: SIPShowPeer<br>
Peer: 6000<br>
<br>
<br>
AMI<br>
------------------------------<br>
Action: ExtensionState<br>
Exten: 1<br>
<br>
<br>
<br>
noun of those return anything about the SIP peer is registered or unregistered!<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Sincerely,<br>
falazemi<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>