[Freeswitch-users] How to check Sofia status

Raul Fragoso raul at etellicom.com
Wed Apr 22 23:43:54 PDT 2009

The simplest way to find if the extension is already on a call is to
check the sip_dialogs table (by default it's stored in a sqlite database
in db/sofia_reg_internal.db, but you can set the sofia profile to use
ODBC and store the tables in another DBMS, like MySQL, PostgreSQL, etc).
The following SQL query will return at least one record if the extension
1000 is on a call:
select * from sip_dialogs where contact_user = '1000';
Otherwise no records will be returned.



On Thu, 2009-04-23 at 11:08 +0530, Baskar wrote:
> Hi,
> Michael Collins: I will explain in Detail
> If the agent register 1000 in xlite.
> The registered users can be viewed by api command api sofia status
> profile default.
> After that if i want to view the status of that extension 1000 whether
> he is in calling are in ideal.
> There is any api command to check the status of the extension(1000).
> Thanks with Advance.
> -- 
> Warm Regards,
> N.Baskar
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

More information about the FreeSWITCH-users mailing list