[asterisk-users] Channelvariables not set in Newchannel event and DADHIChannel
Arjan Kroon | Mobillion
Arjan.Kroon at mobillion.nl
Thu Nov 22 07:58:03 CST 2012
I'd like to receive channelvariables in my AMI-events. Unfortunately this seems not to work for Newchannel- and DAHDIChannel- events caused by an Originate.
In manager.conf I putted the following line: channelvars=CHANNEL(uniqueid),AJ_TRACE_ID . Only CHANNEL(uniqueid) appears to work for every event.
This seems like a bug to me, or is there a purpose for this behaviour?
Anyway, receiving channelvariables in Newchannel- and DAHDIChannel- events would be a very useful functionality for my application.
Best regards,
Arjan Kroon
Below you'll find some information about my testcase.
Asterisk 1.8.15
settings in manager.conf
[general]
channelvars=CHANNEL(uniqueid),AJ_TRACE_ID
flow
----
1) originate with __AJ_TRACE_ID=AJ_ORIGINATE_2
2) Newchannel event received without AJ_TRACE_ID set
3) DAHDIChannel event received without AJ_TRACE_ID set
4) NewAccountCode event received and AJ_TRACE_ID is set
action: Originate
actionid: 608078545_40#AJ_ORIGINATE_2
callerid:
async: true
variable: CALLERPRES()=prohib
variable: dcoModURL=
variable: dcoCoreURL=http://localhost:8080/DijkConnectIVRWebApp/services/TestService
variable: dcoLicenseeId=39
variable: dcoApplicationReference=
variable: dcoPresentationNumber=
variable: dcoCallId=TESTMOBILLION3
variable: dcoRecordingStorageReference=
variable: dcoRedirectCallId=
variable: dcoSetupTimedOut=SETUP
variable: dcoAgentId=100
variable: dcoDestinationNumber=0031650747314
variable: __AJ_TRACE_ID=AJ_ORIGINATE_2
variable: dcoRecordingMode=
variable: dcoConnectionTimeOut=60
variable: dcoUserRole=OUTBOUND_AGENT
variable: dcoRecordingProcessingURL=
variable: dcoDialMode=AGENT
variable: dcoRingTimeOut=60
variable: dcoRecordingStorageDuration=
variable: dcoBillingReference=t=mobtest
priority: 1
exten: s
context: setup_agent
channel: DAHDI/g1/0031650747314
timeout: 130000
message : Originate successfully queued
response : Success
actionid : 608078545_40#AJ_ORIGINATE_2
Event: Newchannel
Privilege: call,all
SequenceNumber: 1877
File: channel.c
Line: 1349
Func: __ast_channel_alloc_ap
Channel: DAHDI/i1/0031650747314-3
ChannelState: 1
ChannelStateDesc: Rsrvd
CallerIDNum:
CallerIDName:
AccountCode:
Exten:
Context: incoming
Uniqueid: dijkivr04-nwg.mobillion.biz-1353083131.2
ChanVariable(DAHDI/i1/0031650747314-3): CHANNEL(uniqueid)=dijkivr04-nwg.mobillion.biz-1353083131.2
ChanVariable(DAHDI/i1/0031650747314-3): AJ_TRACE_ID=
-- above: AJ_TRACE_ID not set
Event: DAHDIChannel
Privilege: call,all
SequenceNumber: 1878
File: chan_dahdi.c
Line: 2141
Func: dahdi_ami_channel_event
Channel: DAHDI/i1/0031650747314-3
Uniqueid: dijkivr04-nwg.mobillion.biz-1353083131.2
DAHDISpan: 1
DAHDIChannel: 1
ChanVariable(DAHDI/i1/0031650747314-3): CHANNEL(uniqueid)=dijkivr04-nwg.mobillion.biz-1353083131.2
ChanVariable(DAHDI/i1/0031650747314-3): AJ_TRACE_ID=
-- above: AJ_TRACE_ID not set
action: GetVar
actionid: 608078545_41#
variable: AJ_TRACE_ID
channel: DAHDI/i1/0031650747314-3
response : Success
actionid : 608078545_41#
value : AJ_ORIGINATE_2
variable : AJ_TRACE_ID
Event: NewAccountCode
Privilege: call,all
SequenceNumber: 1900
File: cdr.c
Line: 1010
Func: ast_cdr_setaccount
Channel: DAHDI/i1/0031650747314-3
Uniqueid: dijkivr04-nwg.mobillion.biz-1353083131.2
AccountCode:
OldAccountCode:
ChanVariable(DAHDI/i1/0031650747314-3): CHANNEL(uniqueid)=dijkivr04-nwg.mobillion.biz-1353083131.2
ChanVariable(DAHDI/i1/0031650747314-3): AJ_TRACE_ID=AJ_ORIGINATE_2
-- above: AJ_TRACE_ID set
Regards,
Arjan Kroon
Mobillion BV
More information about the asterisk-users
mailing list