[asterisk-users] Server-side scripting when SIP phones register

Danny Nicholas danny at debsinc.com
Thu Oct 8 11:44:48 CDT 2009


You are correct that the dialplan isn't called on a registration.   The
"correct" way to handle this would be to modify chan_sip.c to do an action
when a phone registers.  The "hacky" way would be to capture sip debug to a
log and process that with a daemon.    You could always post a bounty.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Thursday, October 08, 2009 11:20 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Server-side scripting when SIP phones register

 

 

2009/10/8 Danny Nicholas <danny at debsinc.com>

You should be able to do this either via a system command or an AGI.

How ?
When a phone registers for the first time, IMHO, no part of dialplan is
launched, is it ?

Using AMI to be notified of such registrations must be possible but I don't
know if it's possible to distinguish first-time registrations from
re-registrations ?
 

 


  _____  


From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Thursday, October 08, 2009 9:30 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Server-side scripting when SIP phones register

 

Hi,

Some IP Phones (Aastra) are able to send a custom HTTP request just after
registration completion.
Using this, it is possible to update phone's screen with messages like "Do
Not Disturb" or "Forwarded To VM".

RFC 3680 (http://www.faqs.org/rfcs/rfc3680.html) provides a mecanism to
support these interactions.

To my knowledge, this RFC is not implemented yet in Asterisk.
Has someone found a workaround to that some scripting could be run whenever
a SIP phones registers ?

Regards


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091008/f69ec537/attachment.htm 


More information about the asterisk-users mailing list