[OpenSIPS-Users] Users Digest, Vol 6, Issue 77

michel freiha michofr at gmail.com
Fri Jan 16 20:58:50 CET 2009


Hi all,
When using (registered("location","$fu")) I got the error
CRITICAL:core:yyerror: parse error in config file, line 457, column 22-23:
unknown command, missing loadmodule?

If i remove the $fu as (registered("location")  no error is found when
starting OpenSips

I'm using OpenSips ver 1.4

Regards
Regards

On Fri, Jan 16, 2009 at 5:31 PM, <users-request at lists.opensips.org> wrote:

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


More information about the Users mailing list