On 04/13/2011 10:57 AM, Ishfaq Malik wrote:
On Wed, 2011-04-13 at 10:15 +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 ?
You could use core show channels in the console/via AMI to determine if
any extensions are on a call or even making a call.
If this information is not available, then I'm thinking of writing an
AGI and calling this AGI when a call is being answered. This AGI will
then write to the MySQL-DB the state "busy" for this SIP peer.
Off course when the call ends, I need another AGi in the h-exten which
writes the state "free" for this SIP peer.
You think this will work ? Or will it put too much load on my system ?
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