[asterisk-users] No compatible codecs, not accepting this offer!

Francesco Namuri f.namuri at credires.it
Wed Jan 15 03:39:02 CST 2014


Il 15/01/2014 10.09, James Sharp ha scritto:
> On 1/15/2014 3:59 AM, Francesco Namuri wrote:
>> Hello,
>> I'm having this issue on my pbx, it appears that asterisk is refusing
>> the codecs that my providers is proposing.
>> My trunk configuration is:
>>
>
> Pretty simple -
>
>
>> ---
>> username=5x5x7x9x0x3
>> type=friend
>> secret=CRcxn7sqwm
>> qualify=yes
>> port=5060
>> insecure=port,invite
>> host=sip.txtxlxoxp.it
>> fromuser=5x5x7x9x0x3
>> fromdomain=sip.txtxlxoxp.it
>> disallow=all
>> context=from-trunk
>> allow=alaw
>
> Here you're disallowing all codecs except alaw.
>
>> ---
>>
>> A typical invite from my provider is:
>>
>> <--- SIP read from UDP:xx.yy.xx.yy:5060 ---> INVITE
>> sip:5x5x7x9x0x3 at 192.168.1.168:5060 SIP/2.0
>> Via: SIP/2.0/UDP
>> xx.yy.xx.yy:5060;branch=z9hG4bKt5sfh7nrvok3d5gqc3ritdv7b7
>> From: <sip:3x8x6x3x3x at 10.39.1.19;user=phone>;tag=SDdgce901-90915
>> To: "SIPLineUser SIPLineUser"<sip:5x5x7x9x0x3 at sip.txtxlxoxp.it>
>> Call-ID: SDdgce901-9cb68ba025684f03a4094ed71e6e04f8-ao92gd1
>> CSeq: 59458 INVITE
>> Content-Type: application/sdp
>> Contact: <sip:3x8x6x3x3x at xx.yy.xx.yy:5060;user=phone;transport=udp>
>> User-Agent: Nortel SESM 14.1.0.12
>> Max-Forwards: 19
>> Supported:
>> com.nortelnetworks.firewall,p-3rdpartycontrol,nosec,join,x-nortel-sipvc,gin,com.nortelnetworks.im.encryption,replaces,100rel
>> Remote-Party-ID:
>> <sip:3x8x6x3x3x at sip.txtxlxoxp.it;user=phone>;screen=yes;screen-ind=0;party=calling;counter=0;npi=NPI_E164;ton=TON_NATIONAL
>> P-Asserted-Identity: <sip:3x8x6x3x3x at 10.39.1.19;user=phone>
>> Allow: UPDATE,REFER
>> Content-Length: 293
>>
>> v=0
>> o=- 0 138163748 IN IP4 xx.yy.xx.yy
>> s=IMSS
>> e=unknown at invalid.net
>> c=IN IP4 xx.yy.xx.yy
>> t=0 0
>> m=audio 43718 RTP/AVP 8 18 3 101
>> a=fmtp:18 annexb=no
>> a=rtpmap:18 G729/8000
>> a=rtpmap:3 GSM/8000/1
>
> But....provider will only send GSM or G729.
>
> So either you need to talk your provider into sending alaw or you need
> change your allow line to "allow=alaw,gsm"

Hello James,
thanks for your answer, I supposed this too, but my provider answered me
that as
m=audio 43718 RTP/AVP 8 18 3 101
                                             ^  ^  ^---- GSM proposal
                                             ^  ^------- G729 proposal
                                             ^---------- aLaw proposal

And that
a=rtpmap:18 G729/8000  proposed as media conversion
a=rtpmap:3 GSM/8000/1  because the call is made by a mobile

-- 
Credires S.r.l.

Sede Legale: Strada Prov.le Francesca, 387/A - 56020
	Santa Maria a Monte (PI) - Italia
Sede Operativa (indirizzo postale): Via Don Luigi Sturzo, 4 - 56025
	Pontedera (PI) - Italia

Tel. +390587467700 - Fax +390587467600
info at credires.it - www.credires.it

N. Registro Imprese Pisa / C.F. / P.iva 00935320507
Num. REA PI/89170
Capitale Sociale Int. Vers. € 99.900,00


Le informazioni contenute in questo messaggio di posta
elettronica e/o nel/i file/s allegato/i, sono da considerarsi
strettamente riservate. Il loro utilizzo e' consentito
esclusivamente al destinatario del messaggio, per le finalita'
indicate nel messaggio stesso. Qualora riceveste questo
messaggio senza esserne il destinatario, Vi preghiamo
cortesemente di darcene notizia via e-mail all'indirizzo
info at credires.it o telefonicamente allo +390587467700 e
procedere alla distruzione del messaggio stesso, cancellandolo
dal Vostro sistema; costituisce comportamento contrario ai
principi dettati dal Dlgs 196/2003 il trattenere il messaggio
stesso, divulgarlo anche in parte, distribuirlo ad altri
soggetti, copiarlo, od utilizzarlo per finalit&agrave, diverse.

This message and any attachments are solely for the intended
recipient and may contain confidential or privileged
information. Its use is allowed only to the intended recipient,
for the purpose indicated in the message itself. If you are
not the intended recipient, please notify us by email to
info at credires.it or by phone to +390587467700 and
permanently delete this message and any attachments in
your system. Keeping, disclosure also in part, distribution
to other recipients, copying of the information	included in
this message and any attachments or using this information
for different purposes is prohibited as per regulation
Dlgs 196/2003.




More information about the asterisk-users mailing list