Hello,<br><br>a person trying to call me by my phone number is getting the error 488 Not acceptable here. I googled that error, seems like this error is normally caused by a failed codec negotation, though I have no clue how I could have read this out of the logs. Anyway, my setup is as follows:<br>
Asterisk 1.8.13.0 - NAT - Sipgate SIP Provider<br> The user calling me is also using Sipgate and is calling my landline phone number from Sipgate (not [my sip id]@<a href="http://sipgate.de">sipgate.de</a>).<br><br>My sip.conf including the codec restrictions looks like this (I left out my local sip account)<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">[general]<br>port=5060<br>bindaddr=0.0.0.0<br>context=other<br>language=de<br>allowguest=no<br><br>
qualify=no<br>disallow=all<br>allow=alaw<br>allow=ulaw<br>allow=g729<br>allow=gsm<br>allow=slinear<br>srvlookup=yes<br><br>register => <MY_SIP_ID>:<password>@<a href="http://sipgate.de/">sipgate.de/</a><MY_SIP_ID><br>
<br><br><br>[sipgate]<br>type=friend<br>insecure=invite<br>nat=yes<br>username=<MY_SIP_ID><br>fromuser=<MY_SIP_ID><br>fromdomain=<a href="http://sipgate.de">sipgate.de</a><br>secret=<password><br>host=<a href="http://sipgate.de">sipgate.de</a><br>
qualify=yes<br>canreinvite=no<br>dtmfmode=rfc2833<br>context = from_external_voip_provider <br></blockquote><br><div><br>The relevant part from my full asterisk log /var/log/asterisk/full including the 488 Not acceptable here error message:<br>
<br></div><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: <br><--- SIP read from UDP:<a href="http://217.10.79.9:5060">217.10.79.9:5060</a> ---><br>
INVITE sip:<MY_SIP_ID>@<a href="http://192.168.5.11:5060">192.168.5.11:5060</a> SIP/2.0<br>Record-Route: <sip:217.10.79.9;lr;ftag=8cgn1bajqb><br>Record-Route: <sip:172.20.40.3;lr=on><br>Record-Route: <sip:217.10.79.9;lr;ftag=8cgn1bajqb><br>
Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK8f5c.48627b3.0<br>Via: SIP/2.0/UDP 172.20.40.3;branch=z9hG4bK8f5c.48627b3.0<br>Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK-un6p0cm50qse<br>Via: SIP/2.0/UDP 192.168.0.8:2048;received=<CALLING_PARTY_IP_ADDRESS>;branch=z9hG4bK-un6p0cm50qse;rport=2048<br>
From: "<a href="http://sipgate.de">sipgate.de</a>" <sip:<CALLING_PARTY_SIP_ID>@<a href="http://sipgate.de">sipgate.de</a>>;tag=8cgn1bajqb<br>To: <sip:0049<MY_PHONE_NUMBER>@<a href="http://sipgate.de">sipgate.de</a>;user=phone><br>
Call-ID: 4fdf703d880d-ywqwnfbbj1h7<br>CSeq: 2 INVITE<br>Max-Forwards: 67<br>Contact: <sip:<CALLING_PARTY_SIP_ID>@<CALLING_PARTY_IP_ADDRESS>:2048;line=swnt2d3t>;reg-id=1<br>X-Serialnumber: 000413251D76<br>
User-Agent: snom300/<a href="http://8.7.3.7">8.7.3.7</a><br>Accept: application/sdp<br>Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE<br>Allow-Events: talk, hold, refer, call-info<br>
Supported: timer, 100rel, replaces, from-change<br>Session-Expires: 3600;refresher=uas<br>Min-SE: 90<br>Content-Type: application/sdp<br>Content-Length: 522<br>P-Asserted-Identity: <sip:<CALLING_PARTY_PHONE_NUMBER>@<a href="http://sipgate.de">sipgate.de</a>><br>
<br>v=0<br>o=root 269390684 269390684 IN IP4 192.168.0.8<br>s=call<br>c=IN IP4 217.10.77.20<br>t=0 0<br>m=audio 62652 RTP/AVP 9 0 8 3 99 108 18 101<br>a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:Ed8iHaP3BXNVeXHj98PRa6sJyImNer3ImjUvDZps<br>
a=rtpmap:9 G722/8000<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:3 GSM/8000<br>a=rtpmap:99 G726-32/8000<br>a=rtpmap:108 AAL2-G726-32/8000<br>a=rtpmap:18 G729/8000<br>a=fmtp:18 annexb=no<br>a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-15<br>a=ptime:20<br>a=sendrecv<br>a=direction:active<br>a=nortpproxy:yes<br><-------------><br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: --- (25 headers 21 lines) ---<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Sending to <a href="http://217.10.79.9:5060">217.10.79.9:5060</a> (NAT)<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Using INVITE request as basis request - 4fdf703d880d-ywqwnfbbj1h7<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found peer 'sipgate' for '<CALLING_PARTY_SIP_ID>' from <a href="http://217.10.79.9:5060">217.10.79.9:5060</a><br>
[Jun 18 20:15:26] VERBOSE[1164] netsock2.c: == Using SIP RTP CoS mark 5<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 9<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 0<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 8<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 3<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 99<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 108<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 18<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found RTP audio format 101<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format G722 for ID 9<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format PCMU for ID 0<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format PCMA for ID 8<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format GSM for ID 3<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format G726-32 for ID 99<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format AAL2-G726-32 for ID 108<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format G729 for ID 18<br>
[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: Found audio description format telephone-event for ID 101<br>[Jun 18 20:15:26] WARNING[1164] chan_sip.c: We are requesting SRTP, but they responded without it!<br>[Jun 18 20:15:26] VERBOSE[1164] chan_sip.c: <br>
<--- Reliably Transmitting (NAT) to <a href="http://217.10.79.9:5060">217.10.79.9:5060</a> ---><br>SIP/2.0 488 Not acceptable here<br>Via: SIP/2.0/UDP 217.10.79.9:5060;branch=z9hG4bK8f5c.48627b3.0;received=217.10.79.9;rport=5060<br>
Via: SIP/2.0/UDP 172.20.40.3;branch=z9hG4bK8f5c.48627b3.0<br>Via: SIP/2.0/UDP 217.10.79.9:5060;received=217.10.68.222;branch=z9hG4bK-un6p0cm50qse<br>Via: SIP/2.0/UDP 192.168.0.8:2048;received=<CALLING_PARTY_IP_ADDRESS>;branch=z9hG4bK-un6p0cm50qse;rport=2048<br>
From: "<a href="http://sipgate.de">sipgate.de</a>" <sip:<CALLING_PARTY_SIP_ID>@<a href="http://sipgate.de">sipgate.de</a>>;tag=8cgn1bajqb<br>To: <sip:0049<MY_PHONE_NUMBER>@<a href="http://sipgate.de">sipgate.de</a>;user=phone>;tag=as6364b798<br>
Call-ID: 4fdf703d880d-ywqwnfbbj1h7<br>CSeq: 2 INVITE<br>Server: Asterisk PBX 1.8.13.0~dfsg-1<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>Content-Length: 0<br>
</blockquote><div><br>I am having problems to see to what "488 Not acceptable here" relates to? What is not acceptable? Is it maybe about<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
[Jun 18 20:15:26] WARNING[1164] chan_sip.c: We are requesting SRTP, but they responded without it!</blockquote><div>and not a codec problem?<br><br><br>I am not sure if this is relevant and if it really shows the working codecs, bot for completeness the outputs of "core show codecs" and "core show translation" follow:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">core show codecs<br>Disclaimer: this command is for informational purposes only.<br> It does not indicate anything about your configuration.<br>
INT BINARY HEX TYPE NAME DESCRIPTION<br>-----------------------------------------------------------------------------------<br> 1 (1 << 0) (0x1) audio g723 (G.723.1)<br>
2 (1 << 1) (0x2) audio gsm (GSM)<br> 4 (1 << 2) (0x4) audio ulaw (G.711 u-law)<br> 8 (1 << 3) (0x8) audio alaw (G.711 A-law)<br>
16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2)<br> 32 (1 << 5) (0x20) audio adpcm (ADPCM)<br> 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM)<br>
128 (1 << 7) (0x80) audio lpc10 (LPC10)<br> 256 (1 << 8) (0x100) audio g729 (G.729A)<br> 512 (1 << 9) (0x200) audio speex (SpeeX)<br>
1024 (1 << 10) (0x400) audio ilbc (iLBC)<br> 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551)<br> 4096 (1 << 12) (0x1000) audio g722 (G722)<br>
8192 (1 << 13) (0x2000) audio siren7 (ITU G.722.1 (Siren7, licensed from Polycom))<br> 16384 (1 << 14) (0x4000) audio siren14 (ITU G.722.1 Annex C, (Siren14, licensed from Polycom))<br>
32768 (1 << 15) (0x8000) audio slin16 (16 bit Signed Linear PCM (16kHz))<br> 65536 (1 << 16) (0x10000) image jpeg (JPEG image)<br> 131072 (1 << 17) (0x20000) image png (PNG image)<br>
262144 (1 << 18) (0x40000) video h261 (H.261 Video)<br> 524288 (1 << 19) (0x80000) video h263 (H.263 Video)<br> 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video)<br>
2097152 (1 << 21) (0x200000) video h264 (H.264 Video)<br> 4194304 (1 << 22) (0x400000) video mpeg4 (MPEG4 Video)<br> 8388608 (1 << 23) (0x800000) video unknown (unknown)<br>
16777216 (1 << 24) (0x1000000) video unknown (unknown)<br> 33554432 (1 << 25) (0x2000000) text unknown (unknown)<br> 67108864 (1 << 26) (0x4000000) text red (T.140 Realtime Text with redundancy)<br>
134217728 (1 << 27) (0x8000000) text t140 (Passthrough T.140 Realtime Text)<br> 268435456 (1 << 28) (0x10000000) text unknown (unknown)<br> 536870912 (1 << 29) (0x20000000) text unknown (unknown)<br>
1073741824 (1 << 30) (0x40000000) (unk) unknown (unknown)<br> 2147483648 (1 << 31) (0x80000000) (unk) unknown (unknown)<br> 4294967296 (1 << 32) (0x100000000) audio g719 (ITU G.719)<br>
8589934592 (1 << 33) (0x200000000) audio speex16 (SpeeX 16khz)<br> 17179869184 (1 << 34) (0x400000000) audio unknown (unknown)<br> 34359738368 (1 << 35) (0x800000000) audio unknown (unknown)<br>
68719476736 (1 << 36) (0x1000000000) audio unknown (unknown)<br> 137438953472 (1 << 37) (0x2000000000) audio unknown (unknown)<br> 274877906944 (1 << 38) (0x4000000000) audio unknown (unknown)<br>
549755813888 (1 << 39) (0x8000000000) audio unknown (unknown)<br> 1099511627776 (1 << 40) (0x10000000000) audio unknown (unknown)<br> 2199023255552 (1 << 41) (0x20000000000) audio unknown (unknown)<br>
4398046511104 (1 << 42) (0x40000000000) audio unknown (unknown)<br> 8796093022208 (1 << 43) (0x80000000000) audio unknown (unknown)<br> 17592186044416 (1 << 44) (0x100000000000) audio unknown (unknown)<br>
35184372088832 (1 << 45) (0x200000000000) audio unknown (unknown)<br> 70368744177664 (1 << 46) (0x400000000000) audio unknown (unknown)<br> 140737488355328 (1 << 47) (0x800000000000) audio testlaw (G.711 test-law)<br>
281474976710656 (1 << 48) (0x1000000000000) video unknown (unknown)<br> 562949953421312 (1 << 49) (0x2000000000000) video unknown (unknown)<br> 1125899906842624 (1 << 50) (0x4000000000000) video unknown (unknown)<br>
2251799813685248 (1 << 51) (0x8000000000000) video unknown (unknown)<br> 4503599627370496 (1 << 52) (0x10000000000000) video unknown (unknown)<br> 9007199254740992 (1 << 53) (0x20000000000000) video unknown (unknown)<br>
18014398509481984 (1 << 54) (0x40000000000000) video unknown (unknown)<br> 36028797018963968 (1 << 55) (0x80000000000000) video unknown (unknown)<br> 72057594037927936 (1 << 56) (0x100000000000000) video unknown (unknown)<br>
144115188075855872 (1 << 57) (0x200000000000000) video unknown (unknown)<br> 288230376151711744 (1 << 58) (0x400000000000000) video unknown (unknown)<br> 576460752303423488 (1 << 59) (0x800000000000000) video unknown (unknown)<br>
1152921504606846976 (1 << 60) (0x1000000000000000) video unknown (unknown)<br>2305843009213693952 (1 << 61) (0x2000000000000000) video unknown (unknown)<br>4611686018427387904 (1 << 62) (0x4000000000000000) video unknown (unknown)<br>
</blockquote><div><br> <br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"> core show translation<br> Translation times between formats (in microseconds) for one second of data<br>
Source Format (Rows) Destination Format (Columns)<br><br> g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16 g719 speex16 testlaw<br> g723 - - - - - - - - - - - - - - - - - - -<br>
gsm - - 2 2 10001 2 1 20001 - 90001 - 10001 2 - - 70001 - 130001 2<br> ulaw - 10001 - 1 10001 2 1 20001 - 90001 - 10001 2 - - 70001 - 130001 2<br>
alaw - 10001 1 - 10001 2 1 20001 - 90001 - 10001 2 - - 70001 - 130001 2<br> g726aal2 - 20000 10001 10001 - 10001 10000 30000 - 100000 - 20000 10001 - - 80000 - 140000 10001<br>
adpcm - 10001 2 2 10001 - 1 20001 - 90001 - 10001 2 - - 70001 - 130001 2<br> slin - 10000 1 1 10000 1 - 20000 - 90000 - 10000 1 - - 70000 - 130000 1<br>
lpc10 - 20000 10001 10001 20000 10001 10000 - - 100000 - 20000 10001 - - 80000 - 140000 10001<br> g729 - - - - - - - - - - - - - - - - - - -<br>
speex - 20000 10001 10001 20000 10001 10000 30000 - - - 20000 10001 - - 80000 - 140000 10001<br> ilbc - - - - - - - - - - - - - - - - - - -<br>
g726 - 10001 2 2 10001 2 1 20001 - 90001 - - 2 - - 70001 - 130001 2<br> g722 - 20000 10001 10001 20000 10001 10000 30000 - 100000 - 20000 - - - 10000 - 70000 10001<br>
siren7 - - - - - - - - - - - - - - - - - - -<br> siren14 - - - - - - - - - - - - - - - - - - -<br>
slin16 - 170000 160001 160001 170000 160001 160000 180000 - 250000 - 170000 10000 - - - - 60000 160001<br> g719 - - - - - - - - - - - - - - - - - - -<br>
speex16 - 180000 170001 170001 180000 170001 170000 190000 - 260000 - 180000 20000 - - 10000 - - 170001<br> testlaw - 10001 2 2 10001 2 1 20001 - 90001 - 10001 2 - - 70001 - 130001 -<br>
<br></blockquote><div><br>Thank you very much for any hint on this!<br><br><br>Best regards<br>Stefan <br></div></div></div> </div><br>