linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Are PCMA and PCMU working in android version?


From: Ghislain MARY
Subject: Re: [Linphone-developers] Are PCMA and PCMU working in android version?
Date: Tue, 16 Jun 2015 17:39:19 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hi,

The payload type numbers for PCMA, PCMU, GSM and G722 are static, respectively (8, 0, 3 and 9). In your example of INVITE they appear correctly in:
m=audio 7078 RTP/AVP 96 97 98 99 0 8 3 9 100 102 103 104 105 106 107 101 108 109 110 111 112 113
These codecs are included in Linphone for Android.
However it appears you are using SIP over UDP and have enabled all the codecs. This can not work because the INVITE packet will get truncated, which appears to be the case in your example. To fix this, enable only the codecs you want or even better use TCP or TLS as the SIP transport.

To add more codecs, you will need to write a mediastreamer2 filter either built-in mediastreamer2 or as a mediastreamer2 plugin. Take a look at mediastreamer2 code to see how it is done.

Cheers,
Ghislain

Le 16/06/2015 17:00, Konstantin.O a écrit :
Hi Linphone Developer!

Yesterday I cloned from Git and built latest Linphone for Android, exactly as it is hinted in README.md.
It work fine but codecs only working (adevtised) are OPUS, iLBC, SILK and SPEEX.
I have enabled all codecs in settings, but I never seen PCMA/PCMU, GSM, G726, G722 in list.
There are NO widely used codes like PCMA/PCMU, GSM, G726, G722 in SIP INVITE message.
I used tcpdump to examine SIP dialogs with asterisk, here is example of INVITE from Linphone to asterisk:

     A.B.C.D.60191 > Q.W.E.R.5060: SIP, length: 1472
        INVITE sip:address@hidden SIP/2.0
        Via: SIP/2.0/UDP 192.168.2.2:60191;branch=z9hs4bK.YuOjUMR-c;rport
        From: <sip:address@hidden>;tag=-GsMdk1kU
        To: sip:address@hidden
        CSeq: 21 INVITE
        Call-ID: MFuoHrcVVt
        Max-Forwards: 70
        Supported: outbound
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
        Content-Type: application/sdp
        Content-Length: 1692
        Contact: <sip:address@hidden:60191>;+sip.instance="<urn:uuid:2523207c-9b19-3451-8a48-60bf318684eb>"
        User-Agent: LinphoneIphone/X
        Authorization:  Digest realm="ASTASTAST", nonce="aa372dce", algorithm=MD5, username="20029",  uri="sip:address@hidden", response="1eb25ee20e29e7f87be9542eed3d0e18"

        v=0
        o=20029 3033 2572 IN IP4 192.168.2.224
        s=Talk
        c=IN IP4 192.168.2.224
        b=AS:512
        t=0 0
        a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
        m=audio 7078 RTP/AVP 96 97 98 99 0 8 3 9 100 102 103 104 105 106 107 101 108 109 110 111 112 113
        a=rtpmap:96 opus/48000/2
        a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0
        a=rtpmap:97 SILK/16000
        a=rtpmap:98 speex/16000
        a=fmtp:98 vbr=on
        a=rtpmap:99 speex/8000
        a=fmtp:99 vbr=on
        a=rtpmap:100 iLBC/8000
        a=fmtp:100 mode=30
        a=rtpmap:102 mpeg4-generic/16000
        a=fmtp:102 config=F8EE2000; constantDuration=512; indexDeltaLength=3; indexLength=3; mode=AAC-hbr; profile-level-id=76; sizeLength=13; streamType=5
        a=rtpmap:103 mpeg4-generi[|sip]

My questions are:

1. How I can enable building and use of codecs PCMA, PCMU, GSM and G726 in Android version of Linphone?

2. How can I add other codes, say, Codec2?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]