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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080720/ede205f4/attachment.htm
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
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