Execute on registration receive

General discussions about Asterisk.

Moderators: Moderator, Support

Execute on registration receive

Postby _alx_ » Fri Oct 30, 2015 5:54 am

I want to know if it is possible to execute some sort of code upon receive of a registration packet?
_alx_
Oldsterisk
 
Posts: 57
Joined: Fri Oct 16, 2015 1:48 am

Re: Execute on registration receive

Postby abw1oim » Mon Nov 09, 2015 7:19 am

It's possible when using a service listening on AMI-events. This service may check for registration/deregistration events and execute any code You implement within the service.
Olaf Winkler
Asterisk- & Database-Solutions
abw1oim
Oldsterisk
 
Posts: 358
Joined: Fri Aug 05, 2011 1:00 am
Location: Germany

Re: Execute on registration receive

Postby ambiorixg12 » Tue Nov 10, 2015 11:45 pm

abw1oim wrote:It's possible when using a service listening on AMI-events. This service may check for registration/deregistration events and execute any code You implement within the service.



Yes that is a clever way to do it, but not the most easier. I made something similar on node.js

You will be catching events like

ManagerEvent_ChallengeSent
ManagerEventuccessfulAuth
ManagerEvent_ChallengeResponseFailed
ManagerEvent_Registry

https://wiki.asterisk.org/wiki/display/ ... AMI+Events
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic


Return to Asterisk General

Who is online

Users browsing this forum: Google [Bot] and 1 guest