<div dir="ltr">Hi all,<br>When using (registered("location","$fu")) I got the error<br>CRITICAL:core:yyerror: parse error in config file, line 457, column 22-23: unknown command, missing loadmodule?<br>
<br>If i remove the $fu as (registered("location") no error is found when starting OpenSips<br><br>I'm using OpenSips ver 1.4<br><br>Regards<br>Regards<br><br><div class="gmail_quote">On Fri, Jan 16, 2009 at 5:31 PM, <span dir="ltr"><<a href="mailto:users-request@lists.opensips.org" target="_blank">users-request@lists.opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Users mailing list submissions to<br>
<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@lists.opensips.org" target="_blank">users-request@lists.opensips.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@lists.opensips.org" target="_blank">users-owner@lists.opensips.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [Kamailio-Users] Registered user (Bogdan-Andrei Iancu)<br>
2. Re: [Kamailio-Users] Registered user (Bogdan-Andrei Iancu)<br>
3. Re: Registered user (Bogdan-Andrei Iancu)<br>
4. Re: Registered user (Bogdan-Andrei Iancu)<br>
5. Re: [Kamailio-Users] Registered user (Bogdan-Andrei Iancu)<br>
6. Re: [Kamailio-Users] Registered user (Bogdan-Andrei Iancu)<br>
7. Re: Max No Of Registered users (I?aki Baz Castillo)<br>
8. Re: [Kamailio-Users] Registered user (Alex Balashov)<br>
9. Re: [Kamailio-Users] Registered user (Alex Balashov)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 16 Jan 2009 16:44:52 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Luciano Afranllie <<a href="mailto:listas.luafran@gmail.com" target="_blank">listas.luafran@gmail.com</a>><br>
Cc: <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>, <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, michel freiha<br>
<<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>>, <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:49709D64.6030109@voice-system.ro" target="_blank">49709D64.6030109@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Sorry, that was the link for stable version.<br>
<br>
The correct link is (for devel version) :<br>
<a href="http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407</a><br>
<br>
Here you can do :<br>
if (registered("location","$fu")) {<br>
....<br>
}<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Luciano Afranllie wrote:<br>
> registered function does not check if called party is registered?<br>
><br>
> I think he wants to know if calling party is using a regitered device...<br>
><br>
> On Fri, Jan 16, 2009 at 11:42 AM, Bogdan-Andrei Iancu<br>
> <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>> wrote:<br>
><br>
>> Hi Michel,<br>
>><br>
>> See the registered() function from the registrar module:<br>
>><br>
>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> michel freiha wrote:<br>
>><br>
>>> Dear All,<br>
>>> I need to ask please about which function should I use in order to<br>
>>> check while making a call if the user who is dialing the number is<br>
>>> making the call from a registered account or not?<br>
>>><br>
>>> Regards<br>
>>> ------------------------------------------------------------------------<br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>> _______________________________________________<br>
>> Kamailio (OpenSER) - Users mailing list<br>
>> <a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
>> <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
>> <a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 16 Jan 2009 16:44:52 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Luciano Afranllie <<a href="mailto:listas.luafran@gmail.com" target="_blank">listas.luafran@gmail.com</a>><br>
Cc: <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>, <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, michel freiha<br>
<<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>>, <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:49709D64.6030109@voice-system.ro" target="_blank">49709D64.6030109@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Sorry, that was the link for stable version.<br>
<br>
The correct link is (for devel version) :<br>
<a href="http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407</a><br>
<br>
Here you can do :<br>
if (registered("location","$fu")) {<br>
....<br>
}<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Luciano Afranllie wrote:<br>
> registered function does not check if called party is registered?<br>
><br>
> I think he wants to know if calling party is using a regitered device...<br>
><br>
> On Fri, Jan 16, 2009 at 11:42 AM, Bogdan-Andrei Iancu<br>
> <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>> wrote:<br>
><br>
>> Hi Michel,<br>
>><br>
>> See the registered() function from the registrar module:<br>
>><br>
>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> michel freiha wrote:<br>
>><br>
>>> Dear All,<br>
>>> I need to ask please about which function should I use in order to<br>
>>> check while making a call if the user who is dialing the number is<br>
>>> making the call from a registered account or not?<br>
>>><br>
>>> Regards<br>
>>> ------------------------------------------------------------------------<br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>> _______________________________________________<br>
>> Kamailio (OpenSER) - Users mailing list<br>
>> <a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
>> <a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
>> <a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 16 Jan 2009 16:47:07 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] Registered user<br>
To: Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>><br>
Cc: <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>, <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, michel freiha<br>
<<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>>, <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:49709DEB.8000500@voice-system.ro" target="_blank">49709DEB.8000500@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Alex, you are right...The link was not correct:<br>
<br>
Check the devel version :<br>
<a href="http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407</a><br>
<br>
where you can do:<br>
registered("location","$fu")<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Alex Balashov wrote:<br>
> But doesn't that check if the AOR in the RURI can be located.<br>
><br>
> Michel,<br>
><br>
> The proper way to do this -- assuming your motive is security and<br>
> authorisation -- is to challenge the incoming INVITE initial request<br>
> of the caller (who is supposed to be registered) with a 407 proxy<br>
> challenge, i.e. proxy_authorize()/proxy_challenge().<br>
><br>
> Bogdan-Andrei Iancu wrote:<br>
><br>
>> Hi Michel,<br>
>><br>
>> See the registered() function from the registrar module:<br>
>><br>
>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> michel freiha wrote:<br>
>>> Dear All,<br>
>>> I need to ask please about which function should I use in order to<br>
>>> check while making a call if the user who is dialing the number is<br>
>>> making the call from a registered account or not?<br>
>>><br>
>>> Regards<br>
>>> ------------------------------------------------------------------------<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 16 Jan 2009 16:47:07 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] Registered user<br>
To: Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>><br>
Cc: <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>, <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, michel freiha<br>
<<a href="mailto:michofr@gmail.com" target="_blank">michofr@gmail.com</a>>, <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:49709DEB.8000500@voice-system.ro" target="_blank">49709DEB.8000500@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Alex, you are right...The link was not correct:<br>
<br>
Check the devel version :<br>
<a href="http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.5.x/registrar.html#id271407</a><br>
<br>
where you can do:<br>
registered("location","$fu")<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Alex Balashov wrote:<br>
> But doesn't that check if the AOR in the RURI can be located.<br>
><br>
> Michel,<br>
><br>
> The proper way to do this -- assuming your motive is security and<br>
> authorisation -- is to challenge the incoming INVITE initial request<br>
> of the caller (who is supposed to be registered) with a 407 proxy<br>
> challenge, i.e. proxy_authorize()/proxy_challenge().<br>
><br>
> Bogdan-Andrei Iancu wrote:<br>
><br>
>> Hi Michel,<br>
>><br>
>> See the registered() function from the registrar module:<br>
>><br>
>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> michel freiha wrote:<br>
>>> Dear All,<br>
>>> I need to ask please about which function should I use in order to<br>
>>> check while making a call if the user who is dialing the number is<br>
>>> making the call from a registered account or not?<br>
>>><br>
>>> Regards<br>
>>> ------------------------------------------------------------------------<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 16 Jan 2009 17:17:12 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
Cc: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>,<br>
<a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:4970A4F8.3080509@voice-system.ro" target="_blank">4970A4F8.3080509@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
<br>
<br>
Daniel-Constantin Mierla wrote:<br>
><br>
> On 01/16/2009 03:50 PM, Alex Balashov wrote:<br>
>> But doesn't that check if the AOR in the RURI can be located.<br>
>><br>
> kamailio (openser) has for quite some time a parameter in registrar<br>
> module that can overwrite from where to get the aor:<br>
> <a href="http://www.kamailio.org/docs/modules/devel/registrar.html#id2467548" target="_blank">http://www.kamailio.org/docs/modules/devel/registrar.html#id2467548</a><br>
><br>
> It is in the last two major release at least: openser 1.3.x and<br>
> kamailio 1.4.x<br>
I like you logic here :)..you are funny man :)...<br>
><br>
> modparam("registrar", "aor_avp", "$avp(i:3223)")<br>
> $avp(i:3223) = $fu;<br>
> if(registered())<br>
> {<br>
> ...<br>
> }<br>
Of course this notation is present since openser 1.3 and it was<br>
inherited by both OpenSIPS 1.4.4 and Kamilio 1.4.3, but now we try to<br>
get a better approach of this functionality: why put the value into an<br>
AVP and let the function search all the time for that AVP (set or not<br>
set), when you can simply take advantage and directly pass the value as<br>
parameter to the function. You get read of (1) useless transit via an<br>
AVP and (2) useless AVP search all the time. Also you get a more compact<br>
and clear scripting....<br>
<br>
Regards,<br>
Bogdan<br>
><br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
>> Michel,<br>
>><br>
>> The proper way to do this -- assuming your motive is security and<br>
>> authorisation -- is to challenge the incoming INVITE initial request<br>
>> of the caller (who is supposed to be registered) with a 407 proxy<br>
>> challenge, i.e. proxy_authorize()/proxy_challenge().<br>
>><br>
>> Bogdan-Andrei Iancu wrote:<br>
>><br>
>><br>
>>> Hi Michel,<br>
>>><br>
>>> See the registered() function from the registrar module:<br>
>>><br>
>>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>>><br>
>>> Regards,<br>
>>> Bogdan<br>
>>><br>
>>> michel freiha wrote:<br>
>>><br>
>>>> Dear All,<br>
>>>> I need to ask please about which function should I use in order to<br>
>>>> check while making a call if the user who is dialing the number is<br>
>>>> making the call from a registered account or not?<br>
>>>><br>
>>>> Regards<br>
>>>> ------------------------------------------------------------------------<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Fri, 16 Jan 2009 17:17:12 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br>
Cc: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>,<br>
<a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:4970A4F8.3080509@voice-system.ro" target="_blank">4970A4F8.3080509@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
<br>
<br>
Daniel-Constantin Mierla wrote:<br>
><br>
> On 01/16/2009 03:50 PM, Alex Balashov wrote:<br>
>> But doesn't that check if the AOR in the RURI can be located.<br>
>><br>
> kamailio (openser) has for quite some time a parameter in registrar<br>
> module that can overwrite from where to get the aor:<br>
> <a href="http://www.kamailio.org/docs/modules/devel/registrar.html#id2467548" target="_blank">http://www.kamailio.org/docs/modules/devel/registrar.html#id2467548</a><br>
><br>
> It is in the last two major release at least: openser 1.3.x and<br>
> kamailio 1.4.x<br>
I like you logic here :)..you are funny man :)...<br>
><br>
> modparam("registrar", "aor_avp", "$avp(i:3223)")<br>
> $avp(i:3223) = $fu;<br>
> if(registered())<br>
> {<br>
> ...<br>
> }<br>
Of course this notation is present since openser 1.3 and it was<br>
inherited by both OpenSIPS 1.4.4 and Kamilio 1.4.3, but now we try to<br>
get a better approach of this functionality: why put the value into an<br>
AVP and let the function search all the time for that AVP (set or not<br>
set), when you can simply take advantage and directly pass the value as<br>
parameter to the function. You get read of (1) useless transit via an<br>
AVP and (2) useless AVP search all the time. Also you get a more compact<br>
and clear scripting....<br>
<br>
Regards,<br>
Bogdan<br>
><br>
><br>
> Cheers,<br>
> Daniel<br>
><br>
><br>
>> Michel,<br>
>><br>
>> The proper way to do this -- assuming your motive is security and<br>
>> authorisation -- is to challenge the incoming INVITE initial request<br>
>> of the caller (who is supposed to be registered) with a 407 proxy<br>
>> challenge, i.e. proxy_authorize()/proxy_challenge().<br>
>><br>
>> Bogdan-Andrei Iancu wrote:<br>
>><br>
>><br>
>>> Hi Michel,<br>
>>><br>
>>> See the registered() function from the registrar module:<br>
>>><br>
>>> <a href="http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/registrar.html#id271407</a><br>
>>><br>
>>> Regards,<br>
>>> Bogdan<br>
>>><br>
>>> michel freiha wrote:<br>
>>><br>
>>>> Dear All,<br>
>>>> I need to ask please about which function should I use in order to<br>
>>>> check while making a call if the user who is dialing the number is<br>
>>>> making the call from a registered account or not?<br>
>>>><br>
>>>> Regards<br>
>>>> ------------------------------------------------------------------------<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>><br>
>><br>
><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 16 Jan 2009 16:27:00 +0100<br>
From: I?aki Baz Castillo <<a href="mailto:ibc@aliax.net" target="_blank">ibc@aliax.net</a>><br>
Subject: Re: [OpenSIPS-Users] Max No Of Registered users<br>
To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
Message-ID: <<a href="mailto:200901161627.00576.ibc@aliax.net" target="_blank">200901161627.00576.ibc@aliax.net</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
El Viernes, 16 de Enero de 2009, Bogdan-Andrei Iancu escribi?:<br>
> Hi Zen,<br>
><br>
> even 64M should be enough for 3K of registrations....An this is not<br>
> related to CPU.<br>
<br>
Yes, the problem is the private memory. With just 1 MB I couldn't restart<br>
OpenSIPS with 5000 users registered.<br>
<br>
--<br>
I?aki Baz Castillo<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 16 Jan 2009 10:27:29 -0500<br>
From: Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Cc: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>,<br>
<a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:4970A761.50405@evaristesys.com" target="_blank">4970A761.50405@evaristesys.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Bogdan,<br>
<br>
In OpenSIPS, are AVP searches still linear for AVPs that have string<br>
identifiers? My understanding is that traditionally they were linear,<br>
as opposed to hashed.<br>
<br>
Thanks,<br>
<br>
-- Alex<br>
<br>
Bogdan-Andrei Iancu wrote:<br>
<br>
> Of course this notation is present since openser 1.3 and it was<br>
> inherited by both OpenSIPS 1.4.4 and Kamilio 1.4.3, but now we try to<br>
> get a better approach of this functionality: why put the value into an<br>
> AVP and let the function search all the time for that AVP (set or not<br>
> set), when you can simply take advantage and directly pass the value as<br>
> parameter to the function. You get read of (1) useless transit via an<br>
> AVP and (2) useless AVP search all the time. Also you get a more compact<br>
> and clear scripting....<br>
<br>
<br>
--<br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (678) 237-1775<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 16 Jan 2009 10:27:29 -0500<br>
From: Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>><br>
Subject: Re: [OpenSIPS-Users] [Kamailio-Users] Registered user<br>
To: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
Cc: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>, <a href="mailto:users@lists.openser.org" target="_blank">users@lists.openser.org</a>,<br>
<a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
Message-ID: <<a href="mailto:4970A761.50405@evaristesys.com" target="_blank">4970A761.50405@evaristesys.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Bogdan,<br>
<br>
In OpenSIPS, are AVP searches still linear for AVPs that have string<br>
identifiers? My understanding is that traditionally they were linear,<br>
as opposed to hashed.<br>
<br>
Thanks,<br>
<br>
-- Alex<br>
<br>
Bogdan-Andrei Iancu wrote:<br>
<br>
> Of course this notation is present since openser 1.3 and it was<br>
> inherited by both OpenSIPS 1.4.4 and Kamilio 1.4.3, but now we try to<br>
> get a better approach of this functionality: why put the value into an<br>
> AVP and let the function search all the time for that AVP (set or not<br>
> set), when you can simply take advantage and directly pass the value as<br>
> parameter to the function. You get read of (1) useless transit via an<br>
> AVP and (2) useless AVP search all the time. Also you get a more compact<br>
> and clear scripting....<br>
<br>
<br>
--<br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (678) 237-1775<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 6, Issue 77<br>
************************************<br>
</blockquote></div><br></div>