[jitsi-dev] Issues with account-specific encodings, Jitsi 4204, Linux 32bit


#1

Hello,
I tried the account-specific encoding feature recently introduced. It does not work with my SIP account,although it seems to work with my Google a Talk account.

The SIP account i use is on a Asterisk server and accepts only the PCMU codec (regardless of the other side), so i restricted my list to PCMU and PCMA.

Attempting to call any account through this server fails with the error "An error occured while sending invite request".

Removing the override solves the issue. I have the following global list:

silk/24k
speex/32k
speex/16k
pcmu/8k
pcma/8k

The override is:

pcmu/8k
pcma/8k

Error message details:

net.java.sip.communicator.service.protocol.OperationFailedException: An
error occurred while sending invite request
  at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.throwOperationFailedException(ProtocolProviderServiceSipImpl.java:2390)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPeerSipImpl.java:1495)
  at net.java.sip.communicator.impl.protocol.sip.CallSipImpl.invite(CallSipImpl.java:195)
  at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:235)
  at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createCall(OperationSetBasicTelephonySipImpl.java:156)
  at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createCall(OperationSetBasicTelephonySipImpl.java:116)
  at net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.run(CallManager.java:1509)
Caused by: net.java.sip.communicator.service.protocol.OperationFailedException: Failed to create a media description
  at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.throwOperationFailedException(ProtocolProviderServiceSipImpl.java:2390)
  at net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createMediaDescription(SdpUtils.java:1459)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createMediaDescription(CallPeerMediaHandlerSipImpl.java:1080)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createMediaDescriptions(CallPeerMediaHandlerSipImpl.java:193)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createFirstOffer(CallPeerMediaHandlerSipImpl.java:130)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createOffer(CallPeerMediaHandlerSipImpl.java:111)
  at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPeerSipImpl.java:1478)
  ... 5 more
Caused by: java.lang.NullPointerException
  at net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createMediaDescription(SdpUtils.java:1449)
  ... 10 more

OS: Debian Wheezy 32-bit, default pulseaudio (2.0-6) , default OpenJDK:

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-3)
OpenJDK Server VM (build 20.0-b12, mixed mode)

···

--
O zi buna,
Kertesz Laszlo


#2

Hi Kertesz,

Hello,
I tried the account-specific encoding feature recently introduced. It does
not work with my SIP account,although it seems to work with my Google a
Talk account.

The SIP account i use is on a Asterisk server and accepts only the PCMU
codec (regardless of the other side), so i restricted my list to PCMU and
PCMA.

Attempting to call any account through this server fails with the error
"An error occured while sending invite request".

Removing the override solves the issue. I have the following global list:

silk/24k
speex/32k
speex/16k
pcmu/8k
pcma/8k

The override is:

pcmu/8k
pcma/8k

Thank you for reporting this. I've had no success reproducing it, though.
Would you mind sending the result of:
grep Encoding ~/.jitsi/sip-communicator.properties

Does the same thing happen if you restrict the global list to pcmu/8k and
pcma/8k, and leave the override off?

Regards,
Boris

···

On Tue, Sep 18, 2012 at 10:05 AM, Kertesz Laszlo <laszlo.kertesz@gmail.com>wrote:


#3

Boris Grozev wrote:

Hi Kertesz,

    Hello,
    I tried the account-specific encoding feature recently introduced.
    It does not work with my SIP account,although it seems to work with
    my Google a Talk account.

    The SIP account i use is on a Asterisk server and accepts only the
    PCMU codec (regardless of the other side), so i restricted my list
    to PCMU and PCMA.

    Attempting to call any account through this server fails with the
    error "An error occured while sending invite request".

    Removing the override solves the issue. I have the following global
    list:

    silk/24k
    speex/32k
    speex/16k
    pcmu/8k
    pcma/8k

    The override is:

    pcmu/8k
    pcma/8k

Thank you for reporting this. I've had no success reproducing it,
though. Would you mind sending the result of:
grep Encoding ~/.jitsi/sip-communicator.properties

Hi,

Only the pcmu and pcma active:

net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.DVI4/16000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.DVI4/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.G722/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.G723/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.GSM/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.H263-1998/90000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.H264/90000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.PCMA/8000=15
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.PCMU/8000=16
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/12000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/16000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/24000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.iLBC/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/16000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/32000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.telephone-event/8000=0

No overrides:

net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.DVI4/16000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.DVI4/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.G722/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.G723/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.GSM/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.H263-1998/90000=1
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.H264/90000=2
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.PCMA/8000=12
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.PCMU/8000=13
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/12000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/16000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/24000=16
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.SILK/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.iLBC/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/16000=14
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/32000=15
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.speex/8000=0
net.java.sip.communicator.impl.protocol.sip.acc1332499693071.Encodings.telephone-event/8000=0

Does the same thing happen if you restrict the global list to pcmu/8k
and pcma/8k, and leave the override off?

No, it does not. It works correctly. It only happens for the SIP account via the Asterisk server.

···

On Tue, Sep 18, 2012 at 10:05 AM, Kertesz Laszlo > <laszlo.kertesz@gmail.com <mailto:laszlo.kertesz@gmail.com>> wrote:

Regards,
Boris

--
O zi buna,
Kertesz Laszlo


#4

OK, found the problem. A proper fix will be available in a couple of days.
Until then, make sure at least one video format is enabled in the
configuration you are using (account or global).

Boris


#5

Boris Grozev wrote:

OK, found the problem. A proper fix will be available in a couple of
days. Until then, make sure at least one video format is enabled in the
configuration you are using (account or global).

Yes, it works that way. Thanks for the workaround.

···

Boris


#6

Should be fixed in r9869.

Boris