CUT as Asterisk 1.4

Joined: Fri 23 of Apr, 2010

CUT as Asterisk 1.4

Posted:Thu 31 of Mar, 2011 (13:52 UTC)
Hello guys,

I need a big help of expertises!

I need to set an variable that contains only the channel of call.

To do this in Asterisk 1.2 I used the CUT cmd like this:

Set, account=${CHANNEL:4};
Set, account=${CUT(account|-|1)};
Set, CDR(account)=${account};

But now in Asterisk 1.4 CUT cmd does not support variables.

Can anyone help me how can I do this now? This info is very important to me!