Hi
say that there is a call and working into a context .
i want to add some rules inside the dial plan to extract some asterisk variables like CID , DID to external file .
say there was a call .
i want to do like echo $CID or echo $DID >> /root/something.txt
i searched for many functions on asterisk but didn’t know how to start .
i did find some function that can take variable outside from asterisk into asterisk
but not from asterisk to outside
as example exten => 3333,1,Set(result=${shell(/root/test.sh)})
exten => 3333,2,Verbose(result is: ${result})
this run bash from outside and get variable inside the context .
but what i need is that , i want to extract some parameters say like DID , CID & destination # being called to a file in the path /root/something
say an incoming call from 111111 with DID 2222hit my system ,
next call was from 333333 dialing my DID 2222 , i want to add other line like 33333,222
and so on …
i want to have in the file /root/something the contents like
111111 , 2222
3333,222
any help would be very thankful
thank you