[Asterisk-Users] allowing/disallowing codecs in dialplan?
Kannaiyan Natesan
nkans at speak2world.com
Mon Sep 13 12:42:38 MST 2004
You said what is possible and in exists.
Can you try with the settings what you have mentioned.
-Kannaiyan
----- Original Message -----
From: "Andreas Greulich" <andreas.greulich at spl.ch>
To: "Asterisk-Users" <asterisk-users at lists.digium.com>
Cc: "Greulich, Andreas" <dust at triton.ch>
Sent: Monday, September 13, 2004 8:35 PM
Subject: [Asterisk-Users] allowing/disallowing codecs in dialplan?
Hi all,
Is there a possibility to set the codecs Asterisk will choose in the
dialplan
("exten=>" statements or their contexts) instead of sip.conf?
My problem is that I connect my SIP phone with several providers (Nikotel,
Sipgate, Stanaphone) for icoming and outgoing calls. Not all of these
providers
offer the same set of codecs. I'd like Asterisk to use the same codec for
the
provider side as well as of the device side, to prevent codec translation.
Unfortunately, Asterisk seems to negotiate the codec for the device and for
the
peer independently, so it often happens it sets them differently.
I could of course just allow ulaw, bit I'd like to use ilbc where possible
(less
dropouts). So, I'd like to configure Asterisk in a way that, depending on
what
extension is chosen, it negotiates another codec with the phone. Of course I
considered setting the allow statements in the sections of sip.conf. But it
seems these settings are only considered on incoming calls, but not on
outgoing
calls (initiated by a Dial application with the sip.conf section as its
argument).
So, when I have something like
[general]
disallow=all
allow=alaw
allow=ulaw
allow=ilbc
[SipgateAccount]
type=friend
...
disallow=all
allow=ilbc
then these settings are only considered when I get an incoming call, but not
when I make an outgoing call using
"exten=>...,Dial/SIP/${EXTEN}@SipgateAccount,60,)"
Thanks in advance, Andy
--
Andreas Greulich
E-Mail: andreas.greulich at spl.ch
Skype: klaymen-neverhood
Sermo datur cunctis, animi sapientia paucis.
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list