We dial 2 numbers at same time through below command and want to keep separate call recording for both the calls along with telco announcement.
Can anyone help me should I go with local channel if yes then what would be the syntax to dial 2 numbers twice
Yes you can ambiorixg12. Only thing is to ensure you use unique name in MIXMONITOR for those 2 calls.
As only 1 of the 2 calls gets connected, you’ll have one recording with (telco message if any + call conversation) and other with only telco message
thanks to all you gusy, i think the best way I should try this once and if same will work then it will be good for all of us…so I will try this in next couple of hours and will update you guys too.
exten => 6465429,1,Answer()
same =>n,Dial(local/8872674098@ibmobcallrecoring&local/7848527571@ibmobcallrecoring)
same =>n,Hangup()
[ibmobcallrecoring]
exten => _XXXXXXXXXX,1,NoOp(callstarted)
same =>n,Set(PATH=/home/IBDualCallRecordingsTest/)
same =>n,Set(CALLFILENAME={PATH}/{UNIQUEID}-{STRFTIME({EPOCH},%Y%m%d-%H%M%S)}-{EXTEN})
same =>n,MixMonitor({CALLFILENAME}.wav)
same =>n,Dial(DAHDI/g0/${EXTEN},To)
same =>n,Hangup()
above code is working for me great thanks to you Satish and other guys in forum …I can get the call recording of both the numbers now Answered call’s recording is with telco+conversation and unanswered call’s is with telco message which solve my purpose
Also local channel is the only possible way to fulfill my requirement?
I have never tried myself but see if you can place MixMonitor in a context specified by option b of Dial application.
b( context^exten^priority ) - Before initiating an outgoing call, Gosub to the specified location using the newly created channel. The Gosub will be executed for each destination channel.
context
exten
priority( params )
arg1[^arg1...]
argN
same =>n,Dial(local/8872674098@ibmobcallrecoring&local/7848527571,20,D(1)@ibmobcallrecoring)
in above way i dial my call through local channel and in local channel below code is written
same =>n,Dial(DAHDI/g0/${EXTEN},To)
what should be the dial dial pattern for Dial function in [ibmobcallrecoring] any suggestion