[OpenSIPS-Users] registrar lookup

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jun 25 14:44:32 CEST 2015


So you want to call all the users registered on the server ? can you 
make a db query to get all the subscribers (from a table) and do a loop 
to do lookup(location) for each of them, one by one ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.06.2015 15:05, Pete Kelly wrote:
>
>
> On 25 June 2015 at 11:16, Bogdan-Andrei Iancu <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> wrote:
>
>     Hi Pete,
>
>     No, at script level you cannot get a list with all the registered
>     users. Of course, you can do a very dirty trick, to run a exec()
>     and do the MI querying to get the list.
>
>     But why do you need that list in your script logic ?
>
>
> In order to be able to call with parallel fork *all* users who are 
> currently registered, unless there is another mechanism for this?
>
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 25.06.2015 10:47, Pete Kelly wrote:
>>     Hi Bodgan
>>
>>     I want to do it from script.
>>
>>     Regards
>>     Pete
>>
>>     On 24 June 2015 at 15:28, Bogdan-Andrei Iancu
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>>
>>         Hi Pete,
>>
>>         Do you want to do this from script or via MI ?
>>
>>         Regards,
>>
>>         Bogdan-Andrei Iancu
>>         OpenSIPS Founder and Developer
>>         http://www.opensips-solutions.com
>>
>>         On 24.06.2015 11:48, Pete Kelly wrote:
>>>         Hi
>>>
>>>         Is there any way or known workaround to do a registrar
>>>         lookup to retrieve all currently registered users for a
>>>         given domain?
>>>
>>>         As I understand it I can pass in an AOR to retrieve a
>>>         specific user at domain, however I would like to to retrieve
>>>         all users on a given domain.
>>>
>>>         Regards
>>>         Pete
>>>
>>>
>>>         _______________________________________________
>>>         Users mailing list
>>>         Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150625/33e6696f/attachment.htm>


More information about the Users mailing list