[asterisk-bugs] [JIRA] (ASTERISK-24267) Queue variables not passed to local channel

Mitch Claborn (JIRA) noreply at issues.asterisk.org
Wed Sep 17 12:28:29 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mitch Claborn updated ASTERISK-24267:
-------------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

I realize that I sent a truncated version of the dialplan earlier.  A more complete version is below.  The DumpChan() application doesn't show the queue variables in either version (which is strange, because I thought I saw it there before, but I must be mistaken.)

It is the use of the MEMBERINTERFACE and MEMBERNAME variables that is causing me grief.

I've attached the v11 and v12 logs.

In v11 I see
{noformat}
DEBUG[2588][C-00000000] pbx.c: Result of 'MEMBERINTERFACE' is 'SIP/mlcm800'
{noformat}

but v12 shows
{noformat}
DEBUG[9676][C-0000000a] pbx.c: Result of 'MEMBERINTERFACE' is NULL
{noformat}

Updated dial plan
{noformat}
[callmenow]
exten => s,1,NoOp(callmenow: Queue without answer)
  same =>n,Queue(sales,Rtc)
  
[dial-to-customer]
exten => s,1,NoOp(dial-to-customer channel=${CHANNEL(name)})
  same =>n,Set(ODBC_CALLMENOW_PICKED_UP(${MMCALLMENOWID})=fred)
  same =>n,Wait(1)
  same =>n,Playback(custom/callmenow-announce)
  same =>n,GoSub(sub-outbound_caller_id,start,1)
  same =>n,Set(MMCUSTOMER_NUMBER=${ODBC_CALLMENOW_GET_NUMBER(${MMCALLMENOWID})})
  same =>n,Set(__CALLMENOW_ID=${MMCALLMENOWID})
  same =>n,Set(__CALLMENOW_NUMBER=${MMCUSTOMER_NUMBER})
  same =>n,Set(__CALLMENOW_MEMBERINTERFACE=${MEMBERINTERFACE})
  same =>n,Set(__CALLMENOW_MEMBERNAME=${MEMBERNAME})
{noformat}


> Queue variables not passed to local channel
> -------------------------------------------
>
>                 Key: ASTERISK-24267
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24267
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 12.5.0
>         Environment: Ubuntu 12.04 64 bit
> Asterisk 12.5 compiled from source
>            Reporter: Mitch Claborn
>            Assignee: Mitch Claborn
>         Attachments: v11.log, v12.log
>
>
> Various queue related variables are not being passed to the local channel when invoked from an AMI action.  This worked fine in 11.1.  I've tried the local channel with and without the /n flag.
> None of the following variables are present:
> QUEUESRVLEVELPERF
> QUEUESRVLEVEL
> QUEUEABANDONED
> QUEUECOMPLETED
> QUEUETALKTIME
> QUEUEHOLDTIME
> QUEUECALLS
> QUEUESTRATEGY
> QUEUEMAX
> QUEUENAME
> QEORIGINALPOS
> QEHOLDTIME
> MEMBERREALTIME
> MEMBERDYNAMIC
> MEMBERPENALTY
> MEMBERLASTCALL
> MEMBERCALLS
> MEMBERNAME
> MEMBERINTERFACE
> queue definition:
> {noformat}
> [StandardQueue](!) 
> musicclass=default 
> strategy=leastrecent 
> joinempty=no 
> leavewhenempty=yes 
> ringinuse=no 
> announce-frequency = 30
> min-announce-frequency = 15
> announce-holdtime = yes|no|once
> announce-position = limit
> announce-position-limit = 5
> announce-round-seconds = 10
> setinterfacevar = yes 
> setqueueentryvar = yes 
> setqueuevar = yes 
> wrapuptime=2 
> timeout = 16 
> autopause=yes  
> ;autopausedelay=30 
> autopausebusy=yes 
> autopauseunavail=yes
> reportholdtime=no 
> [sales](StandardQueue)
> {noformat}
> dial plan:
> {noformat}
> [callmenow]
> exten => s,1,NoOp(callmenow: Queue without answer)
>   same =>n,Queue(sales,Rtc)
>   
> [dial-to-customer]
> exten => s,1,NoOp(dial-to-customer channel=${CHANNEL(name)})
> 	same =>n,DumpChan()
> {noformat}
> AMI action
> {noformat}
> Action: Originate
> Channel: Local/s at callmenow/n
> Context: dial-to-customer
> Exten: s
> Priority: 1
> Async: true
> Variable: MMCALLMENOWID=107
> Timeout: 999999 
> Callerid: Call Me Now <778>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list