Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 4:01 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Problem recording call
PostPosted: Thu Sep 02, 2010 4:05 pm 
Offline

Joined: Wed Jul 07, 2010 3:26 pm
Posts: 8
I have a2billing 1.7.1 working with asterisk 1.6.2.6 and everything seems to be working fine.

But when I set record_call = yes and make a call I get the following error:

<SIP/voiptrunk-0000005e>AGI Rx << EXEC MixMonitor 1283440306.94.gsm|b
-- AGI Script Executing Application: (MixMonitor) Options: (1283440306.94.gsm|b)
[Sep 2 11:12:26] WARNING[7878]: pbx.c:1344 pbx_exec: The application delimiter is now the comma, not the pipe. Did you forget to convert your dialplan? (MixMonitor(1283440306.94.gsm|b))
<SIP/voiptrunk-0000005e>AGI Tx >> 200 result=0
== Begin MixMonitor Recording SIP/voiptrunk-0000005e
<SIP/voiptrunk-0000005e>AGI Rx << EXEC DIAL SIP/voiptrunk/1xxxxxxxxxx,60,HRrL(2479000:61000:30000)
-- AGI Script Executing Application: (DIAL) Options: (SIP/voiptrunk/1xxxxxxxxxx,60,HRrL(2479000:61000:30000))
-- Limit Data for this call:
== Using SIP RTP CoS mark 5
-- Called voiptrunk/1xxxxxxxxxx
[Sep 2 11:12:26] WARNING[7885]: file.c:1160 ast_writefile: No such format 'gsm|b'
[Sep 2 11:12:26] ERROR[7885]: app_mixmonitor.c:322 mixmonitor_thread: Cannot open /var/spool/asterisk/monitor/1283440306.94.gsm|b
-- SIP/voiptrunk-0000005f is making progress passing it to SIP/voiptrunk-0000005e
-- SIP/voiptrunk-0000005f answered SIP/voiptrunk-0000005e
<SIP/voiptrunk-0000005e>AGI Tx >> 200 result=-1
<SIP/voiptrunk-0000005e>AGI Rx << EXEC StopMixMonitor
-- AGI Script Executing Application: (StopMixMonitor) Options: ()
<SIP/voiptrunk-0000005e>AGI Tx >> 200 result=0
<SIP/voiptrunk-0000005e>AGI Rx << GET VARIABLE ANSWEREDTIME
<SIP/voiptrunk-0000005e>AGI Tx >> 200 result=1 (3)
<SIP/voiptrunk-0000005e>AGI Rx << GET VARIABLE DIALSTATUS
<SIP/voiptrunk-0000005e>AGI Tx >> 200 result=1 (ANSWER)
<SIP/voiptrunk-0000005e>AGI Rx << HANGUP
<SIP/voiptrunk-0000005e>AGI Tx >> 511 Command Not Permitted on a dead channel
-- <SIP/voiptrunk-0000005e>AGI Script a2billing.php completed, returning -1

I did chmod 755 on /var/spool/asterisk/monitor and tried looking for the "|" in "gsm|b" and changing it to a "," :P

Why can't I record calls?


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Thu Sep 02, 2010 5:30 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Do you have 1_6 set in the global settings for the asterisk version?

Joe


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Thu Sep 02, 2010 7:06 pm 
Offline

Joined: Wed Jul 07, 2010 3:26 pm
Posts: 8
I do.

asterisk_version = 1_6


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Thu Sep 23, 2010 2:47 pm 
Offline

Joined: Wed Jul 07, 2010 3:26 pm
Posts: 8
Nevermind, found a workaround :)


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Mon Jan 17, 2011 12:07 am 
Offline

Joined: Tue Apr 03, 2007 7:07 am
Posts: 8
i wish you shared the workaround with us so we'd know the answer too


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Sun Feb 20, 2011 12:05 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
I added a fix for this, it will be included in the next release :
https://github.com/Star2Billing/a2billi ... 2cfa6aa02b

Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Thu Apr 07, 2011 3:09 pm 
Offline

Joined: Sat Jan 10, 2009 7:02 am
Posts: 3
I still have problem in latest 1.9.3 release. It's due to "|b" option when A2billing call MixMonitor app. I have to replace it with ",b" in A2B scripts to get recording work. I am using Asterisk 1.6. Please fix it.


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Tue Apr 12, 2011 11:43 am 
Offline

Joined: Tue Apr 12, 2011 10:12 am
Posts: 2
In 1.9.3 release asterisk 1.6.2. Inbound calls record with no issue however outbound calls causes the error The application delimiter is now the comma,not the pipe

my solution
used areski solution used for common/lib/Class.A2Billing.php (which is updated on 1.9.3)

but not updated on Class.RateEngine.php

if ($A2B->agiconfig['record_call'] == 1) {
$command_mixmonitor = "MixMonitor {$A2B->uniqueid}.{$A2B->agiconfig['monitor_formatfile']}|b";
$command_mixmonitor = $A2B -> format_parameters ($command_mixmonitor);
$myres = $agi->exec($command_mixmonitor);
$A2B -> debug( INFO, $agi, __FILE__, __LINE__, $command_mixmonitor);

Outbound calls then recorded with no errors


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Tue Apr 12, 2011 12:20 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
committed : https://github.com/Star2Billing/a2billi ... 738a6c1306


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Wed Feb 22, 2012 5:48 am 
Offline

Joined: Sun Jan 20, 2008 12:00 am
Posts: 71
Ok,
so I think I got it working and tried this feature out, but when I look in the CDR I do not see an icon to listen/download it. but I do see it in the /var/spool/asterisk/monitor

Anyone else?


Top
 Profile  
 
 Post subject: Re: Problem recording call
PostPosted: Mon Mar 12, 2012 9:57 pm 
Offline

Joined: Tue Jul 27, 2010 3:46 pm
Posts: 2
Hi guys,

I am having the same Issue:

CLI:
Code:
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- AGI Script Executing Application: (MixMonitor) Options: (1331587750.14268.gsm|b)


LOG:
Code:
[2012-03-12 22:29:10] WARNING[7875] file.c: No such format 'gsm|b'
[2012-03-12 22:29:10] ERROR[7875] app_mixmonitor.c: Cannot open /var/spool/asterisk/monitor/1331587750.14268.gsm|b


I applied the changes mentioned above, in the two files:

Quote:
Class.A2Billing.php
Class.RateEngine.php


..but it didnĀ“t change the behavior. These are the lines according to the changes discussed above

Class.A2Billing.php
Code:
                    $dialparams = str_replace("%timeoutsec%", min($time2call, $max_long), $dialparams);

                    if ($this -> agiconfig['record_call'] == 1) {
                    $command_mixmonitor = "MixMonitor {$this->uniqueid}.{$this->agiconfig['monitor_formatfile']}|b";
                    $command_mixmonitor = $this -> format_parameters ($command_mixmonitor);
                    $myres = $agi->exec($command_mixmonitor);
                    $this -> debug( INFO, $agi, __FILE__, __LINE__, $command_mixmonitor);
                    }
                    $dialstr    = $inst_listdestination[4].$dialparams;
                    $myres = $this -> run_dial($agi, $dialstr);
                    $this -> debug( INFO, $agi, __FILE__, __LINE__, "DIAL $dialstr");
                    if ($this -> agiconfig['record_call'] == 1) {
                        $myres = $agi->exec("StopMixMonitor");
                        $this -> debug( INFO, $agi, __FILE__, __LINE__, "EXEC StopMixMonitor (".$this->uniqueid.")");
                    }


Class.RateEngine.php

Code:
         if (strlen($musiconhold)>0 && $musiconhold!="selected") {
            $dialparams.= "m";
            $myres = $agi->exec("SETMUSICONHOLD $musiconhold");
            $A2B -> debug( DEBUG, $agi, __FILE__, __LINE__, "EXEC SETMUSICONHOLD $musiconhold");
         }

   if ($A2B->agiconfig['record_call'] == 1) {
   $command_mixmonitor = "MixMonitor {$A2B->uniqueid}.{$A2B->agiconfig['monitor_formatfile']}|b";
   $command_mixmonitor = $A2B -> format_parameters ($command_mixmonitor);
   $myres = $agi->exec($command_mixmonitor);
   $A2B -> debug( INFO, $agi, __FILE__, __LINE__, $command_mixmonitor);
         }

         $pos_dialingnumber = strpos($ipaddress, '%dialingnumber%' );

         $ipaddress = str_replace("%cardnumber%", $A2B->cardnumber, $ipaddress);
         $ipaddress = str_replace("%dialingnumber%", $prefix.$destination, $ipaddress);


I have Global version set to = 1_6 in the A2Billing settings. Any help is very appritiated.

Thanks in Advance

Asterisk 1.6.2.18
A2Billing 1.9.3 (Cuprum)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group