Problem with codec

Dears
i had installed Asterisk V11.7.0 on my server , and all things seem to me good except that i am getting
(chan_sip.c:10556 process_sdp: No compatible codecs, not accepting this offer! ) when doing test call by G723 or G729 codecs , but the call pass when using GSM codec !!!

  • when using the command (core show translation) , i see the codecs g723+g729
  • my server CPU is Xeon 4 core .

any one can help me plz ?

This means there are no codecs in common between sip.conf and the peer device. Although it helps to have a codec module for a codec you intend to use, that is not essential.

You need to use sip debug to find out what the other side is offering.

Thanks for your help David , bellow is Sip debug

Sending to 173.230.231.68 : 5060 (no NAT)
Using INVITE request as basis request - 90029210013c7df4780597ef237102f63f68d1a537@173.230.231.68
Found no matching peer or user for '173.230.231.68:5060’
Found RTP audio format 18
Found RTP audio format 101
Found audio description format G729 for ID 18
Found audio description format telephone-event for ID 101
Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x100 (g729)/video=0x0 (nothing), combined - 0x0 (nothing)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
[Jan 4 03:29:42] NOTICE[2846]: chan_sip.c:5639 process_sdp: No compatible codecs, not accepting this offer!

<— Reliably Transmitting (no NAT) to 173.230.231.68:5060 —>
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 173.230.231.68:5060;branch=z9hG4bK040133141356041025372921;received=173.230.231.68
From: “cab2” sip:07855438886@173.230.231.68:5060;tag=0401331413561025372921
To: “0009627955566638” sip:vps@192.168.1.9:5060;tag=as4a90ff11
Call-ID: 90029210013c7df4780597ef237102f63f68d1a537@173.230.231.68
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0

That’s not a complete trace, although it shows that you only support Mu-Law and A-law and the peer only supports G.729, There is nothing in common, hence the Not Acceptable response.

It seems your peer is using G729 and you are sending ulaw and alaw,

check on the console by issuing the command

core show translation

suggest you buy license for G729 codec, which should help you resolve the issue

Regards
CJ