i have edited my extension table in mySQL to record all calls by mix monitor on a particular extension (in my case 03111308308). when this extension is called, the call should get recorded. but it is not working. I am sharing mySQL statement which i used to insert into extensions table.
insert into extensions(id,context,exten,priority,app,appdata) values (9,‘my-sip’,‘03111308308’,1,‘Dial’,‘SIP/${EXTEN},30,Ttr’),(10,‘my-sip’,‘03111308308’,2,‘MixMonitor’,’${recording}.wav, b’);
The priority dictates the order in which it is executed, in your logic you have it doing a Dial first and then executing MixMonitor. Dial blocks if the call is answered and will stop afterwards, so MixMonitor is never executed. You need to swap the order.
how do you do that? Please excuse me i am new to asterisk. I used to write similar statement before and two files gets produced. one for the IVR and other was actual call recording.
If you don’t know how to set a dialplan variable you are missing fundamental dialplan logic knowledge, which will hurt you if you need to do anything further including figuring out why things don’t work (such as this). I would HIGHLY suggest you read documentation online such as the Asterisk book or else you will run into problems in the future and be at a loss as to what to do.