[OpenSIPS-Users] List of online users

smadhoo6 smadhoo6 at yahoo.com
Thu Oct 1 09:08:53 CEST 2009


Excellent!!.. 
Both.. (the simpler and uglier) work perfectly well!.. Thanks! :))
Is there tutorial available for using avp variables?..
And do "while" and "for" loops work in config script..?


Bogdan-Andrei Iancu wrote:
> 
> Hi,
> 
> You can try to get ( into script ) the registration information in two
> ways:
> 
> 1) (simpler) - use db_mode=1 to have a perfect sync between the memory 
> cache and DB - use the avp_db_query() function to run a custom DB query 
> and load from "location" table the information you need.
> 
> 2) (uglier) - use exec module to externally execute the MI command for 
> dumping the content of the memory cache (for usrloc) ; exec module 
> allows you to capture the output of the external command you are running 
> into an AVP (in script).
> 
> Regards,
> Bogdan
> 
> smadhoo6 wrote:
>> Oh yeah!.. I am developing a SIP-Client that will be using this
>> information..
>> using pjsip..
>> Once I know how I 'll be able to send this information.. I can make
>> changes
>> in the client accordingly.. :)
>> Thanks!
>>
>> Raúl Alexis Betancor Santana wrote:
>>   
>>> On Wednesday 30 September 2009 12:05:51 smadhoo6 wrote:
>>>     
>>>> Hi,
>>>> I want to send this information(ie., the subscribers list) to all the
>>>> registered users within that domain..
>>>>       
>>> That is useless ..., if you are not using a custom-developed SIP-client
>>> that 
>>> expect that information ... any SIP-compliant UAC will refuse that 
>>> information and you will be wasting your time and resources.
>>>
>>> -- 
>>> Raúl Alexis Betancor Santana
>>> Dimensión Virtual
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>     
>>
>>   
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/List-of-online-users-tp3711302p3747359.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list