[asterisk-bugs] [Asterisk 0012489]: Queue language is not inherited or available to answering interface

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 26 18:28:54 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12489 
====================================================================== 
Reported By:                bcnit
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12489
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0-beta7.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             04-22-2008 03:57 CDT
Last Modified:              06-26-2008 18:28 CDT
====================================================================== 
Summary:                    Queue language is not inherited or available to
answering interface
Description: 
The problem is that when an interface answers a call from a queue, the
language used to play the 'announce' message to the callee is the default
language for that interface and not the language defined in the channel
which placed the call into the queue.

This is not the case for the A() parameter in the Dial() application,
which plays the file in the language of the source and not the destination
interface.

So if a call has the language set as 'fr' and is placed into the queue
with 'Queue(one,,calltype)', for example, all the announcements to the
caller are made in the 'fr' language, but when the language of the
interface answering the call is 'en', they hear 'en/calltype' and not
'fr/calltype'.

I see three ways around this problem. One of which I can probably hack
together myself and two which I probably can't.

The first is to create a variable 'QUEUELANGUAGE' when 'setqueuevar' is
'yes' and then have a macro/subroutine use this variable set the language
on the answering channel as appropriate.

The second would be to have some way of selectively inheriting the
language from the calling channel. This one I have no idea how to
implement!!

The third would be to duplicate the behaviour of the A() parameter of the
Dial() application and use the language from the caller's channel to play
the announcement.

I don't want to do anything without discussing this with everybody first,
but I've just found a different bug which may make the first option even
easier for me!

So, what's the best way forward?
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-26-08 18:28  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 125648

_U  branches/1.6.0/

------------------------------------------------------------------------
r125648 | mmichelson | 2008-06-26 18:28:53 -0500 (Thu, 26 Jun 2008) | 23
lines

Blocked revisions 125647 via svnmerge

........
r125647 | mmichelson | 2008-06-26 18:35:29 -0500 (Thu, 26 Jun 2008) | 16
lines

Improve consistency between app_dial and app_queue with regards
to how language is handled between two channels whose native
language is different. Prior to this patch, app_dial would have
the callee inherit the caller's language, and app_queue would not.

After this patch, app_dial no longer has the language inheritance
capability. This seems to make the most sense since it seems more
natural for a person to hear files played back in his/her native
language instead of the language of the person on the far end of
the call. See the CHANGES file for hints on how to keep the 
previous behavior of app_dial if desired.

(closes issue http://bugs.digium.com/view.php?id=12489)
Reported by: bcnit


........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=125648 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-26-08 18:28  svnbot         Checkin                                      
06-26-08 18:28  svnbot         Note Added: 0089330                          
======================================================================




More information about the asterisk-bugs mailing list