[OpenSIPS-Users] sip.instance

Bogdan-Andrei Iancu bogdan at opensips.org
Tue May 31 09:12:47 CEST 2016


Hi,

You NEED to authenticate the calls / INVITEs too, but you do in wrong 
way - you need to use the proxy_challenge() for INVITEs and not 
www_challenge() (which is to be used only for REGISTER requests).

Regards,

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

On 24.05.2016 17:17, Johan De Clercq wrote:
> NO, because you still authenticate on registratin.
>
> 2016-05-24 15:20 GMT+02:00 Frank Paaske <frank.paaske at gmail.com 
> <mailto:frank.paaske at gmail.com>>:
>
>     Thanks, but won’t this allow anyone to use this OpenSIPS instance
>     to make SIP calls?
>
>     Best regards,
>
>     Frank
>
>     *From: *<users-bounces at lists.opensips.org
>     <mailto:users-bounces at lists.opensips.org>> on behalf of Johan De
>     Clercq <johan at democon.be <mailto:johan at democon.be>>
>     *Reply-To: *OpenSIPS users mailling list <users at lists.opensips.org
>     <mailto:users at lists.opensips.org>>
>     *Date: *tirsdag 24. mai 2016 08.16
>     *To: *OpenSIPS users mailling list <users at lists.opensips.org
>     <mailto:users at lists.opensips.org>>
>     *Subject: *Re: [OpenSIPS-Users] sip.instance
>
>     you need to remove authentication on invite.
>
>     Check in opensips.cfg: if(method=="INVITE")
>     {
>     ....
>
>     www_challenge()
>
>     }
>
>     comment that part out and restart opensips.
>
>     2016-05-24 0:12 GMT+02:00 Frank Paaske <frank.paaske at gmail.com
>     <mailto:frank.paaske at gmail.com>>:
>
>         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
>
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>     _______________________________________________ Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160531/70c9ccef/attachment-0001.htm>


More information about the Users mailing list