Get Called Number

myno=1 /* here i am setting global value to 1 */

exten=>123,1,Set(GLOBAL(myno)=${CALLERID(num)}) /* storing caller number to myno */

exten => s,1,NoOp(${myno})

I set the value of global variable ‘myno’ to CALLERID(num) in TEST.
Now I want to access this value in NEWTEST but i am getting value 1 in NEWTEST. How to access value of myno in NEWTEST which is set in TEST?

Please always works well on a forum, where people offer their time to help someone else… :smile:

By writing the cdr’s to a database, you have what you want.

Google for it and you will find a lot of info.

Here is a start: … -in-mysql/