Re: [OpenSIPS-Users] uac_auth DB support

2024-01-08 Thread Schneur Rosenberg
Thanks Liviu, BTW it's not Sebastian. it's Schneur AKA Scott :-) On Mon, Jan 8, 2024 at 9:34 AM Liviu Chircu wrote: > > On 06.12.2023 16:18, S.Rosenberg wrote: > > > I would like to know if OpenSIPS has a way to pull the registrant info via > code without manually doing a DB query? > > Hi Sebast

Re: [OpenSIPS-Users] uac_auth DB support

2024-01-08 Thread Liviu Chircu
On 06.12.2023 16:18, S.Rosenberg wrote: I would like to know if OpenSIPS has a way to pull the registrant info via code without manually doing a DB query? Hi Sebastian, A bit late to the party here, but try giving the sql_cacher a sp

Re: [OpenSIPS-Users] uac_auth DB support

2023-12-20 Thread S.Rosenberg
I ended up doing it the manually, I'm posting it so others who need it can try my method, I'm using cache_store in the startup route to avoid db lookups for every call, I use an attribute in the the dr_gateways to identify the row ID of the carrier in the registrar table I want to use. In the sta

[OpenSIPS-Users] uac_auth DB support

2023-12-08 Thread S.Rosenberg
Hi, I'm using the uac_auth to send calls to carriers that require username/password credentials, until now I only had a handful of carriers that don't support IP authentication so I hard coded the credentials, I was thinking of pulling it from the registrant table as most of the time I would want

Re: [OpenSIPS-Users] uac_auth and uac_registrant

2017-12-18 Thread Alexey K . via Users
Thank you Ovidiu. Yes, everything works! > >Hello Alexey, > >The functionality of uac_auth module is required by uac_registrant in order to >perform authentications. >You don't need to configure uac_auth parameters for uac_registrant to work. > >Regards, >Ovidiu Sas >

Re: [OpenSIPS-Users] uac_auth and uac_registrant

2017-12-18 Thread Ovidiu Sas
Hello Alexey, The functionality of uac_auth module is required by uac_registrant in order to perform authentications. You don't need to configure uac_auth parameters for uac_registrant to work. Regards, Ovidiu Sas On Dec 18, 2017 07:49, "Alexey K. via Users" wrote: > So, I just loaded uac_auth

[OpenSIPS-Users] uac_auth and uac_registrant

2017-12-18 Thread Alexey K . via Users
So, I just loaded uac_auth.so as a dependency of uac_registrant.so, and added SIP login/pass/etc via 'opensipsctl registrar add ...' and the registration is successful. But I steel not sure what should we configure in uac_auth parameters... Though, I achieved what I wanted. ---

[OpenSIPS-Users] uac_auth and uac_registrant

2017-12-17 Thread Alexey K . via Users
Hello all. I can not understand where should I configure sip logins, passwords, etc  for outgoing SIP registrations. The documentation says that we must use uac_registrant module,  and load uac_auth before it. Both modules support configuring credentials used for SIP registration, uac_registra

Re: [OpenSIPS-Users] uac_auth beahviour !!!!

2017-02-17 Thread Bogdan-Andrei Iancu
0)504 697600 Mob. +46 (0)708 267 213 stefan.carls...@vaxeltjanst.se <mailto:stefan.carls...@vaxeltjanst.se> www.vaxeltjanst.se <http://www.vaxeltjanst.se/> *From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org] *Sent:* den 17 februari 2017 09:56 *To:* users@lists.opensips.org; Stefan

Re: [OpenSIPS-Users] uac_auth beahviour !!!!

2017-02-17 Thread Bogdan-Andrei Iancu
Hi Stefan, Please post your exact content of the failure route and all the parameters you set for uac_auth module ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 02/16/2017 12:07 PM, Stefan Carlsson wrote: Hi ! I can’t get the proxy auth.

[OpenSIPS-Users] uac_auth beahviour !!!!

2017-02-16 Thread Stefan Carlsson
Hi ! I can't get the proxy auth. work to our sip trunk provider. See attached log snap. Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]: DBG:uac:uac_auth: picked reply is 0x7f64a2fd37c0, code 407 Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]: DBG:core:parse_authenticate_body: ="sip-co

[OpenSIPS-Users] uac_auth issue

2014-11-17 Thread Satish Patel
I am using opensips 1.12.x version from git, I have multiple gateways and everything works great with uac_auth() but recently when i add new SIP gateway which is asterisk based. I am getting 403 Auth error (even my password is correct) Opensips >INVITE>Asterisk Opensips <-- 401 Unauthor

Re: [OpenSIPS-Users] UAC_Auth with multiple gateway

2014-09-12 Thread Bogdan-Andrei Iancu
If you look into the module documentation, things are not so complicate and with a bit of an effort from your side, you can put things together . At the end is about using do_routing() function from DR module (reading about its param will reveal how to use the attrs). Regards, Bogdan-Andrei I

Re: [OpenSIPS-Users] UAC_Auth with multiple gateway

2014-09-11 Thread Satish Patel
Appreciate your answer but can you please provide sample code or kind of script example... I don't know how to fetch attributes values etc.. Sent from my iPhone On Sep 11, 2014, at 1:20 PM, Bogdan-Andrei Iancu wrote: > Hi, > > Keep the CLI and AUTH info per GW in the attrs field (in dr_gatew

Re: [OpenSIPS-Users] UAC_Auth with multiple gateway

2014-09-11 Thread Bogdan-Andrei Iancu
Hi, Keep the CLI and AUTH info per GW in the attrs field (in dr_gateways) - when that GW is used, attrs will become available so you can use them. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 11.09.2014 18:28, Satish Patel wrote: Currently

[OpenSIPS-Users] UAC_Auth with multiple gateway

2014-09-11 Thread Satish Patel
Currently i have UAC_AUTH working with single gateway and configuration look like following, How do i configure multiple gateway trunk account? what would be the best way to make it happen, also i am worried about "uac_replace_from" address, in multiple gateway account won't be same so i how i map

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-31 Thread Igor Olhovskiy
No, no errors with last code. Just show solution to other user-list readers. 30.07.14 16:23, Bogdan-Andrei Iancu написав(ла): > Do you still get that error ? and issues with this code ? > > Regards, > Bogdan-Andrei Iancu > OpenSIPS Founder and Developer > http://www.opensips-solutions.com > On 30.

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-31 Thread Igor Olhovskiy
Made it in a more accurate way: if ($(hdr(Proxy-Authenticate))) { $var(raw_auth) = $(hdr(Proxy-Authenticate)); } if ($(hdr(WWW-Authenticate))) { $var(raw_auth) =

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-31 Thread Игорь Ольховский
Hi, Many thanks on your answer, will wait for a new feature and look at $hdr var more close. Anyway, I have a little trouble with CSeq change (means it is need to do accurate), but for now it’s a solution. Many thanks again. 28 июля 2014, в 20:46, Bogdan-Andrei Iancu написал(а): > Hi, > > 1)

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-31 Thread Igor Olhovskiy
Hi again. Seems to be, $hdr(Proxy-Authenticate) is NULL at 401 response. failure_route[1] { ... if ( t_check_status("40[17]") ) { ... xlog("L_INFO", "Asterisk flavour $hdr(WWW-Authenticate), Proxy flavour $hdr(Proxy-Authenticate)"); } } becomes /usr/sbin/opensips[18983]: Ast

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-31 Thread Igor Olhovskiy
Code to get realm from failure_route is now looks like $var(hdr) = $(hdr(Proxy-Authenticate)); if ( $var(hdr) != NULL ) { $var(raw_auth) = $var(hdr); xlog("L_INFO", "Proxy-Auth is presen

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-30 Thread Bogdan-Andrei Iancu
Oh... OK and thank you :) Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 30.07.2014 16:31, Igor Olhovskiy wrote: No, no errors with last code. Just show solution to other user-list readers. 30.07.14 16:23, Bogdan-Andrei Iancu написав(ла): Do you still

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-30 Thread Bogdan-Andrei Iancu
Do you still get that error ? and issues with this code ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 30.07.2014 15:39, Igor Olhovskiy wrote: Made it in a more accurate way: if ($(hdr(Proxy-Authenticate))) {

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-29 Thread Bogdan-Andrei Iancu
Hi, If you try it from a failure route, you need to do : $(hdr(Proxy-Authenticate)) (see http://www.opensips.org/Documentation/Script-CoreVar-1-11) In failure route, the context is of the request message, so if you want to access the reply, you need to switch to its context. Regards, Bo

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-28 Thread Bogdan-Andrei Iancu
Hi, 1) on changing cseq as a simple text - this is not wise as you break the sequence of cseq number in the dialog; we are working on a feature to allow you do that in sip-wise way. 2) about realm, the proxy/www -Authenticate header (in the 401/407 reply) has the realm parameter; you can gra

[OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-24 Thread Igor Olhovskiy
Hi! I'm trying to get OpenSIPS 1.11 act as registrar proxy. Means it's not only register on external servers, but take care of INVITE's and so. I've configured modules as: loadmodule "uac_auth.so" loadmodule "uac.so" loadmodule "uac_registrant.so" modparam("uac","restore_mode","auto") modparam("ua

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-24 Thread Igor Olhovskiy
Found this tread, but seems to be no luck in to work with INVITE on Asterisk. Is there any luck to get Asterisk auth (without touching Asterisk) https://www.mail-archive.com/users@lists.opensips.org/msg25236.html On 21.07.2014 16:14, Igor Olhovskiy wrote: > Hi! > I'm trying to get OpenSIPS 1.11 ac

Re: [OpenSIPS-Users] uac_auth to uac_registrant module

2014-07-24 Thread Igor Olkhovskii
Made it work via modification of CSeq (remove_hf -> append_hf) and now is a question, how to get correct realm from response. OpenSIPs is very limitated to text processing 21.07.2014 18:39, Igor Olhovskiy пишет: Found this tread, but seems to be no luck in to work with INVITE on Asterisk.

Re: [OpenSIPS-Users] uac_auth

2014-07-18 Thread Bogdan-Andrei Iancu
Hi, When using uac_auth(), you need to receive a challenge reply first and based on the received nonce the function will build the auth header. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.07.2014 07:47, pa...@eremina.net wrote: Hi, all

[OpenSIPS-Users] uac_auth

2014-07-17 Thread pa...@eremina.net
Hi, all! I using Opensips 1.7 and i can't understood how to send initial INVITE with Authenticate header? Is it real? or if i don't know nonce phrase(from 407 answer) i can't create valid AUTHETICATE header? ___ Users mailing list Users@lists.opensips.o

Re: [OpenSIPS-Users] uac_auth() segfault

2014-04-08 Thread Bogdan-Andrei Iancu
OK, perfect ! Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 08.04.2014 19:23, Alexander Mustafin wrote: Hi, Bogdan. I’d updated from yum-daily and now all works fine. Thanks! Best regards, Alexander Mustafin mustafin.aleksa...@gmail.com

Re: [OpenSIPS-Users] uac_auth() segfault

2014-04-06 Thread Bogdan-Andrei Iancu
Hi, Looks like it's the same crash - are you sure you updated your code from GIT ? This was the fix on GIT for 1.10 version: https://github.com/OpenSIPS/opensips/commit/932e7d5ccd7e5499c68634c05b6ea24d55d66225 Please check if your copy has the fixed code. Regards, Bogdan-Andrei Iancu OpenSI

Re: [OpenSIPS-Users] uac_auth() segfault

2014-04-04 Thread Bogdan-Andrei Iancu
Maybe, maybe not... Follow http://www.opensips.org/Documentation/TroubleShooting-Crash and post the backtrace for your crash. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 04.04.2014 14:19, Alexander Mustafin wrote: Hello! I can’t find co

Re: [OpenSIPS-Users] uac_auth() segfault

2014-04-04 Thread Alexander Mustafin
Hello! I can’t find commit in git for this problem. Maybe, my problem related: opensips[4065]: segfault at 0 ip (null) sp 7fff64ade248 error 14 in opensips[40+14c000] Best regards, Alexander Mustafin mustafin.aleksa...@gmail.com 27 марта 2014 г., в 2:08, Justin Zondagh написал(а

Re: [OpenSIPS-Users] uac_auth

2013-11-27 Thread Rik Broers
6 november 2013 11:54 To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] uac_auth Tried this, and it does change the behaviour! But no fix. With pedantic on yes I simply do not get any replies after my second invite(first with auth) Opensips        asterisk

Re: [OpenSIPS-Users] uac_auth

2013-11-06 Thread Flavio Goncalves
; *Rik Broers* > > *Voice Engineer* > > > > > > *From:* Bogdan-Andrei Iancu [mailto:bog...@opensips.org] > *Sent:* maandag 4 november 2013 12:26 > > *To:* Rik Broers > *Cc:* OpenSIPS users mailling list > *Subject:* Re: [OpenSIPS-Users] uac_auth > > > > Hi

Re: [OpenSIPS-Users] uac_auth

2013-11-05 Thread Rik Broers
mailto:bog...@opensips.org] Sent: maandag 4 november 2013 12:26 To: Rik Broers Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] uac_auth Hi Rik, The truth is in the middle. The second invite from opensips (the one with credentials) must not be considered a retransmission - it has

Re: [OpenSIPS-Users] uac_auth

2013-11-04 Thread Bogdan-Andrei Iancu
eer     From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: vrijdag 1 november 2013 12:34 To: Rik Broers Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] uac_a

Re: [OpenSIPS-Users] uac_auth

2013-11-04 Thread Rik Broers
ours 12481) Ignoring this INVITE request Met vriendelijke groet, Rik Broers Voice Engineer From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: vrijdag 1 november 2013 12:34 To: Rik Broers Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] uac_auth Hello Rik, It may be s

Re: [OpenSIPS-Users] uac_auth

2013-11-01 Thread Bogdan-Andrei Iancu
Broers Subject: Re: [OpenSIPS-Users] uac_auth   Hello Rik, So OpenSIPS generates a new INVITE with credentials (as a result of the uac_auth() ), but this is also rejected ? Regards

Re: [OpenSIPS-Users] uac_auth

2013-11-01 Thread Rik Broers
branches is reached. Met vriendelijke groet, Regards, Rik Broers Voice Engineer From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: vrijdag 1 november 2013 11:49 To: OpenSIPS users mailling list Cc: Rik Broers Subject: Re: [OpenSIPS-Users] uac_auth Hello Rik, So OpenSIPS generates a new

Re: [OpenSIPS-Users] uac_auth

2013-11-01 Thread Bogdan-Andrei Iancu
Hello Rik, So OpenSIPS generates a new INVITE with credentials (as a result of the uac_auth() ), but this is also rejected ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 10/31/2013 11:4

[OpenSIPS-Users] uac_auth

2013-10-31 Thread Rik Broers
Hi, I'm trying to use the uac_auth() function to add Authorization to my invite after I received a 401 Unauthorized. I call the function in the failure route and according to Debug the authorization header is inserted. I also see this in a trace. Unfortunately I haven't been able to authorize su