Today I want to ask about how to solve some problems using had phones or maybe suggest me a proper way to embed them on my Goautodial 3.0.
I made the same questions at goautodial forums but I think theses forums are more lively. So let's start....
I have 2 sip phones (hardphones) connected to the network and I want also to record every in/outbound calls made from/to them.
I already created "phones" and registered them but the problem is that
1) I want to specify with call is IN or OUT in the filename
2) I don't get who called me (inbound calls) on the filename. I just get noting instead ( 20141213140242__1003-all.wav and should be 20141213140242_<incoming caller ID>_1003-all)
Is there any proper way to find info about these calls because when i use goautodial's "search recordings" feature I get nothing about the hardphone calls.
I'm using this (thanks strikerx btw)
- Code: Select all
[hardphones]
exten => _XXXX.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y---N)
exten => _XXXX.,n,Goto(default,55${EXTEN},1)
exten => _XXXX.,n,Hangup
[hardphones-inbound]
exten => 1001,1,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y---N)
exten => 1001,n,Goto(vicidial-auto,1001,1)
exten => 1001,n,Hangup
I also solved my 1st problem by applying a simple change inside the agi-NVA_recording.agi. I use the call_log value, that is Y on incoming calls, and I add IN or OUT at the file name.
- Code: Select all
### if set to record this call, start recording ###
if ($record_call =~ /Y/)
{
if ($log_call =~ /Y/)
{
$filename = "$filedate$US$accountcode$US$extension$US".'IN';
}
else
{
$filename = "$filedate$US$accountcode$US$extension$US".'OUT';
}
$filename =~ s/\"|\'//gi;