[asterisk-dev] why does Dial() not inhert the language setting to the outgoing channel?

Russell Bryant russell at digium.com
Tue Nov 10 14:00:43 CST 2009


Klaus Darilion wrote:
> 
> Russell Bryant schrieb:
>> Klaus Darilion wrote:
>>> When Dial() sets up a new outgoing channel, the language setting of the 
>>> incoming channel is not copied to the outgoing channel (at least with 
>>> 1.6.1.9).
>>>
>>> Is there a specific reason for this? To me this looks like a bug.
>> Is the caller's language a direct indicator of the callee's language?
> 
> No, but probably in most cases caller and callee should speak a common 
> language :-)

Well, they may speak a common language but prefer a different language
when given the option.

>> I
>> don't think it is, and that's why the code behaves this way.  There is
>> an argument to be made for each method being default behavior, but I
>> think having it _not_ inherited makes more sense.
>>
>> For known devices, the callee language is set in the device
>> configuration.  In other cases, if an admin would like to make this
>> behavior the default, I would recommend doing it by running a macro on
>> the callee's channel. 
> 
> IMO that's a bit cumbersome, but would work.

Agreed, but it's the best way I can think of using what is already there.

>  >  We should document this ... somewhere.
> 
> Yes. What about adding it as a note to the Dial() application?

That sounds like a good idea to me.

-- 
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list