[Freeswitch-users] How to check Sofia status
Michael Collins
msc at freeswitch.org
Thu Apr 23 11:26:50 PDT 2009
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 at internal> show channels
uuid,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 at 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 at 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 at gmail.com> wrote:
> 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
> *
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090423/8a66a0e3/attachment-0002.html
More information about the FreeSWITCH-users
mailing list