-
#6116 |
Hello!
I wonder if any of you can point me in the right direction. there are 2 variables I use in my dial plans pretty often. first the callerID (I retrieve it using a set box with ${CALLERID(num)}
second is the destination number or the number the caller called to access the IVR, so far I set that manually in the context. but I think there must be a way to set it up variably like I do with callerid.I tried ${CDR(Destination)} but it doesn’t work. as a channel variable. any idea how it should be done? thank you!!!
this is what the help says:
Cdr
Get or set CDR data
This function could be used to get or set CDR data. The function is located under the Call group.
Note:
This function may be used to read and write data, however most of the pre-defined values are read-only. In more detail, all the types listed below are read-only, except for Account code, User field and AMA flags. You may also create your own variable and store it in the cdr record.Type
Type may be one of the following: * Caller ID * Source * Destination * Destination context * Channel name * Destination channel * Last app executed * Last app’s arguments * Start time – Time the call started * Answer time – Time the call was answered * End time – Time the call ended * Duration – Duration of the call * Duration after answer – Duration of the call once it was answered * Disposition – Answer, No answer, Busy * AMA flags – Documentation, Bill, Ignore etc. * Account code – The channel’s account code * Channel unique id – The channel’s unique id * User field – The channel’s user specified field or any custom value that you wish to store#6117 |> second is the destination number or the number the caller called to access the IVR, so far I set that manually in the context.
Isn’t it “exten” variable, set by default by Asterisk?
Check this out:
https://wiki.asterisk.org/wiki/display/AST/Using+the+CONTEXT ,+EXTEN,+PRIORITY,+UNIQUEID,+and+CHANNEL+VariablesJust my 2c
— Mike
-
This reply was modified 10 years, 2 months ago by
Migrated from old forum.
-
This reply was modified 10 years, 2 months ago by
You must be logged in to reply to this topic.