[asterisk-users] Codec preference

Prince Singh prince at drishti-soft.com
Fri Mar 12 00:17:29 CST 2010


Post your Asterisk's sip.conf

On Thu, Mar 11, 2010 at 10:39 PM, jonas kellens <jonas.kellens at telenet.be>wrote:

>  How can I set the prefered codec between 2 calling parties ??
>
> My Grandstream supports *G729, alaw and gsm*... in this order.
> The Zoiper softphone has *alaw and gsm* as codecs... in that order.
>
> Although there should be a matching codec found, my Grandstream can not
> call the Zoiper softphone.
>
> CLI shows :
>
> [Mar 11 17:47:21] WARNING[22367]: channel.c:3340
> ast_channel_make_compatible: No path to translate from
> SIP/mygrandstream-09c599e0(2) to SIP/zoiper-09cd57f8(256)
> [Mar 11 17:47:21]     -- Got SIP response 415 "Unsupported Media Type" back
> from 192.168.1.106 (<-- zoiper)
>
> SIP debug :
>
> [Mar 11 17:55:57] Peer audio RTP is at port 192.168.1.101:10110 (<-- the
> Grandstream)
> [Mar 11 17:55:57] Found audio description format PCMA for ID 8
> [Mar 11 17:55:57] Found audio description format GSM for ID 3
> [Mar 11 17:55:57] Found audio description format PCMU for ID 0
> [Mar 11 17:55:57] Found audio description format G729 for ID 18
> [Mar 11 17:55:57] Found audio description format telephone-event for ID 101
> [Mar 11 17:55:57] Capabilities: us - 0x10a (gsm|alaw|g729), peer -
> audio=0x10e (gsm|ulaw|alaw|g729)/video=0x0 (nothing), combined - 0x10a
> (gsm|alaw|g729)
> [Mar 11 17:55:57] Non-codec capabilities (dtmf): us - 0x1
> (telephone-event), peer - 0x1 (telephone-event), combined - 0x1
> (telephone-event)
> ...
> [Mar 11 17:55:57] Audio is at 192.168.1.150 port 11586 (<-- my Asterisk)
> [Mar 11 17:55:57] Adding codec 0x100 (g729) to SDP
> [Mar 11 17:55:57] Adding non-codec 0x1 (telephone-event) to SDP
>
> This is what Asterisk sends to the Zoiper in the INVITE (sdp) :
>
> Content-Type: application/sdp
> Content-Length: 263
> v=0
> o=root 3208 3208 IN IP4 192.168.1.150
> s=session
> c=IN IP4 192.168.1.150
> t=0 0
> m=audio 11586 RTP/AVP 18 101
> a=rtpmap:18 G729/8000
>
> Why isn't Asterisk negotiating with the Zoiper for the alaw-codec ??
>
> The sip-configuration (realtime MySQL) for the Grandstream is :
>
> allow : *g729;alaw;gsm*
>
> and the Zoiper softphone :
>
> allow : *alaw;gsm;g729*
>
>
> Kind regards,
>
> Jonas.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Regards,
Prince Singh

Drishti-Soft Solutions Pvt Ltd
62-A, First Floor,
Maruti Industrial Area,
Sector - 18, Gurgaon - 122016
Haryana, India.

P: 91 124 4771000
F: 91 124 4039120
W: http://www.drishti-soft.com
B: http://blog.drishti-soft.com
----
DISCLAIMER

This message may contain confidential, proprietary or legally Privileged
information. In case you are not the original intended Recipient of the
message, you must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message and you are requested to delete it
and inform the sender.
Any views expressed in this message are those of the individual sender
unless otherwise stated. Nothing contained in this message shall be
construed as an offer or acceptance of any offer by Drishti-Soft Solutions
Pvt Ltd ("Drishti") unless sent with that express intent and with due
authority of Drishti.
Drishti has taken enough precautions to prevent the spread of viruses.
However the company accepts no liability for any damage caused by any virus
transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100312/362c06d3/attachment.htm 


More information about the asterisk-users mailing list