[OpenSIPS-Users] registrar lookup

Ovidiu Sas osas at voipembedded.com
Thu Jun 25 14:56:24 CEST 2015


Try to register all users with a forced AOR:
http://www.opensips.org/html/docs/modules/2.1.x/registrar.html#id294034
Then perform a lookup with the same forced AOR:
http://www.opensips.org/html/docs/modules/2.1.x/registrar.html#id294366
That should do the trick.

Regards,
Ovidiu Sas
On Jun 25, 2015 08:05, "Pete Kelly" <pkelly at gmail.com> wrote:

>
>
> On 25 June 2015 at 11:16, Bogdan-Andrei Iancu <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 Developerhttp://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>
>> wrote:
>>
>>>  Hi Pete,
>>>
>>> Do you want to do this from script or via MI ?
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>> OpenSIPS Founder and Developerhttp://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 listUsers at lists.opensips.orghttp://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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150625/4f7e5432/attachment.htm>


More information about the Users mailing list