Displaying 2 results from an estimated 2 matches for "odbc_operatorid_from_address".
2012 Oct 18
0
Setting CDR fields in "connected" macro of Queue command
...queue_answered is not.
What am I missing?
Asterisk 1.8.10.1~dfsg-1ubuntu1
same =>n,Queue(sales,tc,,,,,QueueConnected)
[macro-QueueConnected]
; this runs on the agent/member's channel
exten =>s,1,NoOp()
same =>n,Set(CDR(salesqueue_answered)=1)
same
=>n,Set(OPERATORID=${ODBC_OPERATORID_FROM_ADDRESS(${MEMBERINTERFACE})})
; userfield is mapped to operatorid in cdr_adaptive_odbc because
setting operatorid directly doesn't work here
same =>n,Set(CDR(userfield)=${OPERATORID})
--
Mitch
2013 Aug 02
1
Dial application "b" subroutine arguments not passing?
...t;n,GoSub(sub-outbound_caller_id,start,1)
same
=>n,Dial(${TOLL}/${MMCUSTOMER_NUMBER},,*b(dial-to-customer-sub,s,1,${MMCUSTOMER_NUMBER},${MEMBERINTERFACE},${MEMBERNAME})*)
[dial-to-customer-sub]
; this runs on the customer's channel
exten =>s,1,NoOp()
same =>n,Set(OPERATORID=${ODBC_OPERATORID_FROM_ADDRESS(${ARG2})})
same =>n,Verbose(2, dial-to-customer-sub interface ${ARG2} name
${ARG3} customer number ${ARG1} operatoriod ${OPERATORID} channel name
${CHANNEL(name)} unique ID ${CHANNEL(uniqueid)} )
same =>n,Return()
The whole thing is kicked off by an AMI request:
Action: Originate
Cha...