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 18.104.22.168 : 5060 (no NAT)
Using INVITE request as basis request - firstname.lastname@example.org
Found no matching peer or user for '22.214.171.124: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: chan_sip.c:5639 process_sdp: No compatible codecs, not accepting this offer!
<— Reliably Transmitting (no NAT) to 126.96.36.199:5060 —>
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 188.8.131.52:5060;branch=z9hG4bK040133141356041025372921;received=184.108.40.206
From: “cab2” sip:email@example.com:5060;tag=0401331413561025372921
To: “0009627955566638” sip:firstname.lastname@example.org:5060;tag=as4a90ff11
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
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