VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
yudha2008 at gmail.com Guest
|
Posted: Wed Apr 22, 2009 2:59 am Post subject: [Freeswitch-users] How to check Sofia status |
|
|
Hi,
There is any api command to check the status of the extension whether the agent is in ideal or in calling .
Can any one asset me to solve the problem. Thanks in advance
--
Warm Regards,
N.Baskar |
|
Back to top |
|
|
dule.maillist at gmail... Guest
|
Posted: Wed Apr 22, 2009 12:33 pm Post subject: [Freeswitch-users] How to check Sofia status |
|
|
I think he's asking if there's a way to check the status of a registered user; if the user is idle versus in a call.
On Wed, Apr 22, 2009 at 12:38 PM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Wed Apr 22, 2009 12:39 pm Post subject: [Freeswitch-users] How to check Sofia status |
|
|
Could you add some more details to this question? I'm not sure I understand what you mean...
Thanks,
MC
On Wed, Apr 22, 2009 at 12:58 AM, Baskar <yudha2008@gmail.com (yudha2008@gmail.com)> wrote:
|
|
Back to top |
|
|
yudha2008 at gmail.com Guest
|
Posted: Thu Apr 23, 2009 12:54 am Post subject: [Freeswitch-users] How to check Sofia status |
|
|
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
|
|
Back to top |
|
|
raul at etellicom.com Guest
|
Posted: Thu Apr 23, 2009 1:46 am Post subject: [Freeswitch-users] How to check Sofia status |
|
|
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.
Regards,
Raul
On Thu, 2009-04-23 at 11:08 +0530, Baskar wrote:
Quote: | 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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
yudha2008 at gmail.com Guest
|
Posted: Thu Apr 23, 2009 3:42 am Post subject: [Freeswitch-users] How to check Sofia status |
|
|
Hi,
Raul Fragoso:I can to get that through Mysql DB but i want to know whether there is any api command to check the status of the extension(1000).
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
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Apr 23, 2009 1:28 pm Post subject: [Freeswitch-users] How to check Sofia status |
|
|
None that I'm aware of. You'll probably have to parse the results of "show channels" and search through the "name" field results. For example, here's a call I just made from a SIP phone to 9999:
freeswitch@internal> show channelsuuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate 53a62ebd-156c-4684-b616-740d7a5b609b,inbound,2009-04-23 11:14:09,1240510449,sofia/internal/1000@10.15.0.91 (1000@10.15.0.91),CS_EXECUTE,Mikey,1000,10.15.0.213,9999,playback,local_stream://moh,XML,default,PCMU,8000,PCMU,8000
In this case, "name" contains "sofia/internal/1000@10.15.0.91 (1000@10.15.0.91)". From there you should be able to determine if that is one of the SIP clients whose status you want to see.
-MC
On Thu, Apr 23, 2009 at 1:30 AM, Baskar <yudha2008@gmail.com (yudha2008@gmail.com)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|