[asterisk-users] Operate on registrations

Olle E Johansson oej at edvina.net
Tue Jan 23 06:50:22 MST 2007


23 jan 2007 kl. 10.42 skrev yusuf:

> Hi,
>
> I have a bunch of SIP phones(behind NAT) registering on my * box.   
> I want to find out when they register and de-register.  I also want  
> to operate on it, so when they register/de-register, I want to  
> insert calldate into a mysql DB, etc.....
> Maybe this will help me when, for instance a user tries to register  
> but has the wrong username/password.
>
> Now I am aware of regcontext, but it only creates a 1,NoOP for that  
> user, I want it to execute that, so I can have this maybe:
>
> exten => 666,2,AGI(Registraion.agi)
>
> so when my users register 666,1,NoOp will be created and execution  
> can start there.
>
> Any Ideas on how I can get something like this?

We do send events for registration/deregistration to the manager  
interface (AMI). I think that's the best
way to handle this.

/O


More information about the asterisk-users mailing list