[OpenSIPS-Users] sip.instance

2016-05-23 Thread Frank Paaske
Hi,

 

I’m trying to get a liblinphone based client connected to OpenSIPS. 

The REGISTER is challenged with a 401, which is automatically replied to with a 
proper Digest by liblinphone, which in turn gives 200 OK back from OpenSIPS.

 

However, when trying to make a call, the INVITE is also challenged with a 401. 
In this case the liblinphone is not responding automatically.

According to the developers of the app, this happens because OpenSIPS is not 
configured to support sip.instance.

 

The sequence is roughly like this:

 

Client  Server

|-REGISTER-->|

|<---401-|

|-REGISTER-with-auth>|

|<---200-|

 

|-INVITE>|

|<---401-|

 

Then nothing

 

 

 

So my question is how can I enable support for sip.instance in OpenSIPS?

 

 

Best regards,

Frank



smime.p7s
Description: S/MIME cryptographic signature
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] contact after fix_nated_contact()

2016-05-23 Thread Alex Balashov

On 05/23/2016 12:17 PM, Gupta, Rahul wrote:


Hi Alex, thanks for the quick reply. I don't see if
msg_apply_changes() is available in opensips. When I use it, I get
the bad config file error. I did add loadmodule textops.so


Oh, sorry! I thought this function was available in OpenSIPS too.

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


Re: [OpenSIPS-Users] contact after fix_nated_contact()

2016-05-23 Thread Gupta, Rahul
Hi Alex, thanks for the quick reply. I don't see if msg_apply_changes() is 
available in opensips. When I use it, I get the bad config file error. I did 
add loadmodule textops.so


Thanks
Rahul Gupta


---

Vote for IPC in the 2016 Waters Technology Awards. Winners are decided by 
people who are most important to us - our customers! Please vote for us (#27, 
#29) by "https://www.surveymonkey.com/r/R6Y27GJ;.



-Original Message-
From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Balashov
Sent: Monday, May 23, 2016 12:00 PM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] contact after fix_nated_contact()

On 05/23/2016 11:55 AM, Gupta, Rahul wrote:
> How do I get the updated contact after fix_nated_contact(), for
> example in the log statement  $ct prints the old Contact.
>
> xlog("Contact before fix_nated_contact: $ct");
>
> fix_nated_contact();
>
> xlog("Contact after fix_nated_contact: $ct");

You can run msg_apply_changes() after calling fix_nated_contact(), assuming it 
doesn't have any effects harmful to your cause:

http://kamailio.org/docs/modules/4.4.x/modules/textopsx.html#textopsx.f.msg_apply_changes

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.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


Re: [OpenSIPS-Users] contact after fix_nated_contact()

2016-05-23 Thread Alex Balashov

On 05/23/2016 11:55 AM, Gupta, Rahul wrote:

How do I get the updated contact after fix_nated_contact(), for example
in the log statement  $ct prints the old Contact.

xlog("Contact before fix_nated_contact: $ct");

fix_nated_contact();

xlog("Contact after fix_nated_contact: $ct");


You can run msg_apply_changes() after calling fix_nated_contact(), 
assuming it doesn't have any effects harmful to your cause:


http://kamailio.org/docs/modules/4.4.x/modules/textopsx.html#textopsx.f.msg_apply_changes

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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


[OpenSIPS-Users] contact after fix_nated_contact()

2016-05-23 Thread Gupta, Rahul
How do I get the updated contact after fix_nated_contact(), for example in the 
log statement  $ct prints the old Contact.

xlog("Contact before fix_nated_contact: $ct");
fix_nated_contact();
xlog("Contact after fix_nated_contact: $ct");


Thanks
Rahul Gupta

---

Vote for IPC in the 2016 Waters Technology Awards. Winners are decided by 
people who are most important to us - our customers! Please vote for us (#27, 
#29) by clicking here.

--

DISCLAIMER: This e-mail may contain information that is confidential, 
privileged or otherwise protected from disclosure. If you are not an intended 
recipient of this e-mail, do not duplicate or redistribute it by any means. 
Please delete it and any attachments and notify the sender that you have 
received it in error. Unintended recipients are prohibited from taking action 
on the basis of information in this e-mail.E-mail messages may contain computer 
viruses or other defects, may not be accurately replicated on other systems, or 
may be intercepted, deleted or interfered with without the knowledge of the 
sender or the intended recipient. If you are not comfortable with the risks 
associated with e-mail messages, you may decide not to use e-mail to 
communicate with IPC. IPC reserves the right, to the extent and under 
circumstances permitted by applicable law, to retain, monitor and intercept 
e-mail messages to and from its systems.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Possible dialog/topology hiding bug

2016-05-23 Thread Pete Kelly
Sorry, I missed your reply. I will test and report back this week.

Pete

On 20 May 2016 at 16:59, Bogdan-Andrei Iancu  wrote:

> Pete, Razvan just made a fix for this issue. It was tested and uploaded
> on GIT, still please give it try and let me know if ok.
>
> Many thanks for the report,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 19.05.2016 12:04, Pete Kelly wrote:
>
> I can confirm the bug is still present with a SIGTERM shutdown.
>
>
> On 18 May 2016 at 10:52, Bogdan-Andrei Iancu  wrote:
>
>> Hi Pete,
>>
>> By doing kill -9, you completely kill ALL opensips processes, so there is
>> no cleanup/flush during shutdown. On crashes, the worker processes crashes
>> - the attendant cannot crash (as it is not doing anything), so this process
>> can do the shutdown in a proper way.
>>
>> Can you try to see if the call is properly recover if you do normal
>> restart (no SIGKILL, but SIGTERM) ? If it does, please take a snapshot of
>> the db entry (for that call) while opensips is down - one for KILL, one for
>> TERM; and let's see the differences - maybe some dialog data gets flushed
>> only during shutdown.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>
>> On 18.05.2016 10:53, Pete Kelly wrote:
>>
>> Yes exactly - in fact I did not restart opensips, I waited until the call
>> is established, and until dialog had flushed to DB and then killall -9
>> opensips to simulate a crash.
>>
>> Upon restart the dialog was loaded in from database
>>
>> On 17 May 2016 at 18:18, Bogdan-Andrei Iancu < 
>> bog...@opensips.org> wrote:
>>
>>> Hi Pete,
>>>
>>> No, this is not a know bug, nor an intended behavior. So, simply
>>> restarting opensips during a TH call will lead to this error ? no special
>>> setup, just a proxy between 2 end points, right ?
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>>>
>>> On 17.05.2016 16:36, Pete Kelly wrote:
>>>
>>> I am seeing something interesting with topology_hiding + dialog on 2.1.
>>> If I let the dialog flush to the DB and kill opensips, opensips loads back
>>> in the dialog info on startup as expected.
>>>
>>> However any new in dialog requests (e.g. BYE) do not proxy - it looks
>>> like Via, Call-ID and Contact are restored but ruri is not - which makes
>>> OpenSIPS loop the request back to itself.
>>>
>>> For reference, to "enable" topology hiding, I am simply calling
>>> topology_hiding("C") then in has_totag() I am calling
>>> topology_hiding_match()
>>>
>>> If I perform the same test without topology hiding, the in-dialog
>>> requests continue to proxy as normal.
>>>
>>> Is this a known bug/quirk, is it likely I am not performing some check
>>> or test that i need to?
>>>
>>>
>>> ___
>>> 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] Security presentation on opensips

2016-05-23 Thread John Nash
Thank you Pete.

On Thu, May 19, 2016 at 2:44 PM, Pete Kelly  wrote:

> I think this may be the video https://www.youtube.com/watch?v=3XYcQQCWylw
>
> On 17 May 2016 at 20:41, John Nash  wrote:
>
>> I saw
>> http://www.opensips.org/pub/events/2012-08-07_ClueCon_Chicago/VLAD_PAIU-OpenSIPS-Securing_SIP_Networks.pdf
>> .
>>
>> I would love to watch the video session of this, is there any place I can
>> get the video? Tried searching google but did not find.
>>
>> Regards
>>
>> John
>>
>> ___
>> 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