[asterisk-users] dialplan help

Michiel van Baak michiel at vanbaak.info
Wed Aug 30 07:55:33 MST 2006


On 14:23, Wed 30 Aug 06, vivek at staff.ownmail.com wrote:
> Dear friends,
>   Does anyone know how do i convert hex to int in the dialplan. I want to do this:-
> Take the sip call-id in hex, use CUT to extract the first part , and convert it to an int. But the math function ony takes arguments as int. Can anyone suggest how to do that?
> eg:- 
> exten => _X.,n,Set(sipcid = ${CUT(SIPCALLID,-,1)})  ---> evaluates to E305CEC5
> I want this hex value in int. But i cant think of a clean solution. 
> Please help.
> 

Use a simple agi script that does this for you.

-- 
Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list