Hi all,
Am so far trying to get Voicemail enabled in A2billing. But unfornately, am getting headache cuz it doesn't works.
Can anyone tells me what is wrong in my config?
extensions.confCode:
[a2billing]
exten => _x.,1,Agi(A2BILLING/a2billing.php,1,did)
Asterisk CLI:
Code:
-- Nobody picked up in 60000 ms
A2BILLING/a2billing.php,1,did: file:Class.A2Billing.php - line:1285 - uniqueid:1289483519.27 - DIAL SIP/127.0.0.1@2221228185,60,HiL(3600000:61000:30000)
A2BILLING/a2billing.php,1,did: file:Class.A2Billing.php - line:1297 - uniqueid:1289483519.27 - [SIP/127.0.0.1@2221228185 Friend][followme=1]:[ANSWEREDTIME=-DIALSTATUS=NOANSWER]
A2BILLING/a2billing.php,1,did: file:Class.A2Billing.php - line:1406 - uniqueid:1289483519.27 - [STATUS] CHANNEL (NOANSWER) - GOTO VOICEMAIL (2221228185)
-- AGI Script Executing Application: (VoiceMail) Options: (2221228185|s)
[Nov 11 13:53:13] WARNING[27738]: pbx.c:947 pbx_exec: The application delimiter is now the comma, not the pipe. Did you forget to convert your dialplan? (VoiceMail(2221228185|s))
[Nov 11 13:53:13] WARNING[27738]: app_voicemail.c:4396 leave_voicemail: No entry in voicemail config file for '2221228185|s'
A2BILLING/a2billing.php,1,did: file:Class.A2Billing.php - line:745 - uniqueid:1289483519.27 - [CARD STATUS UPDATE]
A2BILLING/a2billing.php,1,did: file:Class.A2Billing.php - line:754 - uniqueid:1289483519.27 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='2221228185']
As you can see, the first warning is about the pipe. But am not using pipe in Class.A2Billing.php
here is it:
Code:
if ($this->voicemail) {
if (($dialstatus =="CHANUNAVAIL") || ($dialstatus == "CONGESTION") || ($dialstatus == "NOANSWER") || ($dialstatus =="BUSY")) {
// The following section will send the caller to VoiceMail with the unavailable priority.\
$dest_username = $this->username;
$this -> debug( INFO, $agi, __FILE__, __LINE__, "[STATUS] CHANNEL ($dialstatus) - GOTO VOICEMAIL ($dest_username)");
$agi-> exec(VoiceMail,$dest_username.',s');
}
}
Is there another file where i've to modified the pipe?
The second says , there is not entry in the voice mail config file. But here is what i did in voicemail.conf:
Code:
2221228185 => 2221228185,MY NAME,
[email protected],attach=yes,saycid=yes,envelope=yes
is there something going wrong in this config??
PS: Am using Asterisk
1.6.0.19 and
A2Billing 1.7.0 (Larch)Regards!
Mike