[Freeswitch-users] sofia_count_reg - return -1

Lloyd Aloysius lloyd.aloysius at sunteltech.ca
Sun Apr 22 22:38:15 MSD 2012


There are no issue in domains settings. sofia_contact works perfectly
*
*
*  <http://www.sunteltech.ca/blog/>*



On Sun, Apr 22, 2012 at 2:20 PM, William King
<william.king at quentustech.com>wrote:

>  Can you double check how your domains are listed under 'sofia status' ?
>
> Also, check the value for the user under the command 'sofia status profile
> <profile_name> reg'. This will list all of the registrations, and you
> should check the User: field. That's the domain or ip you have to use to be
> able to count the registrations.
>
> William King
> Senior Engineer
> Quentus Technologies, INC
> 1037 NE 65th St Suite 273
> Seattle, WA 98115
> Main:   (877) 211-9337
> Office: (206) 388-4772
> Cell:   (253) 686-5518william.king at quentustech.com
>
>
> On 04/22/2012 11:14 AM, Lloyd Aloysius wrote:
>
> Environment
>
>  1. Multi-tenant
> 2. Core Database - mysql
> 3. See the results
>
>  freeswitch at default> version
> FreeSWITCH Version 1.1.beta1 (git-adae5e5 2012-04-21 16-08-32 +0200)
>
>
>   freeswitch at default> sofia_count_reg aaron at mydomain.ca
> -1
>
>  freeswitch at default> sofia_count_reg mydomain.ca
>  -1
>
>  freeswitch at default>
>
>   *
> *
>  But the user aaron is registered with the system.
>
>
>
>
> On Sun, Apr 22, 2012 at 3:02 AM, Kyle King <kyle.king at quentustech.com>wrote:
>
>>  I tested and found everything in order. If you were using the api
>> without arguments then it will report a error "-1". The correct format
>> for counting all registrations of a user use "sofia_count_reg
>> <user>@<domain>" I use "sofia_count_reg 1000 at 192.168.100.74" "1000"
>> being my user and "192.168.100.74" the IP of my FreeSWITCH box". To see
>> all registrations of a domain use "sofia_count_reg @<domain>" I use
>> "sofia_count_reg @192.168.100.74" (be sure to include the @).
>>
>> Kyle A. King
>> Quentus Technologies, INC
>> Cell: 703-635-9512
>> Work: 253-218-6030
>> Fax:  206-462-1861
>> Email: kyle.king at quentustech.com
>>
>>
>> On 04/21/2012 09:20 PM, Brian Foster wrote:
>>
>> By the way, you need to do this:
>>
>> sofia_count_reg user/<user_id>@<domain>
>>
>> In my case I get 0, but there's one registered. On another that's not
>> registered I get -1. Add that into your bug report.
>>
>> -BDF
>>
>> On Sun, Apr 22, 2012 at 12:18 AM, Brian Foster <bdfoster at endigotech.com> <bdfoster at endigotech.com>wrote:
>>
>>
>>  Looks like it's been broken for awhile now, but yes, as Gabe mentioned you
>> need to file a JIRA. This is the wrong place for bug reports.
>>
>> -BDF
>>
>>
>> On Sat, Apr 21, 2012 at 11:46 PM, Gabriel Gunderson <gabe at gundy.org> <gabe at gundy.org>wrote:
>>
>>
>>  On Sat, Apr 21, 2012 at 7:48 PM, Lloyd Aloysius<lloyd.aloysius at gmail.com> <lloyd.aloysius at gmail.com> wrote:
>>
>>  Today I update the most recent version from git. Does sofia_count_reg
>>  broken? It always return -1
>>
>>  I'll save you some time... if you think it's a bug, go here:http://jira.freeswitch.org/secure/Dashboard.jspa
>>
>> Directing users to report bugs in Jira has been a pretty constant
>> theme on the mailing list (especially the last few weeks).
>>
>> Good luck!
>>
>> Best,
>> Gabe
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>>
>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.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
>>
>>  --
>> Brian D. Foster
>> Endigo Computer LLC
>> Email: bdfoster at endigotech.com
>> Phone: 317-800-7876
>> Indianapolis, Indiana, USA
>>
>> This message contains confidential information and is intended for those
>> listed in the "To:", "CC:", and/or "BCC:" fields of the message header. If
>> you are not the intended recipient you are notified that disclosing,
>> copying, distributing or taking any action in reliance on the contents of
>> this information is strictly prohibited. E-mail transmission cannot be
>> guaranteed to be secure or error-free as information could be intercepted,
>> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
>> The sender therefore does not accept liability for any errors or omissions
>> in the contents of this message, which arise as a result of e-mail
>> transmission. If verification is required please request a hard-copy
>> version.
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>>
>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.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://wiki.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
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.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://wiki.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/20120422/c122b9b8/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list