Get Called Number

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

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

[NEWTEST]
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: sysbrain.wordpress.com/2009/11/2 … -in-mysql/