Re: [OpenSIPS-Users] Wrong Contact in location table

2017-10-26 Thread Răzvan Crainea

Hi, Dragomir!

Again, I really doubt fix_nated_register() is executed , since I am not 
seeing the Received: part in the "ul show" output.
Can you post the output of the script_trace() function for that REGISTER 
message? You can find here[1] a tutorial on how to use this function.


[1] https://blog.opensips.org/2017/09/20/troubleshooting-opensips-script/

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/24/2017 12:41 AM, Dragomir Haralambiev wrote:

Hi,

I made setup like this help:

https://blog.opensips.org/2016/12/13/how-to-proxy-sip-registrations/


fix_nated_register() is executed.

If you like I can send my full script in privet email.

Best regards,
Dragomir




2017-10-23 10:55 GMT+03:00 Răzvan Crainea >:


Hi, Dragomir!

Are you sure the code gets to that save() function? You are also
using fix_nated_register(), but I don't see any register field in
the location table either, so I presume you are not hitting that
code at all.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com 

On 10/21/2017 01:40 AM, Dragomir Haralambiev wrote:

Hello,


I have follow line in my script:
if (is_method("REGISTER")) {
fix_nated_register();
fix_nated_contact();

save("location","c1", "$fu");
}
Opensips receive REGISTER  with

"Contact: http://sip:516203@192.168.2.203:5060>>"


I try to see location table
opensipsctl  ul show

        AOR:: 516203
                Contact:: sip:516203@192.168.2.203:5060
 Q=
                        ContactID:: 926418920300655256
                        Expires:: 270
                        Callid:: 509678716@192.168.2.203

                        Cseq:: 2
                        User-agent:: Yealink SIP-T19P 31.72.0.75
                        State:: CS_SYNC
                        Flags:: 0
                        Cflags:: NAT_BFLAG
                        Socket:: udp:1.2.3.4:5566

                        Methods:: 16383

Why after save("location") Contact address in location table is
not fix?
How setup Opensips to write into location table fixed Contact?

Best regards,
Dragomir


___
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





___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Liviu Chircu

Hi,

Are you also doing "Save Changes" after specifying your new prefix 
inside menuconfig?


Pro Tip: you can double-check that menuconfig actually did what you 
wanted by looking at "Makefile.conf" afterwards


Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 01:55, Social Boh wrote:

Hello,

I don't know where is the problem but on OpenSIPs 2.2 if I select / 
the installation go to /sbin /lib64/opensips/modules... if i select 
/usr the installation go to /usr/sbin /usr/sbin /lib64/opensips/modules


In 2.3 appear like random. I select /usr and the installation go to 
/usr/local,


Any hint?

Regards




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


[OpenSIPS-Users] b2bua To header format

2017-10-26 Thread Edwin
I use the latest stable opensips 2.3 release. B2Bua generates a To header
without the <> symbols, is this RFC? Is it posible to let b2bua generate a
To header in a 'normal' format?

Before b2bua: To: 
After b2bua:   To: sip:+31123456789@1.2.3.4:5060

I expect / would prefer:
After b2bua:  To: 
Or:To: 





--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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


[OpenSIPS-Users] Dealing with duplicate packet's.

2017-10-26 Thread Kevin Stewart via Users

I am having some issues with intermittent packet duplication in the network.

what this looks like currently is
opensips gets 2 identical Invite packets.
opensips processes them returning 2 401's with 2 different nonce values.

opensips then gets 2 Authed Invite packets
processes the first one and invalidates the nonce.
another thread is simultaneously processing the other one and sees the invalid 
nonce and returns a 401.
the first thread forwards the valid invite and 100's to the A party and 
eventual returns a 180 but the A party ignores this because it got a terminal 
response (401) for that invite.


I was wondering is there a mechanism do identify duplicate CSeq numbers in a 
session so we can drop them in opensips?

Yes I am trying to get the source of the duplication identified but it is 
currently breaking authentication and call setup.

Kevin
Kevin Stewart | Senior VOIP Network Engineer
D: +64 9 919 6120E: kevin.stew...@vocusgroup.co.nz
M: +64 21 879 057W: vocusgroup.co.nz
A: Level 4, 191 Queen Street, Auckland 1010

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


Re: [OpenSIPS-Users] b2bua To header format

2017-10-26 Thread Răzvan Crainea

Hi, Edwin!

The generated URI is perfectly fine according to the RFC. Actually 
that's the 'normal' format.
The <> symbols are used in an 'enclosed' URI, and you should only 
enclose the URI if you want to specify some URI parameters. Since in 
this case you don't have any, you get a 'normal' URI.
I don't think there is any way you could generate the To header 
enclosed. Not sure how you are using B2B though, you might be able to 
add some custom headers in your XML script or so.


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/26/2017 11:08 AM, Edwin wrote:

I use the latest stable opensips 2.3 release. B2Bua generates a To header
without the <> symbols, is this RFC? Is it posible to let b2bua generate a
To header in a 'normal' format?

Before b2bua: To: 
After b2bua:   To: sip:+31123456789@1.2.3.4:5060

I expect / would prefer:
After b2bua:  To: 
Or:To: 





--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

___
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


Re: [OpenSIPS-Users] b2bua To header format

2017-10-26 Thread Edwin
Hi Răzvan,

Thanks, perfectly clear answer. So no nasty RFC discussions there.

I use the b2b_init_request("top hiding/a"); command and no SQL script, I
could test the p option (p - Preserve To: header.), but I rather have a
'clean' to header. So I leave it this way.



--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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


Re: [OpenSIPS-Users] b2bua To header format

2017-10-26 Thread Edwin
Sorry, SQL script must be 'XML script'



--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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


Re: [OpenSIPS-Users] Strange behavior on ipv4 / ipv6 dual stack server with/without mhomed

2017-10-26 Thread Răzvan Crainea

Hi, Daniel!

1) I think you are absolutely right - if you have issues with phones 
that misbehave when having IPv6 contact, topology_hiding is the 
solution. There are several ways to determine whether an endpoint is 
IPv6, so this should be easy to sort out.


2) Have you considered any methods to inform Asterisk that your callee 
is IPv6 or IPv4? Perhaps if you manage to figure out what the final 
destination is, you can control the IP that Asterisk adds in SDP, and 
prevent it from advertising IPv6.
Also, did you consider using a media proxy? Something like RTPProxy set 
in a bridging mode will solve your issue too.


Anyways, thanks for documenting your "adventure", I find it really 
interesting.


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/24/2017 10:58 PM, Daniel Lakeland wrote:

On 10/24/2017 01:41 AM, Răzvan Crainea wrote:

Hi, Daniel!

Sure, if you want to make a dual-stack tutorial for OpenSIPS, I'd be 
more than welcome to review it.

In the meantime, let us know if we can help you making it more robust.


Here are the current issues I'm considering:

1) How to deal with ipv4 only endpoints, ones that think that a 
destination uri like sip:foo@[2001:1a36:2021:...]:5060 means that the 
destination refers to user foo at host "[2001" on port 1 and yes this 
seems to happen.


The current strategy I have because my total endpoint count is small, 
is to list those endpoints by username in the script and detect when 
$ru has that username, and do topology hiding... this works pretty 
well I think, but it also requires SDP rewriting in case of IP type 
mismatch (fortunately, Asterisk seems to listen on ipv4 and ipv6 udp 
sockets). The general solution might be to first do a lookup, and then 
based on whether $ru is now an IPv4 address or not, decide whether to 
topology hide. My assumption is that ipv6 registered endpoints can 
handle both.


The issue is that when ipv6 is available, systems prefer it, and this 
makes sense. So, when Asterisk has to originate a call, it calls the 
proxy and the proxy is dual-stacked, so it calls via ipv6 and offers 
its own ipv6 as contact and SDP contents. Without topology hiding, the 
proxy passes this contact along to the ipv4 only ATA and the whole 
thing goes kablooie when the ATA can't figure out what Asterisk is 
talking about.


Also, these are ipv4 endpoints, and so they need some NAT help. The 
combination of topo hiding and NAT help can be an issue. But I think 
at the moment it's working, nevertheless, it's something I need to sit 
down with and read through the script and see what the right way to do 
it is, rather than the hackery I have in place.


When the call originates at one of these ipv4 only endpoints, it seems 
that Asterisk then creates replies that are ipv4 and so the problem 
doesn't occur.


2) Getting audio across ipv4/ipv6 transitions is tricky. I'm using 
Asterisk, though my ultimate goal is to switch to FreeSwitch as my 
impression is it might work better for me. At the moment, Asterisk 
works because I enable icesupport, and so it listens on ipv4 and ipv6. 
I don't enable ICE negotiation on my endpoints, I just have OpenSips 
rewrite the SDP to the appropriate one based on whether they're ipv4 
or not. I do this because ICE support is spotty and the ATAs can't do 
it, and the softphones don't need it. But it's possible that ICE 
offerings are not working with my outbound trunks sporadically 
(based on which carrier my outbound trunk chooses in their least cost 
routing). So, for outbound calls on the trunk, it's possible I need to 
remove ICE support... since it's not needed there as their endpoints 
are IPv4 only, this may be fine, but still it's a gotcha people should 
know about. It's not clear to me whether Asterisk is being nice and 
other media servers might refuse to simply accept input on any socket 
without a proper ICE negotiation. In my opinion, ICE is dead in the 
water as first off it's only needed in ipv4, but second there are too 
many ipv4 ATAs and things that don't support it, and finally it's a 
temporary hack that will go away some time late in 2019 when google's 
ipv6 adoption curve hits more than 50% 
https://www.google.com/intl/en/ipv6/statistics.html that's doubling 
every 15 months or something like that, so we'll probably see 40% ipv6 
hits by some time early 2019 and the majority of everything google 
does will be ipv6 sometime mid 2019 (note in the US we're already at 
about 33% ipv6 to google). At that point ipv4 will be a minority issue 
for consumers, and incentives to make major changes will switch sides.




___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Social Boh

Hello,

I think this is the problem. In OpenSIPs 2.2 the Makefile.conf contain:

PREFIX=/

In 2.3:

PREFIX ?= /

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 03:07, Liviu Chircu escribió:

Hi,

Are you also doing "Save Changes" after specifying your new prefix 
inside menuconfig?


Pro Tip: you can double-check that menuconfig actually did what you 
wanted by looking at "Makefile.conf" afterwards


Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 01:55, Social Boh wrote:

Hello,

I don't know where is the problem but on OpenSIPs 2.2 if I select / 
the installation go to /sbin /lib64/opensips/modules... if i select 
/usr the installation go to /usr/sbin /usr/sbin /lib64/opensips/modules


In 2.3 appear like random. I select /usr and the installation go to 
/usr/local,


Any hint?

Regards




___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Liviu Chircu

That's harmless, see https://github.com/OpenSIPS/opensips/commit/34dde7fe

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 12:35, Social Boh wrote:

Hello,

I think this is the problem. In OpenSIPs 2.2 the Makefile.conf contain:

PREFIX=/

In 2.3:

PREFIX ?= /

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 03:07, Liviu Chircu escribió:

Hi,

Are you also doing "Save Changes" after specifying your new prefix 
inside menuconfig?


Pro Tip: you can double-check that menuconfig actually did what you 
wanted by looking at "Makefile.conf" afterwards


Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 01:55, Social Boh wrote:

Hello,

I don't know where is the problem but on OpenSIPs 2.2 if I select / 
the installation go to /sbin /lib64/opensips/modules... if i select 
/usr the installation go to /usr/sbin /usr/sbin /lib64/opensips/modules


In 2.3 appear like random. I select /usr and the installation go to 
/usr/local,


Any hint?

Regards




___
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



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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

2017-10-26 Thread Bogdan-Andrei Iancu

Hi Robert,

Thank you for the feedback. Indeed, there are many particularities in 
regards to the network capabilities offered by the clouds - subnets, 
balancers, HA system and more. But most of them are specific to the 
cloud vendor, while I tried in the article to address the most common 
issues (in terms of usage scenario and in terms of cloud vendor).


And, as you also pointed, my goal is to focus on the items that do 
affect SIP and OpenSIPS - I do not intend to run a generic analyses of 
various clouds :D...that's out of the scope


Best regards,

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

On 10/25/2017 08:47 PM, Mundkowsky, Robert wrote:

Nice info. There might be some more complex AWS setups people might want to 
use, but I really do not know from a telephony architecture if they are viable 
or useful:

- AWS Nat gateway (basically a NAT for a subnet of AWS instances rather than 
1-to-1 NAT instances)
- Use of AWS ELB: AWS can assign multiple IPs to a AWS ELB per explicit request 
to AWS to allow for scaling the ELB (hence you might have multiple external IPs 
mapping to your private IP).
- I vaguely remember there are some settings for low latency subnet, maybe called 
"placement groups"
- I vaguely remember some AMIs are better for low latency (I think AWS makes 
some)
- Might want to use larger instances to reduce change of instance being shared 
or directly request dedicated instances or dedicated hosts


Robert Mundkowsky

-Original Message-
From: Devel [mailto:devel-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Wednesday, October 25, 2017 12:09 PM
To: users@lists.opensips.org; developensips ; 
n...@lists.opensips.org
Subject: [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

Cloud computing is a more and more viable option for running and providing SIP 
services. The question is how compatible are the SIP services with the Cloud 
environment ? So let’s have a look at this compatibility from the most 
sensitive (for SIP protocol) perspective – the IP network topology...

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.opensips.org%2F2017%2F10%2F25%2Frunning-opensips-in-the-cloud%2F&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=M3OoLvj%2FDMa3EObuSCJE%2Bc6dXKTu9uPF0z6o3emZ7iw%3D&reserved=0

Enjoy,

--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=vCNnjcu7looYZrRLLX7z%2Bx%2FMVp9YAYIa9WiUDnMlGTo%3D&reserved=0


___
Devel mailing list
de...@lists.opensips.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fdevel&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=ejreMLqLRE39GWjs6qrZP6krj9y4T0PFyYUkLa6nUc0%3D&reserved=0



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.


___
Devel mailing list
de...@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel



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


Re: [OpenSIPS-Users] Dealing with duplicate packet's.

2017-10-26 Thread Bogdan-Andrei Iancu

Hi Kevin,

If the SIP request are perfectly identical, they may be re-transmissions 
- what is the time between the packets ?


Regards,

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

On 10/20/2017 12:41 AM, Kevin Stewart via Users wrote:


I am having some issues with intermittent packet duplication in the 
network.


what this looks like currently is
opensips gets 2 identical Invite packets.
opensips processes them returning 2 401's with 2 different nonce values.

opensips then gets 2 Authed Invite packets
processes the first one and invalidates the nonce.
another thread is simultaneously processing the other one and sees the 
invalid nonce and returns a 401.
the first thread forwards the valid invite and 100's to the A party 
and eventual returns a 180 but the A party ignores this because it got 
a terminal response (401) for that invite.



I was wondering is there a mechanism do identify duplicate CSeq 
numbers in a session so we can drop them in opensips?


Yes I am trying to get the source of the duplication identified but it 
is currently breaking authentication and call setup.


Kevin

___
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


Re: [OpenSIPS-Users] Error: invalid sendtoparameters

2017-10-26 Thread Bogdan-Andrei Iancu

Hi,

do you have multiple interface ? do you use mhomed ? Maybe you are 
trying to route an un-routeable destination through the socket .


Regards,

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

On 10/21/2017 02:01 AM, Nabeel wrote:

Hi,

The listen part parameter is as follows:

listen=udp:162.XXX.X.206:5060


OpenSIPS version: 2.2

OS: CentOS 7


On 20 October 2017 at 08:50, Abdul Basit > wrote:


please share you opnesips.cfg especially the section you
configured listen parameter.

what's opensips version and OS you are using?

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 20 October 2017 at 09:22, Nabeel mailto:nabeelshik...@gmail.com>> wrote:

Hello,

Please help me understand this error below. Is it of concern?
The server is not bound to localhost, it is bound to public IPs.

Oct 20 05:10:12 server2 /usr/local/sbin/opensips[923]:
ERROR:core:proto_udp_send:
sendto(sock,0x7f1f89c2bcf0,4,0,0x7ffc5f146db0,16): Invalid
argument(22)
Oct 20 05:10:12 server2 /usr/local/sbin/opensips[923]:
CRITICAL:core:proto_udp_send: invalid
sendtoparameters#012one possible reason is the server is
bound to localhost and#012attempts to send to the net
Oct 20 05:10:12 server2 /usr/local/sbin/opensips[923]:
ERROR:nathelper:msg_send: send() for proto 1 failed
Oct 20 05:10:12 server2 /usr/local/sbin/opensips[923]:
ERROR:nathelper:nh_timer: sip msg_send failed!



___
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





___
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] LCR based on ACD or Gatework QoS?

2017-10-26 Thread Abdoul Osséni
Hello all,

I am new in OpenSIPS.

I am looking for a LCR based on ACD or Gatework QoS?

Can we do it with OpenSIPS?

Thank you in advance for your feedback.

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


Re: [OpenSIPS-Users] opensips stops forward requests after 3 times register failed

2017-10-26 Thread Bogdan-Andrei Iancu

Hi Tali,

Do you see any errors/warning in the log when the 401 is handled ? If 
you say that the test is ok if you wait/eliminate the first set of 
tests, I would say that there is something wrong with the testing setup 
and you get some "interferences" between the 2 sets of tests (maybe at 
the TCP connection layer or at the SIP layer).


Regards,

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

On 10/23/2017 03:50 PM, Gillon, Tali via Users wrote:

Hi,
i have the following scenario:

We have in our tests client and server and between them we have the 
opensips server.
The client sends register request to opensips server and opensips 
server is supposed to forward it to our server.
Our server sends the answer to opensips server and opensips server 
forwards it to client back:


In the first test the client sends register and the registrar sends 
error back (the sip server is a mediator between them):


client -register---> opensips server 
register> Our server


client <---404opensips server 
<--404 Our server


The test repeats 3 times each time with a different error code : 404, 
405, 408


The second test is a simple test of register process:
client sends register to opensips, opensips forwards it to our server,
Our server returns 401 (asks for authentication) to opensips and 
opensips is *supposed*

to forward it to the client but it never happens.

I must say that if the first test runs only twice and not 3 times it 
won't happen and all the tests will pass.


Also, If I put sleep between the first test and the second test the 
test passes also.


could you check it?
I attached the pcap file.

Thanks,
Tali






___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Social Boh
Thank you Liviu, so why OpenSIPs not use this parameter for his 
Intallation..


Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 04:44, Liviu Chircu escribió:

That's harmless



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


Re: [OpenSIPS-Users] presence with b2bua

2017-10-26 Thread Bogdan-Andrei Iancu

Hi,

Yes, correct. A B2B for presence makes no sense actually.

Could you detail on what you try to achieve ?

Regards,

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

On 10/25/2017 08:25 PM, Aqs Younas wrote:

Greeting list,

I suspect b2bua feature is just for invite dialog, can it also be used 
for presence?


Best Regards,



___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Bogdan-Andrei Iancu

Hi,

Check the Makefile.conf file (after configuring the install path) and 
see what is the saved value for the "PREFIX" var (it should be at the 
end of the file)


Regards,

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

On 10/25/2017 11:59 PM, Social Boh wrote:

Hello,

I think there is a problem with OpenSIPs compilation on version 2.3

From

make menuconfig -> Conigure Compile Options -> Configure Install Prefix

If I select /usr o anythink else, always the instalation is done on 
/usr/local


any hint?

Regards




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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Liviu Chircu
So you are saying that if you set/see "PREFIX ?= /usr" in menuconfig, 
installation will still go to /usr/local?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 12:44, Liviu Chircu wrote:

PREFIX ?= /



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


Re: [OpenSIPS-Users] presence with b2bua

2017-10-26 Thread Aqs Younas
Thanks for reply.

Actually i am using opensips as a proxy to freeswitch and want to get rid
of Path header which mod_sms in freeswitch does not support.
So for registration i am able to make it work using mid_registrar but for
presence i am blocked.

Any better suggestion?

Best Regards.

On 26 October 2017 at 15:01, Bogdan-Andrei Iancu 
wrote:

> Hi,
>
> Yes, correct. A B2B for presence makes no sense actually.
>
> Could you detail on what you try to achieve ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> On 10/25/2017 08:25 PM, Aqs Younas wrote:
>
> Greeting list,
>
> I suspect b2bua feature is just for invite dialog, can it also be used for
> presence?
>
> Best Regards,
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] presence with b2bua

2017-10-26 Thread Aqs Younas
Sorry sent you personal email.

On 26 October 2017 at 15:06, Aqs Younas  wrote:

> Thanks for reply.
>
> Actually i am using opensips as a proxy to freeswitch and want to get rid
> of Path header which mod_sms in freeswitch does not support.
> So for registration i am able to make it work using mid_registrar but for
> presence i am blocked.
>
> Any better suggestion?
>
> Best Regards.
>
> On 26 October 2017 at 15:01, Bogdan-Andrei Iancu 
> wrote:
>
>> Hi,
>>
>> Yes, correct. A B2B for presence makes no sense actually.
>>
>> Could you detail on what you try to achieve ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>   OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>>
>> On 10/25/2017 08:25 PM, Aqs Younas wrote:
>>
>> Greeting list,
>>
>> I suspect b2bua feature is just for invite dialog, can it also be used
>> for presence?
>>
>> Best Regards,
>>
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://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] LCR based on ACD or Gatework QoS?

2017-10-26 Thread Bogdan-Andrei Iancu

Hi,

OpenSIPS does not directly implements are cost or quality related 
concepts when comes to routing. What OpenSIPS can do is to route (based 
on prefixes) to lists of GWs - see the drouting module. So, what you 
have to do is to be sure to properly arrange the GW list to reflect cost 
or quality.


Regards,

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

On 10/26/2017 12:59 PM, Abdoul Osséni wrote:

Hello all,

I am new in OpenSIPS.

I am looking for a LCR based on ACD or Gatework QoS?

Can we do it with OpenSIPS?

Thank you in advance for your feedback.

Regards
Abdoul OSSENI


___
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


Re: [OpenSIPS-Users] [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

2017-10-26 Thread Bogdan-Andrei Iancu

Hi Jim,

The horizontal scalability is a totally different topic (versus running 
in a cloud). The scalability, from the perspective of clustering, is the 
major field of work for OpenSIPS 2.4 - we will release the info 
sometimes next week.


Regards,

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

On 10/25/2017 08:52 PM, Jim DeVito wrote:

Good info Bogdan / Robert.

I would also be interested to learn of anybody running OpenSIPS in a 
docker like container service to allows for horizontal automatic scaling.


Thanks!!

Jim D.

On Wed, Oct 25, 2017 at 1:47 PM, Mundkowsky, Robert 
mailto:rmundkow...@ets.org>> wrote:


Nice info. There might be some more complex AWS setups people
might want to use, but I really do not know from a telephony
architecture if they are viable or useful:

- AWS Nat gateway (basically a NAT for a subnet of AWS instances
rather than 1-to-1 NAT instances)
- Use of AWS ELB: AWS can assign multiple IPs to a AWS ELB per
explicit request to AWS to allow for scaling the ELB (hence you
might have multiple external IPs mapping to your private IP).
- I vaguely remember there are some settings for low latency
subnet, maybe called "placement groups"
- I vaguely remember some AMIs are better for low latency (I think
AWS makes some)
- Might want to use larger instances to reduce change of instance
being shared or directly request dedicated instances or dedicated
hosts


Robert Mundkowsky

-Original Message-
From: Devel [mailto:devel-boun...@lists.opensips.org
] On Behalf Of
Bogdan-Andrei Iancu
Sent: Wednesday, October 25, 2017 12:09 PM
To: users@lists.opensips.org ;
developensips mailto:de...@lists.opensips.org>>; n...@lists.opensips.org

Subject: [OpenSIPS-Devel] [Blog] Running OpenSIPS in the Cloud

Cloud computing is a more and more viable option for running and
providing SIP services. The question is how compatible are the SIP
services with the Cloud environment ? So let’s have a look at this
compatibility from the most sensitive (for SIP protocol)
perspective – the IP network topology...


https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.opensips.org%2F2017%2F10%2F25%2Frunning-opensips-in-the-cloud%2F&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=M3OoLvj%2FDMa3EObuSCJE%2Bc6dXKTu9uPF0z6o3emZ7iw%3D&reserved=0



Enjoy,

--
Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.opensips-solutions.com&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=vCNnjcu7looYZrRLLX7z%2Bx%2FMVp9YAYIa9WiUDnMlGTo%3D&reserved=0




___
Devel mailing list
de...@lists.opensips.org 

https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fdevel&data=02%7C01%7Crmundkowsky%40ets.org%7Ca66deb49abc54e8cdabd08d51bc2cfff%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636445445883234322&sdata=ejreMLqLRE39GWjs6qrZP6krj9y4T0PFyYUkLa6nUc0%3D&reserved=0





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.



Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Social Boh

hello,

I done a test configuring "/" how directory Installation, and the 
installation go to /usr


The last line on Makefile.conf is: PREFIX ?= /

Appear totally random

This only on OpenSIPs 2.3.2 version.

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 05:05, Liviu Chircu escribió:
So you are saying that if you set/see "PREFIX ?= /usr" in menuconfig, 
installation will still go to /usr/local?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 12:44, Liviu Chircu wrote:

PREFIX ?= /



___
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


Re: [OpenSIPS-Users] presence with b2bua

2017-10-26 Thread Bogdan-Andrei Iancu
If you do SIP proxy for the SUBSCRIBE  requests, there is no PATH hdr, 
but Record-Route !  IF you want to get rid of it, use the topology 
hiding module when proxying the SUBSCRIBE.


Regards,

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

On 10/26/2017 01:06 PM, Aqs Younas wrote:

Thanks for reply.

Actually i am using opensips as a proxy to freeswitch and want to get 
rid of Path header which mod_sms in freeswitch does not support.
So for registration i am able to make it work using mid_registrar but 
for presence i am blocked.


Any better suggestion?

Best Regards.

On 26 October 2017 at 15:01, Bogdan-Andrei Iancu > wrote:


Hi,

Yes, correct. A B2B for presence makes no sense actually.

Could you detail on what you try to achieve ?

Regards,

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

On 10/25/2017 08:25 PM, Aqs Younas wrote:

Greeting list,

I suspect b2bua feature is just for invite dialog, can it also be
used for presence?

Best Regards,



___
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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Răzvan Crainea

I have just tested this and seems to work all right.
What OS are you installing it into and are you sure are you cleaning up 
between different installs?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/26/2017 01:33 PM, Social Boh wrote:

hello,

I done a test configuring "/" how directory Installation, and the 
installation go to /usr


The last line on Makefile.conf is: PREFIX ?= /

Appear totally random

This only on OpenSIPs 2.3.2 version.

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 05:05, Liviu Chircu escribió:
So you are saying that if you set/see "PREFIX ?= /usr" in menuconfig, 
installation will still go to /usr/local?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 12:44, Liviu Chircu wrote:

PREFIX ?= /



___
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



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


Re: [OpenSIPS-Users] Directory instalation

2017-10-26 Thread Social Boh

Hello,

CentOS 7.X on two different VPS provider.

I test newly later and update this thread.

Thank you

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 06:43, Răzvan Crainea escribió:

I have just tested this and seems to work all right.
What OS are you installing it into and are you sure are you cleaning 
up between different installs?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 10/26/2017 01:33 PM, Social Boh wrote:

hello,

I done a test configuring "/" how directory Installation, and the 
installation go to /usr


The last line on Makefile.conf is: PREFIX ?= /

Appear totally random

This only on OpenSIPs 2.3.2 version.

Regards

---
I'm SoCIaL, MayBe

El 26/10/2017 a las 05:05, Liviu Chircu escribió:
So you are saying that if you set/see "PREFIX ?= /usr" in 
menuconfig, installation will still go to /usr/local?


Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 26.10.2017 12:44, Liviu Chircu wrote:

PREFIX ?= /



___
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



___
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


Re: [OpenSIPS-Users] LCR based on ACD or Gatework QoS?

2017-10-26 Thread Abdoul Osséni
Hi,

Thank you for your feedback.

Regards

Abdoul OSSENI


2017-10-26 12:09 GMT+02:00 Bogdan-Andrei Iancu :

> Hi,
>
> OpenSIPS does not directly implements are cost or quality related concepts
> when comes to routing. What OpenSIPS can do is to route (based on prefixes)
> to lists of GWs - see the drouting module. So, what you have to do is to be
> sure to properly arrange the GW list to reflect cost or quality.
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> On 10/26/2017 12:59 PM, Abdoul Osséni wrote:
>
> Hello all,
>
> I am new in OpenSIPS.
>
> I am looking for a LCR based on ACD or Gatework QoS?
>
> Can we do it with OpenSIPS?
>
> Thank you in advance for your feedback.
>
> Regards
> Abdoul OSSENI
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] Asterisk and options

2017-10-26 Thread Abdoul Osséni
Hello,

Is there a tutorial to implement OpenSIPS and Asterisk Realtime Integration
but using Asterisk Database?

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


[OpenSIPS-Users] nathelper and mid_register

2017-10-26 Thread Jim DeVito
Hi All,

So if I call fix_nated_contact(); before mid_registrar_save(); It will
correctly rewrite the Contact URI with the recived IP:PORT however it
mid_register is then not able to append the contact_match_param to the new
Contact URI.

The script looks like this...

if (is_method("REGISTER")) {
fix_nated_contact();
mid_registrar_save("location");

It fails with this error.

ERROR:mid_registrar:overwrite_all_contact_hostports: SCRIPT BUG - second
attempt to change URI Contact

ERROR:mid_registrar:mid_reg_req_fwded: failed to overwrite Contact URI

Thoughts? And Thanks!!

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


Re: [OpenSIPS-Users] LCR based on ACD or Gatework QoS?

2017-10-26 Thread Arsen
Hi Abdoul,

You can check CGrates rating engine it can do LCR based on QOS and its
easily integrated with Opensips.

Regards,



Arsen Semionov
www.eurolan.info
cell: +442035198881

On Thu, Oct 26, 2017 at 3:11 PM, Abdoul Osséni 
wrote:

> Hi,
>
> Thank you for your feedback.
>
> Regards
>
> Abdoul OSSENI
>
>
> 2017-10-26 12:09 GMT+02:00 Bogdan-Andrei Iancu :
>
>> Hi,
>>
>> OpenSIPS does not directly implements are cost or quality related
>> concepts when comes to routing. What OpenSIPS can do is to route (based on
>> prefixes) to lists of GWs - see the drouting module. So, what you have to
>> do is to be sure to properly arrange the GW list to reflect cost or quality.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>   OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>>
>> On 10/26/2017 12:59 PM, Abdoul Osséni wrote:
>>
>> Hello all,
>>
>> I am new in OpenSIPS.
>>
>> I am looking for a LCR based on ACD or Gatework QoS?
>>
>> Can we do it with OpenSIPS?
>>
>> Thank you in advance for your feedback.
>>
>> Regards
>> Abdoul OSSENI
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
> ___
> 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


Re: [OpenSIPS-Users] Wrong Contact in location table

2017-10-26 Thread Dragomir Haralambiev
Hi Răzvan,

Here is script_trace() for REGISTER:

Oct 26 22:14:30 /opensips[17718]: 57995010: REGISTER start trace
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:245][me][module fix_nated_register] ->
(REGISTER from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:246][me][core setbflag] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:249][me][module fix_nated_contact] ->
(REGISTER from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:260][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:262][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:260][me][module is_method] -> (REGISTER
from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:269][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:265][me][module is_method] -> (REGISTER
from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:276][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:272][me][module is_method] -> (REGISTER
from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:368][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:279][me][module is_method] -> (REGISTER
from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:289][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:363][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:289][me][core isflagset] -> (REGISTER
from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:329][me][assign equal] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:331][me][core xlog] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: 57995010: Expires=360
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:346][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:353][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:346][me][module is_registered] ->
(REGISTER from 108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:351][me][core if] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:347][me][module remove] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:348][me][core xlog] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: 57995010: Remove old registation
(sip:57995010@Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:353][me][assign equal] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:355][me][assign equal] -> (REGISTER from
108.203.232.10, ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script Trace][(null):0][me][core
set_host] -> (REGISTER from 108.203.232.10,
ruri=sip:Opensips_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script
Trace][/etc/opensips/opensips.cfg:356][me][assign equal] -> (REGISTER from
108.203.232.10, ruri=sip:Registrar_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718]: [Script Trace][(null):0][me][core
set_port] -> (REGISTER from 108.203.232.10,
ruri=sip:Registrar_IP:Opensips_port)
Oct 26 22:14:30 /opensips[17718

[OpenSIPS-Users] Proxy authentication question

2017-10-26 Thread Yury Kirsanov
Hi,
I've got a question about proxy authentication - is there any way to
determine if we previously already asked remote party to authenticate or
not? For some reason it looks like to me that flags are not persistent
during proxy authentication process, so my code doesn't work as flag is
never set. Here's a code snippet:

if (!proxy_authorize("","subscriber"))
{
 if (isflagset(7))
 {
   # We already tried to authenticate, do some code here
 }
 else
 {
   # We haven't tried to authenticate yet, challenge the request
   setflag(7);
   proxy_challenge("","1");
   exit;
 }
}
else
{
... successful auth done
}

I need this as I want to try to authenticate users and if remote party
can't authenticate - then try to do IP based authentication, for example.

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


Re: [OpenSIPS-Users] Proxy authentication question

2017-10-26 Thread devangn
*"There flags are available only in script and are reset after each top level
route execution (routes internally triggered by OpenSIPS). "* as mentioned,
https://www.opensips.org/Documentation/Script-Flags-2-2

if that is the case you can user cache,
https://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc4



--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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


Re: [OpenSIPS-Users] Asterisk and options

2017-10-26 Thread devangn
Hello,

https://www.opensips.org/Documentation/Tutorials-OpenSIPSAsteriskIntegration

First try to get idea about how integration works and how the opensips
database table structure is and from that you can get idea about how to
modify opensips database as per your usage, because you can modify opensips
table structure as per your need. In your case as per the asterisk data. and
use asterisk data from opensips database without much of hassle. 



--
Sent from: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

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