RE : [Asterisk-Users] codecs order and so on
Just have a lok at this config : [general] Disallow=all Allow=g729 Allow=ulaw [pstn] Disallow=all Allow=g729 [zap] Disallow=all Allow=ulaw In extensions.conf, I change the context for each call, Asterisk doesn't care of codecs in contexts, it uses the order of general... Could be good to have Ssterisk making a match between codecs in General and the context used to make a call But definitiely, Asterisk choose g729 even if I am in the zap context Any idea, help is welcome. Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Moises Silva Envoyé : mardi 10 janvier 2006 22:51 À : Asterisk Users Mailing List - Non-Commercial Discussion Objet : Re: [Asterisk-Users] codecs order and so on Doing in the console show translation i can see that it seems not be possible to translate from any to g729 codec, or from g729 to any. So, let me try to find a reason for this. When you have first allow=g729 (preferred codec) all the calls to pstn providers work because the phones and asterisk agree to use g729, so no codec translation is done. all the calls to and from fxo fails because no translation can be made from ULAW to g729, and from g729 (phones) to ulaw. then asterisk is not smart enough to realize that can ask the phones to use ulaw (i assume the phones support ulaw) to not use translation to call the fxo??? When you have first allow=ulaw (prefered codec) all the calls to and from fxo works because the prefered codec is ulaw, then from fxo to phones using ulaw, no codec translation is made all the calls to pstn providers fails, again, because it seems asterisk gives preference to ulaw codec (the first list codec) so, the phones use ulaw, and is not possible to translate ulaw to g729 and viceversa?? im interested in knowing the reason too, any guidelines? regards On 1/10/06, Olivier Taylor [EMAIL PROTECTED] wrote: The problem : an asterisk box with 2 fxo First fxo just receive calls from pstn (ulaw) Second fxo receive and send call to mobile network thru a sipbox(ulaw) Calls to pstn are sent to a pstn provider accepting only g729 Internal calls doesn't care of codecs All Uas have g729 (g729 is then pass-thru when needed) All Uas have ulaw(of course) If I have in [general] disallow=all allow=g729 allow=ulaw In this case: all calls to pstn providers works all calls to and from fxo fails because of : No translator path exists for If I have in [general] disallow= all allow= ulaw allow= g729 In this case: all calls to and from fxo works all calls to pstn providers fails because of : No translator path exists for ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org; ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] codecs order and so on
Title: Message The problem : an asterisk box with 2 fxo First fxo just receive calls from pstn (ulaw) Second fxo receive and send call to mobile network thru a sipbox(ulaw) Calls to pstn are sent to a pstn provider accepting only g729 Internal calls doesn't care of codecs All Uas have g729 (g729 is then pass-thru when needed) All Uas have ulaw(of course) If I have in [general] disallow=all allow=g729 allow=ulaw In this case: all calls to pstn providers works all calls to and from fxo fails because of : No translator path exists for If I have in [general] disallow=all allow=ulaw allow=g729 In this case: all calls to and from fxo works all calls to pstn providers fails because of : No translator path exists for ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] codecs order and so on
Doing in the console show translation i can see that it seems not be possible to translate from any to g729 codec, or from g729 to any. So, let me try to find a reason for this. When you have first allow=g729 (preferred codec) all the calls to pstn providers work because the phones and asterisk agree to use g729, so no codec translation is done. all the calls to and from fxo fails because no translation can be made from ULAW to g729, and from g729 (phones) to ulaw. then asterisk is not smart enough to realize that can ask the phones to use ulaw (i assume the phones support ulaw) to not use translation to call the fxo??? When you have first allow=ulaw (prefered codec) all the calls to and from fxo works because the prefered codec is ulaw, then from fxo to phones using ulaw, no codec translation is made all the calls to pstn providers fails, again, because it seems asterisk gives preference to ulaw codec (the first list codec) so, the phones use ulaw, and is not possible to translate ulaw to g729 and viceversa?? im interested in knowing the reason too, any guidelines? regards On 1/10/06, Olivier Taylor [EMAIL PROTECTED] wrote: The problem : an asterisk box with 2 fxo First fxo just receive calls from pstn (ulaw) Second fxo receive and send call to mobile network thru a sipbox(ulaw) Calls to pstn are sent to a pstn provider accepting only g729 Internal calls doesn't care of codecs All Uas have g729 (g729 is then pass-thru when needed) All Uas have ulaw(of course) If I have in [general] disallow=all allow=g729 allow=ulaw In this case: all calls to pstn providers works all calls to and from fxo fails because of : No translator path exists for If I have in [general] disallow= all allow= ulaw allow= g729 In this case: all calls to and from fxo works all calls to pstn providers fails because of : No translator path exists for ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org; ___ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users