[jitsi-users] jigasi sip.communicator settings


#1

Hello List.

I'm struggling with connecting jitsi to my SIP Server (Asterisk). I've read one should in case of problems
first try with windows to connect and compare the settings. That's what i did. I was able to connect in
windows and then adjusted the settings in jigasi accordingly. Here are my settings:

root@ubuntu:/etc/jitsi/jigasi# cat sip-communicator.properties
net.java.sip.communicator.impl.protocol.sip.acc1475753175309=acc1475753175309
net.java.sip.communicator.impl.protocol.sip.acc1475753175309.ACCOUNT_UID=SIP\:1002@mydomain
net.java.sip.communicator.impl.protocol.sip.acc1475753175309.PASSWORD=mycleartextunhashedpassword
net.java.sip.communicator.impl.protocol.sip.acc1475753175309.PROTOCOL_NAME=SIP
net.java.sip.communicator.impl.protocol.sip.acc1475753175309.SERVER_ADDRESS=mydomain
net.java.sip.communicator.impl.protocol.sip.acc1475753175309.USER_ID=1002@mydomain
net.java.sip.communicator.impl.replacement.directimage.MAX_IMG_SIZE=2097152

All i get is:

2016-10-06 14:00:05.501 INFO: [42] org.jitsi.jigasi.SipGateway.registrationStateChanged().170 REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) -> RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Authentication Failed; reasonCode=1; reason=null]
2016-10-06 14:00:05.502 INFO: [42] org.jitsi.jigasi.SipGateway.registrationStateChanged().170 REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) -> RegistrationStateChangeEvent[ oldState=Authentication Failed; newState=RegistrationState=Unregistered; reasonCode=0; reason=User has canceled the authentication process.]
2016-10-06 14:00:05.504 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
2016-10-06 14:00:06.505 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped

What is the magic trick to get this running?

thanks and cheers
t.

0xF5437AA0.asc (5.14 KB)


#2

I think it was something like, Asterisk is chelenging Register and Jigasi
is sending first Register with credentials and not trying again.

Maybe to play with insecure=invite,port on asterisk side, or something like
that to try to not chellenge REG with Auth in it.

···

On Thu, Oct 6, 2016 at 2:02 PM, Thomas Stein <himbeere@meine-oma.de> wrote:

Hello List.

I'm struggling with connecting jitsi to my SIP Server (Asterisk). I've
read one should in case of problems
first try with windows to connect and compare the settings. That's what i
did. I was able to connect in
windows and then adjusted the settings in jigasi accordingly. Here are my
settings:

root@ubuntu:/etc/jitsi/jigasi# cat sip-communicator.properties
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
=acc1475753175309
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
.ACCOUNT_UID=SIP\:1002@mydomain
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
.PASSWORD=mycleartextunhashedpassword
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
.PROTOCOL_NAME=SIP
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
.SERVER_ADDRESS=mydomain
net.java.sip.communicator.impl.protocol.sip.acc1475753175309
.USER_ID=1002@mydomain
net.java.sip.communicator.impl.replacement.directimage.MAX_
IMG_SIZE=2097152

All i get is:

2016-10-06 14:00:05.501 INFO: [42] org.jitsi.jigasi.SipGateway.registrationStateChanged().170
REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) ->
RegistrationStateChangeEvent[ oldState=Registering;
newState=RegistrationState=Authentication Failed; reasonCode=1;
reason=null]
2016-10-06 14:00:05.502 INFO: [42] org.jitsi.jigasi.SipGateway.registrationStateChanged().170
REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) ->
RegistrationStateChangeEvent[ oldState=Authentication Failed;
newState=RegistrationState=Unregistered; reasonCode=0; reason=User has
canceled the authentication process.]
2016-10-06 14:00:05.504 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196
Info from the JAIN-SIP stack: the sip stack timer
gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
2016-10-06 14:00:06.505 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196
Info from the JAIN-SIP stack: the sip stack timer
gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped

What is the magic trick to get this running?

thanks and cheers
t.

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

--
Regards,
Mirko
¯\_(ツ)_/¯


#3

I think it was something like, Asterisk is chelenging Register and Jigasi is sending first Register with credentials and not trying again.

Thanks for your answer. I was able to solve the registration issue by let the ubuntu wizard create the file. By the way, what hash
algorithm is used to hash the sip password?

thanks and cheers
t.

···

Am 07.10.16 um 09:51 schrieb Mirko Brankovic:

Maybe to play with insecure=invite,port on asterisk side, or something like that to try to not chellenge REG with Auth in it.

On Thu, Oct 6, 2016 at 2:02 PM, Thomas Stein <himbeere@meine-oma.de <mailto:himbeere@meine-oma.de>> wrote:

    Hello List.

    I'm struggling with connecting jitsi to my SIP Server (Asterisk). I've read one should in case of problems
    first try with windows to connect and compare the settings. That's what i did. I was able to connect in
    windows and then adjusted the settings in jigasi accordingly. Here are my settings:

    root@ubuntu:/etc/jitsi/jigasi# cat sip-communicator.properties
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309=acc1475753175309
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309.ACCOUNT_UID=SIP\:1002@mydomain
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309.PASSWORD=mycleartextunhashedpassword
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309.PROTOCOL_NAME=SIP
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309.SERVER_ADDRESS=mydomain
    net.java.sip.communicator.impl.protocol.sip.acc1475753175309.USER_ID=1002@mydomain
    net.java.sip.communicator.impl.replacement.directimage.MAX_IMG_SIZE=2097152

    All i get is:

    2016-10-06 14:00:05.501 INFO: [42] org.jitsi.jigasi.SipGateway.re <http://org.jitsi.jigasi.SipGateway.re>gistrationStateChanged().170 REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) -> RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Authentication Failed; reasonCode=1; reason=null]
    2016-10-06 14:00:05.502 INFO: [42] org.jitsi.jigasi.SipGateway.re <http://org.jitsi.jigasi.SipGateway.re>gistrationStateChanged().170 REG STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) -> RegistrationStateChangeEvent[ oldState=Authentication Failed; newState=RegistrationState=Unregistered; reasonCode=0; reason=User has canceled the authentication process.]
    2016-10-06 14:00:05.504 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
    2016-10-06 14:00:06.505 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped

    What is the magic trick to get this running?

    thanks and cheers
    t.

    _______________________________________________
    users mailing list
    users@jitsi.org <mailto:users@jitsi.org>
    Unsubscribe instructions and other list options:
    http://lists.jitsi.org/mailman/listinfo/users

--
Regards,
Mirko
¯\_(ツ)_/¯

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#4

Probably MD5, you can check in outgoing SIP reg messages, it should be
stated there in WWW-auth

···

On Fri, Oct 7, 2016 at 9:54 AM, Thomas Stein <himbeere@meine-oma.de> wrote:

Am 07.10.16 um 09:51 schrieb Mirko Brankovic:
> I think it was something like, Asterisk is chelenging Register and
Jigasi is sending first Register with credentials and not trying again.

Thanks for your answer. I was able to solve the registration issue by let
the ubuntu wizard create the file. By the way, what hash
algorithm is used to hash the sip password?

thanks and cheers
t.

> Maybe to play with insecure=invite,port on asterisk side, or something
like that to try to not chellenge REG with Auth in it.
>
> On Thu, Oct 6, 2016 at 2:02 PM, Thomas Stein <himbeere@meine-oma.de > <mailto:himbeere@meine-oma.de>> wrote:
>
> Hello List.
>
> I'm struggling with connecting jitsi to my SIP Server (Asterisk).
I've read one should in case of problems
> first try with windows to connect and compare the settings. That's
what i did. I was able to connect in
> windows and then adjusted the settings in jigasi accordingly. Here
are my settings:
>
> root@ubuntu:/etc/jitsi/jigasi# cat sip-communicator.properties
> net.java.sip.communicator.impl.protocol.sip.acc1475753175309=
acc1475753175309
> net.java.sip.communicator.impl.protocol.sip.
acc1475753175309.ACCOUNT_UID=SIP\:1002@mydomain
> net.java.sip.communicator.impl.protocol.sip.
acc1475753175309.PASSWORD=mycleartextunhashedpassword
> net.java.sip.communicator.impl.protocol.sip.
acc1475753175309.PROTOCOL_NAME=SIP
> net.java.sip.communicator.impl.protocol.sip.acc1475753175309.SERVER_
ADDRESS=mydomain
> net.java.sip.communicator.impl.protocol.sip.
acc1475753175309.USER_ID=1002@mydomain
> net.java.sip.communicator.impl.replacement.directimage.
MAX_IMG_SIZE=2097152
>
> All i get is:
>
> 2016-10-06 14:00:05.501 INFO: [42] org.jitsi.jigasi.SipGateway.re <
http://org.jitsi.jigasi.SipGateway.re>gistrationStateChanged().170 REG
STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) ->
RegistrationStateChangeEvent[ oldState=Registering;
newState=RegistrationState=Authentication Failed; reasonCode=1;
reason=null]
> 2016-10-06 14:00:05.502 INFO: [42] org.jitsi.jigasi.SipGateway.re <
http://org.jitsi.jigasi.SipGateway.re>gistrationStateChanged().170 REG
STATE CHANGE ProtocolProviderServiceSipImpl(1002@mydomain (SIP)) ->
RegistrationStateChangeEvent[ oldState=Authentication Failed;
newState=RegistrationState=Unregistered; reasonCode=0; reason=User has
canceled the authentication process.]
> 2016-10-06 14:00:05.504 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196
Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer
has been stopped
> 2016-10-06 14:00:06.505 INFO: [42] impl.protocol.sip.SipLogger.logInfo().196
Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer
has been stopped
>
> What is the magic trick to get this running?
>
> thanks and cheers
> t.
>
> _______________________________________________
> users mailing list
> users@jitsi.org <mailto:users@jitsi.org>
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/users <
http://lists.jitsi.org/mailman/listinfo/users>
>
>
>
>
> --
> Regards,
> Mirko
> ¯\_(ツ)_/¯
>
>
>
> _______________________________________________
> users mailing list
> users@jitsi.org
> Unsubscribe instructions and other list options:
> http://lists.jitsi.org/mailman/listinfo/users
>

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

--
Regards,
Mirko
¯\_(ツ)_/¯


#5

By the way, what hash
algorithm is used to hash the sip password?

The property is not hashed, it's encrypted with AES-128 or AES-256, depending on what's available in the hosts JRE. The SIP stack uses digest authentication as per RFC 3261 (which is MD5 based).

thanks and cheers
t.

Ingo