[Freeswitch-users] cli command to list profiles
Steven Ayre
steveayre at gmail.com
Wed Sep 27 22:43:38 UTC 2017
Try "sofia xmlstatus", xpath to the profile names would be
"//profiles/profile/name/text()"
On 27 September 2017 at 20:41, Bipin Patel <bipin at xbipin.com> wrote:
> I hope this works when called from a php script. I was hoping there would
> be any command similar to show xxx as xml or json as that's easier to parse
> but all day searching and couldn't find anything.
>
> Thanks will try it tomorrow
>
> On September 27, 2017 10:10:56 PM David Villasmil <
> david.villasmil.work at gmail.com> wrote:
>
>> fs_cli -x "sofia status" | grep "profile.*@" | awk '{print $1}'
>>
>> a little convoluted ;)
>> ᐧ
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.work at gmail.com
>> phone: +34669448337 <+34%20669%2044%2083%2037>
>>
>> On Wed, Sep 27, 2017 at 4:41 PM, Bipin Patel <bipin at xbipin.com> wrote:
>>
>>> hi,
>>>
>>> yes that i know but i want something that outputs profile names only coz
>>> i developed a CDR portal so adding more things to it so can make it open
>>> source which would work like a drop in php portal that works out of the box
>>> and to see active registrations etc i need to know the profile names so
>>> then can sofia status profile internal reg
>>>
>>>
>>> Regards,
>>> Bipin
>>>
>>>
>>> ------------------------------
>>> -------- Original Message --------
>>> Subject: Re: [Freeswitch-users] cli command to list profiles
>>> From: Vallimamod Abdullah <vma at vallimamod.org> <vma at vallimamod.org>
>>> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>> <freeswitch-users at lists.freeswitch.org>
>>> Date: 9/27/2017, 6:07:32 PM
>>>
>>> Hi,
>>>
>>> Have you tried 'sofia status' ?
>>> It wil give you all active profiles and gateways.
>>>
>>> Best Regards,
>>> --
>>> Vallimamod Abdullah
>>> SIP Solutions
>>> vma at sipsolutions.fr
>>> .
>>>
>>> On 27 Sep 2017, at 15:14, Bipin Patel <bipin at xbipin.com> wrote:
>>>
>>> hi,
>>>
>>> is there any cli command to list names of all sip profiles as at times
>>> clients use different names other than internal and external
>>>
>>>
>>> --
>>> Regards,
>>> Bipin
>>>
>>>
>>> ------------------------------
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>>
>>>
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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/20170927/e63411b5/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list