Rather than add extra overhead to your dialplan and the asterisk
server, why not make use of the AMI and have a background process
listening for the various events and updating your database accordingly
? 

See
http://www.voip-info.org/wiki/view/asterisk+manager+events#ExtensionStatusEvent
and
http://search.cpan.org/~greenbean/Asterisk-AMI-v0.2.5/lib/Asterisk/AMI.pm#Events


Regards, 

Rob 

On Wed, 13 Apr 2011 10:15:30 +0200, Jonas Kellens
wrote: 

> Hello,
> 
> I'm using SIP realtime with MySQL DB.
> 
> Is it
possible to get the status of the SIP peer (free / calling) from this
realtime DB ?
> 
> If not, is there another way to obtain the call state
of a SIP peer ?
> 
> Kind regards,
> Jonas.
 
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to