[asterisk-users] Dialplan Action on Authentication

David Ashwood david at holiday-velvet.com
Sun Jul 20 08:29:08 CDT 2008


Hi Karsten,

Thanks - that's just the approach I've taken and appears to be the most
direct approach.
I've a simple php script that wraps up a telnet interface with a little
parsing and, while it needs more debugging & exception handling, it appears
to be working.


Thanks,

David

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Karsten
Wemheuer
Sent: 20 July 2008 14:42
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Dialplan Action on Authentication

Hi David,

Am Sonntag, den 20.07.2008, 11:57 +0200 schrieb David Ashwood:
> Morning guys and gals,
> 
>  
> 
> I?d like to be able to run some code when a device (soft/hardphone)
> authenticates to Asterisk.
> 
> I remember reading somewhere that there?s the possibility of part of a
> dialplan can be run when a device authenticates.  
> 
> Does anybody have a pointer to some documentation or some pointers
> about the context that can be used when a device
> authenticates/unauthenticates to Asterisk?
> 
>  
> 
> I?m looking for some actions to be performed on Client Authentication
> without using a manual authentication (using VMAuthenticate or
> AgentLogin).

As Alex said, it is impossible to do this from dialplan. But maybe it is
possible for You to use the manager API. On the manager interface there
is an event fired, whenever a peer (SIP or IAX) registers. So it should
be possible to logon to the manager interface, wait for the event and do
some action. If You want go back to the daiplan, you can originate a
call to a local channel when the event occurs.

HTH,

Karsten



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

AstriCon 2008 - September 22 - 25 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




More information about the asterisk-users mailing list