[asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread 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).

 

Environment:

Asterisk: 1.4.20

Clients: Soft (mostly Zoiper)  Hardphones (Atcom-530's)
using IAX2

 

 

Thanks for any pointers,

 

David

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

Re: [asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread Alex Balashov
David Ashwood wrote:
 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?

There is no such possibility.  SIP registration, challenge and 
authentication are all internal protocol events, not calls.

-- 
Alex Balashov
Evariste Systems
Web: http://www.evaristesys.com/
Tel: (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

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


Re: [asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread David Ashwood
Ok - thanks for the prompt answer Alex.
I thought something might be available under the associated context
connected with the IAX registration.

So the only approach dealing with registrations would be a script running
listening to manager events?


Regards,

David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Balashov
Sent: 20 July 2008 12:22
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Dialplan Action on Authentication

David Ashwood wrote:
 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?

There is no such possibility.  SIP registration, challenge and 
authentication are all internal protocol events, not calls.

-- 
Alex Balashov
Evariste Systems
Web: http://www.evaristesys.com/
Tel: (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

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


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


Re: [asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread Grey Man
On Sun, Jul 20, 2008 at 11:31 AM, David Ashwood
[EMAIL PROTECTED] wrote:
 Ok - thanks for the prompt answer Alex.
 I thought something might be available under the associated context
 connected with the IAX registration.

 So the only approach dealing with registrations would be a script running
 listening to manager events?

If you configured Asterisk to use realtime you could set up a database
trigger such that when Asterisk updated the FullContact field, i.e.
registered, you could process some logic.

Regards,

Greyman.

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


Re: [asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread Karsten Wemheuer
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

Re: [asterisk-users] Dialplan Action on Authentication

2008-07-20 Thread David Ashwood
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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


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