Doubt about cdr on asterisk

Home » Asterisk Users » Doubt about cdr on asterisk
Asterisk Users 1 Comment

I have the following situation….

I’m using Action Originate to originate a call for a costumer. Originate goes to a context that call the dial application. Before the application (Dial using the G option) to be invoked i’m setting the variable cellphone like this:

exten => s,1,Set(CDR(cellphone)=${CELLPHONE})
exten => s,n,Dial(IAX2/user:pass@otherasterisk/${CELLPHONE},30,G(secondcontext^s^1))

exten => s,1,Hangup()
exten => s,n,Playback(something)
exten => s,n,NoOp(CDR(cellphone)
exten => s,n,Hangup()

When the costumer answer the call, caller party goes to secondcontex on extension 1 and the called party goes to secondcontex on extension 2. On firstcontext (before the Dial) i can see the value of variable cellphone, but on my secondcontext (after Dial) the variable CDR(cellphone) is blank.

Is there something that i can do to pass the value after Dial application?

Luiz Gustavo Chiaretto

One thought on - Doubt about cdr on asterisk

  • Thanks for your answer Danny,

    I thought there was another solution using some cdr options.

    Best Regards.

    Luiz Gustavo Chiaretto