Re: [OpenSIPS-Users] variables not working as expected

2024-03-23 Thread Stefan Carlsson

Tip,

If you want to use vars in the dialog, use $dlg_var()

Those are valid from create_dlg()  to the last BYE
but dont forget to use loose_route() or match_dialog()
before refering to them again...

(Note: They are vslud  in all the in-dialog messages such as re-invite )

Tip 2 ... Buy the book

https://www.oreilly.com/library/view/building-telephony-systems/9781785280610/

Excellent

 Regards_
Stefan



From: Prathibha B 
Sent: Saturday, 23 March 2024 12:26
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] variables not working as expected

unable to access the script variable in the route block

On Sat, 23 Mar 2024 at 15:39, Prathibha B 
mailto:prathibhab@gmail.com>> wrote:
 if ( !create_dialog("B") ) {
send_reply(500,"Internal Server Error");
exit;
}
else
dlg_on_answer("dlg_answered");


route[dlg_answered] {
$var(payload) = "{'type':'ANSWERED', 'from':" + $fU +", 'to':" + $tU+ 
"}";
}
Result:
{'type':'ANSWERED', 'from':from, 'to':to}

$fU - from URI
$tU - to URI

--
Regards,
B.Prathibha


--
Regards,
B.Prathibha
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Problems with new installation of 3.4

2024-03-15 Thread Stefan Carlsson
Hi !

After followed the installation of 3.4 LTS to a fresh ubuntu ver 22 a found 
some serious problems ...

installing is done via apt.

1) Not all the modules were included in the rep. as it should ref. to spec. 
vers.  manual

2) After downloading the source , trying to compile the modules missing...  
dependencies needed and info is missing in the main doc. or moduledoc.

For example:

make: *** No rule to make target '../../lib/digest_auth/libdigest_auth.a', 
needed by 'uac_auth.so'.  Stop.

trying to make all from opensips src. root folder ...

Compiling main.c
In file included from main.c:152:
ssl_tweaks.h:2:10: fatal error: openssl/opensslv.h: No such file or directory


Any ideas ...


Mvh // Regards ...
_____
Stefan Carlsson

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] SDP

2024-03-14 Thread Stefan Carlsson
Hi !

You can use the module sipmsgops to view and change some of the ADP fields such 
as codecs and streams … but unfortunately you don’t have
complete control of the SDP compared to what it seems could be done on the 
Kamailio SIP router

I need to change the a=sendrecv field and it seems to be impossible  ☹

Regards …
_
Stefan Carlsson

From: Users  On Behalf Of Prathibha B
Sent: Thursday, 14 March, 2024 05:16
To: OpenSIPS users mailling list 
Subject: [OpenSIPS-Users] SDP

How to see the SDP in opensips?

--
Regards,
B.Prathibha
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] How to change the a=sendrecv in SDP

2024-03-13 Thread Stefan Carlsson
Hi (again ...)

I've found out how to strip out the o= to separate values ...  but now I want 
to change the a=sendrecv to a=sendonly

The cause is  that our pbx's don't conform to either RFC2543 hold type: null 
connection IP detected,  nor RFC3264 hold type: inactive or sendonly attributes 
detected
but use the RFC5359 re-invite indicating call hold via session version 
incremented by  1.

So now I've trying to make a workaround with the help of OpenSips ..

Can you please help me with that ...

// Regards ...

Stefan Carlsson

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Regex help.

2024-03-12 Thread Stefan Carlsson
Hi !

What is the easiest form to transform this:

o=SYS   17102622551710262255INIP4 123.123.123.123

Into

SYS;1710262255;1710262255;IN;IP4;123.123.123.123

for later retrieval via an index function.

[0] = SYS
[1] = 1710262255
[2] = 1710262255
[3] = IN

etc 



I need to get my hands on the session parameters ...


Thanks in advance ...


//S
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Reset session timers via re-invite // update

2024-03-04 Thread Stefan Carlsson
Hi !

We have a problem regarding session timers.One operator runs it via 
re-invite and the new one via update.

All our PBX's "inside" and UA's runs re-invite and we have the Opensips as a 
proxy that routes all the traffic to the right UA, Trunks.

So my question is,   is it even possibly to handle both types of session timers 
methods in Opensips if endpoints only handles re-invite

I've tested to send the update with all headers intact back to the operator but 
then I receive 481 unknown dialog.

I've tried to read the RFC 3311 but I can't find any examples that is so clear 
as re-invite ...  (tags)

Do I need to change/add some headervalues such as the did i've got in the 200 
message after the invite to build  up
the complete Update response to the operator.

Please bear with me regarding with my "stupid" questions ...  understanding sip 
is really hard ..

// Regards ...

Stefan


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips ver 2.2.6 and tcp problem

2023-01-13 Thread Stefan Carlsson
Hi folks !

I have a problem to enable tcp:5060

Did:

loadmodule "proto_tcp.so"
loadmodule "proto_udp.so"

listen=udp:172.24.8.2:5060# Tele2 SIP
listen=tcp:172.24.8.2:5060# Tele2 SIP


The opensips only starts when listen=tcp ...   is disabled.

Nothing is shown in the opensips.log 


Any ideas ...


Regards ...

Stefan

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] mysql_db installation fails ...

2022-03-23 Thread Stefan Carlsson
Found the "problem"

Forgot the -module in modulename ...

Problem solved...

From: Users  On Behalf Of Stefan Carlsson
Sent: Wednesday, 23 March, 2022 20:00
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] mysql_db installation fails ...

Hi !

A fresh install of opensips 3.2.5 (x86_64/linux) , now I try to install 
mysql_db module, but fails.

Tried to install via yum,  got this 

yum install opensips-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftpmirror.infania.net
* centos-sclo-rh: ftpmirror.infania.net
* centos-sclo-sclo: ftpmirror.infania.net
* epel: mirrors.glesys.net
* extras: ftpmirror.infania.net
* remi-php74: mirror.netsite.dk
* remi-safe: mirror.netsite.dk
* updates: ftpmirror.infania.net
Resolving Dependencies
--> Running transaction check
---> Package opensips-mysql.x86_64 0:1.10.5-4.el7 will be installed
--> Processing Dependency: opensips(x86-64) = 1.10.5-4.el7 for package: 
opensips-mysql-1.10.5-4.el7.x86_64
--> Finished Dependency Resolution
Error: Package: opensips-mysql-1.10.5-4.el7.x86_64 (epel)
   Requires: opensips(x86-64) = 1.10.5-4.el7
   Installed: opensips-3.2.5-1.el7.x86_64 (@opensips)
   opensips(x86-64) = 3.2.5-1.el7
   Available: opensips-1.10.5-4.el7.x86_64 (epel)
   opensips(x86-64) = 1.10.5-4.el7
   Available: opensips-3.2.0-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.0-1.el7
   Available: opensips-3.2.2-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.2-1.el7
   Available: opensips-3.2.3-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.3-1.el7
   Available: opensips-3.2.4-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.4-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Any ideas 


Regards / Mvh  Stefan





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips 3 module names...

2022-03-23 Thread Stefan Carlsson
Hi 

Where can I find the modules names so I can install the via yum.

Is it in the form:   opensips-[modulename]-module

Need the proto modules 

It seems to be changed a bit after rel.2

Kind Regards

Stefan
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] mysql_db installation fails ...

2022-03-23 Thread Stefan Carlsson
Hi !

A fresh install of opensips 3.2.5 (x86_64/linux) , now I try to install 
mysql_db module, but fails.

Tried to install via yum,  got this 

yum install opensips-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftpmirror.infania.net
* centos-sclo-rh: ftpmirror.infania.net
* centos-sclo-sclo: ftpmirror.infania.net
* epel: mirrors.glesys.net
* extras: ftpmirror.infania.net
* remi-php74: mirror.netsite.dk
* remi-safe: mirror.netsite.dk
* updates: ftpmirror.infania.net
Resolving Dependencies
--> Running transaction check
---> Package opensips-mysql.x86_64 0:1.10.5-4.el7 will be installed
--> Processing Dependency: opensips(x86-64) = 1.10.5-4.el7 for package: 
opensips-mysql-1.10.5-4.el7.x86_64
--> Finished Dependency Resolution
Error: Package: opensips-mysql-1.10.5-4.el7.x86_64 (epel)
   Requires: opensips(x86-64) = 1.10.5-4.el7
   Installed: opensips-3.2.5-1.el7.x86_64 (@opensips)
   opensips(x86-64) = 3.2.5-1.el7
   Available: opensips-1.10.5-4.el7.x86_64 (epel)
   opensips(x86-64) = 1.10.5-4.el7
   Available: opensips-3.2.0-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.0-1.el7
   Available: opensips-3.2.2-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.2-1.el7
   Available: opensips-3.2.3-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.3-1.el7
   Available: opensips-3.2.4-1.el7.x86_64 (opensips)
   opensips(x86-64) = 3.2.4-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Any ideas 


Regards / Mvh  Stefan





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] multi ip address with diffrent reply options

2021-06-11 Thread Stefan Carlsson
Ok... we do that... I"ll come back with my quick and dirty solution .. but 
after the weekend...

ok ?

Kind Regards / Mvh

Stefan
___

Stefan Carlsson
Tel dir +46 (0) 504 697601
Tel +46 (0) 504 697600
www.vaxeltjanst.se


From: gataka 
Sent: Friday, 11 June 2021 15:41
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] multi ip address with diffrent reply options

Hey stefan
Sending from different interface working as mention, the send is the problem


?? ??? ??, 11 ? 2021, 15:05, ??? Stefan Carlsson 
?mailto:stefan.carls...@vaxeltjanst.se>>:
Hi, I persume that you have a couple of host IP you want to use a "sender"...

Kind Regards / Mvh

Stefan
___

Stefan Carlsson
Tel dir +46 (0) 504 697601
Tel +46 (0) 504 697600
www.vaxeltjanst.se


From: gataka mailto:gat...@gmail.com>>
Sent: Friday, 11 June 2021 13:03
To: john.qu...@smartvox.co.uk<mailto:john.qu...@smartvox.co.uk>; OpenSIPS users 
mailling list
Subject: Re: [OpenSIPS-Users] multi ip address with diffrent reply options

Hey John
Thanks, that work ,but i want the From to be dynamic from my side to the 
remote...
Thanks

?? ??? ??, 8 ? 2021, 15:37, ??? John Quick 
?mailto:john.qu...@smartvox.co.uk>>:
Gataka,

Regards sending OPTIONS pings, the modparam setting only changes the From
header.
If you want to actually send from a different interface, then try putting a
value in the 'socket' field of the dispatcher table.

John Quick
Smartvox Limited


___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] multi ip address with diffrent reply options

2021-06-11 Thread Stefan Carlsson
Hi, I persume that you have a couple of host IP you want to use a "sender"...

Kind Regards / Mvh

Stefan
_______

Stefan Carlsson
Tel dir +46 (0) 504 697601
Tel +46 (0) 504 697600
www.vaxeltjanst.se


From: gataka 
Sent: Friday, 11 June 2021 13:03
To: john.qu...@smartvox.co.uk; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] multi ip address with diffrent reply options

Hey John
Thanks, that work ,but i want the From to be dynamic from my side to the 
remote...
Thanks

?? ??? ??, 8 ? 2021, 15:37, ??? John Quick 
?mailto:john.qu...@smartvox.co.uk>>:
Gataka,

Regards sending OPTIONS pings, the modparam setting only changes the From
header.
If you want to actually send from a different interface, then try putting a
value in the 'socket' field of the dispatcher table.

John Quick
Smartvox Limited


___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] SDP and ptime, maxptime removal

2018-10-30 Thread Stefan Carlsson
Ok !

Thanks ...

But I have three of them after :"codec_delete_except_re("PCMA") ;   ",  
see below snap.



t=0 0
m=audio 46056 RTP/AVP 8
a=sendrecv
a=rtpmap:8 PCMA/8000
a=ptime:20
a=maxptime:30
a=ptime:20
a=maxptime:40
a=ptime:30
a=maxptime:30



Btw, thanks for your help and reply.


Kind Regards / Vänligen …

Stefan Carlsson

-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan 
Crainea
Sent: Monday, October 29, 2018 16:35
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] SDP and ptime, maxptime removal

Hi, Stefan!

There is no bug here - ptime and maxptime are not associated to a codec, but to 
the entire media session. So it should not be removed if you delete a certain.

Best regards,
Razvan

On 10/26/18 3:00 PM, Stefan Carlsson wrote:
> Hi !
> We have a serious issue that force us to remove all codecs except 
> PCMA.   We use: codec_delete_except_re("PCMA");  from the 
> sipmsgops module but the function doesn’t removes the associated 
> ptime, maxptime.   How can we also remove this, any ideas or is it a 
> bug in the sipmsgops  module?
> We use version  2.2.6   on a Centos machine.
> Kind Regards
> Stefan
> 
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

--
Răzvan Crainea
OpenSIPS Core Developer
   http://www.opensips-solutions.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] SDP and ptime, maxptime removal

2018-10-26 Thread Stefan Carlsson
Hi !

We have a serious issue that force us to remove all codecs except PCMA.   We 
use: codec_delete_except_re("PCMA");  from the sipmsgops module
but the function doesn't removes the associated ptime, maxptime.   How can we 
also remove this, any ideas or is it a bug in the sipmsgops  module?

We use version  2.2.6   on a Centos machine.


Kind Regards

Stefan



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Strange behavior in BYE transaction

2018-01-26 Thread Stefan Carlsson
Hi !

(using Opensips 2.2.6)

We have (suddenly) got some issues in the BYE transaction.

The Call-ID, ftags, is consistent from previous dialogs and are received in the 
BYE request from the operator except the Cseq as we got a new one in the BYE.

(But the branch tag looks as this:  
branch=z9hG4bK-524287-1---c2beba62517a3e4eminsusi)

Do we have a problem with hyphens in the branch tag ?


How does the Opensips tm create and keep the BYE transaction is the branch tag 
or  ?

***

The attached codesnap show the relay of the BYE handling.

***


 if(t_check_trans() ) {

 xlog("We have an transaction");
unforce_rtp_proxy();
 t_relay();
 }
 else
 {
   xlog("We DONT have an transaction");
   sl_reply_error(); Here we got:SIP/2.0 500 
Server error occurred (1/SL)
 }




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-12 Thread Stefan Carlsson
No nameserver (eg. bind) installed.

The file resolv.conf is there but with no entries.  So  I've hardcoded the 
ip/names in the hosts file.
But as I wrote,  the strange thing is that the system got the fact that no dns 
was found,  but OpenSIPS still nows the "bad addresses" from somewhere.  
(earlier DNS queries)
A restart of the OpenSIP's solved the problem, and this is very odd !!!

Thanks for setting your time on this matter ...

// Stefan

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 12 maj 2017 00:42
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Also you can try removing "dns" from your nsswitch.conf file or hard coding the 
bad server name in the hosts file (remember to use ipv4 and ipv6 if needed).

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: Thursday, May 11, 2017 6:39 PM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Is there a name server running on your box?


man7.org/linux/man-pages/man5/resolv.conf.5.html says "If this file does not 
exist, only the name server on the local machine will be queried
"

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Thursday, May 11, 2017 4:50 AM
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

Thanks for your reply.

I did the following.


1)  I've checked my nsswitch.conf file and it says 'files  dns' as in 
default , so no change there.

2)  I "disabled the resolver" but simply commented out the dns servers in 
resolv.conf, checked the resolver by a simple ping to 
www.google.com<http://www.google.com>, got the response: 'unknown host' as it 
should.

3)  Then I've put our SIP operators ip-name pairs in the hosts file, EXCEPT 
the one that causes us problem , checked with ping , got hits on all of them, 
and the one that where the problem responded with 'unknown host',

so the system looks up the hosts file correctly.

4)  But STILL Opensips uses the faulty one , the IP is not in the hosts 
file, no dns servers is in the resolv.conf.

5)  Restarts the Opensips, now it works as expected.

Can anyone out there give me an explanation that causes this behavior ?


Again, thank you for your attend at this matter.


Kind Regards / Vänligen ...

Stefan Carlsson


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 10 maj 2017 15:13
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org<mailto:Users@lists.opensips.org>
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.





This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do no

Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-11 Thread Stefan Carlsson
Hi !

Thanks for your reply.

I did the following.


1)  I've checked my nsswitch.conf file and it says 'files  dns' as in 
default , so no change there.

2)  I "disabled the resolver" but simply commented out the dns servers in 
resolv.conf, checked the resolver by a simple ping to 
www.google.com<http://www.google.com>, got the response: 'unknown host' as it 
should.

3)  Then I've put our SIP operators ip-name pairs in the hosts file, EXCEPT 
the one that causes us problem , checked with ping , got hits on all of them, 
and the one that where the problem responded with 'unknown host',

so the system looks up the hosts file correctly.

4)  But STILL Opensips uses the faulty one , the IP is not in the hosts 
file, no dns servers is in the resolv.conf.

5)  Restarts the Opensips, now it works as expected.

Can anyone out there give me an explanation that causes this behavior ?


Again, thank you for your attend at this matter.


Kind Regards / Vänligen ...

Stefan Carlsson


From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Mundkowsky, 
Robert
Sent: den 10 maj 2017 15:13
To: OpenSIPS users mailling list 
Subject: Re: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

What do you mean you "disabled the resolver"?

I haven't play with this in a long time, but I think the /etc/nsswitch.conf 
file defines if you use /etc/hosts file or/and DNS for looking up host names, 
and might allow nis+ as well, but I can't remember.

So might want to check if you happen to have your hostname defined in the hosts 
file.  Also seems people note that /etc/resolv.conf might be overwrite at boot 
based on using NetworkManager.  So maybe your settings are being over written.

Robert

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Stefan 
Carlsson
Sent: Tuesday, May 9, 2017 5:36 AM
To: Users@lists.opensips.org<mailto:Users@lists.opensips.org>
Subject: [OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson




This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom it is 
intended, even if addressed incorrectly. If you received this e-mail in error, 
please notify the sender; do not disclose, copy, distribute, or take any action 
in reliance on the contents of this information; and delete it from your 
system. Any other use of this e-mail is prohibited.


Thank you for your compliance.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] How can I prevent Opensips to cache DNS queries.

2017-05-09 Thread Stefan Carlsson
Hi !

It seems that the Opensip 2.2 caches DNS queries !!!

Even after I disabled the resolver in Centos, the OpenSIPs seems to "remember" 
old queries. (eg. IP's)
after a Opensip restart, the old stuff was gone.

If so, how can I disable the DNS caching in the Opensips, I want the system to 
always make a new , fresh
query.


Kind Regards / Vänligen ...

Stefan Carlsson

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Dialog handling in proxy authentication required method.

2017-02-27 Thread Stefan Carlsson
Hi !

I wonder how the dialog that started with a INVITE that has a respond of 407 is 
ended.

A "Normal" dialog ends with cancel/bye or via a timer but the initial INVITE I 
don't have a clue.

Anyone that knows this ...

Kind Regards

Stefan Carlsson


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[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-corp1.se" state=2
Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]: 
DBG:core:parse_authenticate_body: 
="WKV4Glildu6ed43MaV2CRk15poD2iuekTGl3NoA=" state=3
Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]: DBG:uac:uac_auth: no 
credential for realm "sip-corp1.se"
Feb 16 10:54:54 siprouter /usr/sbin/opensips[2336]: 
DBG:tm:update_cloned_msg_from_msg: new_uri must be copied old=39, new=39


What does the "no credential for realm"  mean if the realm string stored in is 
exactly the same.

And what does the modparam have for meaning:

modparam("uac_auth","credential","username:domain:password")

if I did the below:

modparam("uac_auth","auth_realm_avp","$avp(realm)")
modparam("uac_auth","auth_username_avp","$avp(uname)")
modparam("uac_auth","auth_password_avp","$avp(passw)")


code snap .

in my error reply route:


$avp(realm) = "sip-corp1.se";
$avp(username) = "secret";
$avp(passw) = "J3bX_SUTg";


 uac_auth();

 t_relay();





Kind Regards / Vänligen ...

Stefan Carlsson

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users