[Home]

Summary:ASTERISK-10939: incorrectly recognized codecs capabilities of windows mobile 6 device
Reporter:pj (pj)Labels:
Date Opened:2007-11-30 10:41:45.000-0600Date Closed:2011-06-07 14:08:02
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/CodecHandling
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Native voip/sip client (RTC/1.5) from windows mobile 6, reports in sdp, that supports codecs:
siren,g722,alaw,ulaw,red
asterisk this offer recognizes, but in further negotiation it interprets as folowing capabilities:
peer - audio=0xc1c (ulaw|alaw|g726|ilbc|g726aal2)
combined - 0x400 (ilbc)
call fails, because ilbc is not supported in windows mobile and codec ilbc isn't even offered in sdp from windows mobile device


****** ADDITIONAL INFORMATION ******

Content-Type: application/sdp
Content-Length: 431

v=0
o=- 33 0 IN IP4 192.168.164.154
s=session
c=IN IP4 192.168.164.154
b=CT:100
t=0 0
m=audio 10566 RTP/AVP 111 112 8 0 97 101
k=base64:5kvXhJWFVpEolEsUg8YBaeLpgA1zIPgbYIqkeF5Guy0
a=rtpmap:111 SIREN/16000
a=fmtp:111 bitrate=16000
a=rtpmap:112 G7221/16000
a=fmtp:112 bitrate=24000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 RED/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=encryption:optional

[Nov 30 17:21:56] --- (13 headers 18 lines) ---
[Nov 30 17:21:56] Sending to 192.168.164.154 : 10447 (NAT)
[Nov 30 17:21:56] Using INVITE request as basis request - 0000974f00000000808083206d33c801
[Nov 30 17:21:56] Found user '324' for '324'
[Nov 30 17:21:56] Found RTP audio format 111
[Nov 30 17:21:56] Found RTP audio format 112
[Nov 30 17:21:56] Found RTP audio format 8
[Nov 30 17:21:56] Found RTP audio format 0
[Nov 30 17:21:56] Found RTP audio format 97
[Nov 30 17:21:56] Found RTP audio format 101
[Nov 30 17:21:56] Peer audio RTP is at port 192.168.164.154:10566
[Nov 30 17:21:56] Found description format SIREN for ID 111
[Nov 30 17:21:56] Found description format G7221 for ID 112
[Nov 30 17:21:56] Found description format PCMA for ID 8
[Nov 30 17:21:56] Found description format PCMU for ID 0
[Nov 30 17:21:56] Found description format RED for ID 97
[Nov 30 17:21:56] Found description format telephone-event for ID 101


[Nov 30 17:21:56] Capabilities: us - 0x1502 (gsm|g729|ilbc|g722), peer - audio=0xc1c (ulaw|alaw|g726|ilbc|g726aal2)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x400 (ilbc)

[Nov 30 17:21:56] Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)


codecs settings from sip.conf
 Codec Order  : (g722:20,gsm:20,ilbc:30,g729:20)


Comments:By: pj (pj) 2007-11-30 10:47:11.000-0600

maybe this issue, should be better categorized as chan_sip/codecshandling

By: Olle Johansson (oej) 2007-12-04 09:11:28.000-0600

Please try again with latest trunk. I fixed this in rev 89698, hopefully.

http://svn.digium.com/view/asterisk?view=rev&revision=89698

By: pj (pj) 2007-12-04 10:05:27.000-0600

iLBC is now correctly removed from combined codecs list,
but why is g722 as 'unknown', even if g722 is shown in core show translation and is enabled in peer config?  Codec Order  : (g729:20,gsm:20,ilbc:30,g722:20)

[Dec  4 16:58:35] Found RTP audio format 111
[Dec  4 16:58:35] Found RTP audio format 112
[Dec  4 16:58:35] Found RTP audio format 8
[Dec  4 16:58:35] Found RTP audio format 0
[Dec  4 16:58:35] Found RTP audio format 97
[Dec  4 16:58:35] Found RTP audio format 101
[Dec  4 16:58:35] Peer audio RTP is at port 192.168.164.154:10270
[Dec  4 16:58:35] Found unknown media description format SIREN for ID 111
[Dec  4 16:58:35] Found unknown media description format G7221 for ID 112
[Dec  4 16:58:35] Found audio description format PCMA for ID 8
[Dec  4 16:58:35] Found audio description format PCMU for ID 0
[Dec  4 16:58:35] Found unknown media description format RED for ID 97
[Dec  4 16:58:35] Found audio description format telephone-event for ID 101
[Dec  4 16:58:35] Capabilities: us - 0x1502 (gsm|g729|ilbc|g722), peer - audio=0xc (ulaw|alaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x0 (nothing)

By: Olle Johansson (oej) 2007-12-04 10:21:46.000-0600

G7221/16000 is unsupported by asterisk, so it's unknown.

By: Olle Johansson (oej) 2007-12-04 10:22:17.000-0600

Already resolved. Thanks for reporting this bug.