[OpenSIPS-Users] Opensips, load_balancing and authentication process

Bogdan-Andrei Iancu bogdan at opensips.org
Tue May 30 09:48:23 EDT 2017


Hi Denis,

Use the $hdr() to extract the hdr with the nonce in combination with 
some transformations and regular expressions to get the value for the 
nonce field.

Regards,

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

OpenSIPS Bootcamp 2017, Houston, US
   http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 05/28/2017 12:31 PM, Денис Путято wrote:
> Hello Bogdan!
>
> And if i wont to get nonce from, from example, load balanser? Not 
> registrar
>
> -- 
> С уважением,
> Путято Денис
>
> 16:34, 26 мая 2017 г., "Bogdan-Andrei Iancu" <bogdan at opensips.org>:
>
>
>
>
>
>
>     Hi Denis,
>
>
>
>     As OpenSIPS is the registrar, it it the one generating the nonce
>     (via the www_challenge() function). At script level, you do not
>     have visibility over the sent nonce .
>
>
>
>     Regards,
>
>
>     Bogdan-Andrei Iancu
>
>        OpenSIPS Founder and Developer
>
>        http://www.opensips-solutions.com
>
>
>
>     OpenSIPS Bootcamp 2017, Huston, US
>
>        http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
>
>
>     On 05/23/2017 08:30 AM, Denis via Users
>     wrote:
>
>
>>
>>     Hello, Bogdan!
>>
>>
>>     Thank you.
>>
>>
>>     One more. How can i access a "nonce" value from 401 reply,
>>     during REGISTER transaction?
>>
>>
>>     Thank you.
>>
>>
>>     -- 
>>
>>     С уважением, Денис.
>>
>>     Best regards, Denis
>>
>>
>>
>>
>>
>>
>>     22.05.2017, 17:39, "Bogdan-Andrei Iancu"
>>     <bogdan at opensips.org> <mailto:bogdan at opensips.org>:
>>
>>>
>>>     Hi Denis,
>>>
>>>
>>>
>>>     Just be sure :
>>>
>>>     1) during authentication, your proxy/registrar(s) allow to
>>>     have cross challenging - one server is firing the auth
>>>     challenge, but another one receives the reponse
>>>
>>>     2) the registrations are shared between all your registrar
>>>     servers.
>>>
>>>
>>>
>>>     Otherwise, just give it a try and test ;)
>>>
>>>
>>>
>>>     Regards,
>>>     Bogdan-Andrei Iancu
>>>
>>>        OpenSIPS Founder and Developer
>>>
>>>        http://www.opensips-solutions.com
>>>     <http://www.opensips-solutions.com/>
>>>
>>>
>>>
>>>     OpenSIPS Summit May 2017 Amsterdam
>>>
>>>        http://www.opensips.org/events/Summit-2017Amsterdam.html
>>>
>>>
>>>     On 05/18/2017 08:43 AM, Denis via Users wrote:
>>>
>>>>
>>>>     Hello!
>>>>
>>>>
>>>>     I am sorry that it was early, but i could not find an
>>>>     answer for my question.
>>>>
>>>>
>>>>     I want to ask for advice from community about how can i
>>>>     use Opensips as c "clean" Load_balancer for my project?
>>>>
>>>>     The scheme of the project is a classic.
>>>>
>>>>
>>>>     Load_balancer ---> Proxy1/Register1
>>>>
>>>>     | |
>>>>
>>>>     | | mysql replication.
>>>>
>>>>     | |
>>>>
>>>>     |_____________> Proxy2/Register2
>>>>
>>>>
>>>>     One load_balancer, two (or more) Proxies which have
>>>>     mysql replication relationship.
>>>>
>>>>
>>>>     What do i mean about "clean"? I mean that it should
>>>>     ONLY act as a balancer. It should be entry point into my
>>>>     network and it should "live forever" (UPS, protected
>>>>     server, NO MySQL interaction dialing with transaction
>>>>     processing). It should not make any other action about
>>>>     call processing (besides TCP <-> UDP conversion).
>>>>     All actions (Call processing, authentication, Registration
>>>>     etc.) should "live" in Proxies.
>>>>
>>>>
>>>>     So, my question is, can i do it?
>>>>
>>>>     Will Opensips work correctly in such scheme, including
>>>>     authentication procedure of the Call or Register
>>>>     processing?
>>>>
>>>>
>>>>     Thank you for any help.
>>>>
>>>>
>>>>     -- 
>>>>
>>>>     С уважением, Денис.
>>>>
>>>>     Best regards, Denis
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>     _______________________________________________
>>>>
>>>>     Users mailing list
>>>>
>>>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>>>
>>>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>>     ,
>>>
>>>     _______________________________________________
>>>
>>>     Users mailing list
>>>
>>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>>
>>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>>
>>
>>
>>
>>
>>     _______________________________________________
>>
>>     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/20170530/37d8f6b5/attachment.html>


More information about the Users mailing list