Sip hardphones recordings. How should I embed them?

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Sip hardphones recordings. How should I embed them?

Postby Kamui » Sat Dec 13, 2014 4:09 am

Hello everyone.

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;
Kamui
 
Posts: 11
Joined: Fri Jun 13, 2014 4:40 pm

Re: Sip hardphones recordings. How should I embed them?

Postby Kamui » Sat Dec 13, 2014 10:34 am

Silly me. 2nd problem also solved. Thanks myself for helping me.
Just replaced $accountcode with $callerid for the inbound calls

Code: Select all
if ($record_call =~ /Y/)
   {
   if ($log_call =~ /Y/)
   {
      $filename = "$filedate$US$callerid$US$extension$US".'IN';
   }
   else
   {
      $filename = "$filedate$US$accountcode$US$extension$US".'OUT';
   }
Kamui
 
Posts: 11
Joined: Fri Jun 13, 2014 4:40 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 60 guests