Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 2:12 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: sound files fail
PostPosted: Tue Jan 13, 2009 6:43 pm 
Offline

Joined: Thu Aug 16, 2007 7:37 pm
Posts: 15
Hi forum has working a2billing, I can make calls and the invoices the problem this that when I hangup I see in the asterisk CLI that fails when playing the tones

I have all my sound files with permits 777

regards

Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/130-08a65c48> Playing 'digits/4' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
-- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/130-08a65c48> Playing 'digits/23' (language 'es')
-- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
a2billing.php: file:a2billing.php - line:312 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 4.23][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 0 && && 11&& 1
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/130-08a65c48> Playing 'prepaid-enter-dest' (language 'es')
a2billing.php: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
-- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Jan 13 12:11:45] WARNING[6189]: file.c:677 ast_readaudio_callback: Failed to write frame


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 6:49 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
This is due to PHPAGI (the interface between A2B and Asterisk itself) getting confused about the state of the line. It thinks the call is still active although the calling party has already hung-up. It's ugly but harmless.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 8:17 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I would also like to add something about the file permission. I am only hopping that you are going to set it back to at least 755 instead of 777. Usually, when you think that there is a permission issue, then setting the correct owner and group should suffice if the mode is set to at least 755.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 9:51 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
The audio files have no need to be executable. With this in mind I would amend Asiby's suggestion to:
Code:
chmod 644 -R /var/lib/asterisk/sounds


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 11:12 pm 
Offline

Joined: Thu Aug 16, 2007 7:37 pm
Posts: 15
I already make the changes, but it still follows me failing

with the permits 644 and 755 it always fails me

something but that one can be forgetting?

WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/119-b7b024f8> Playing 'digits/2' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/119-b7b024f8> Playing 'digits/60' (language 'es')
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/119-b7b024f8> Playing 'digits/and' (language 'es')
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/119-b7b024f8> Playing 'digits/5' (language 'es')
-- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
a2billing.php: file:a2billing.php - line:312 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 2.65][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 0 && && 8&& 1
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame
-- <SIP/119-b7b024f8> Playing 'prepaid-enter-dest' (language 'es')
a2billing.php: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
-- Playing 'prepaid-invalid-digits' (escape_digits=#) (sample_offset 0)
[Jan 13 17:10:46] WARNING[14884]: file.c:677 ast_readaudio_callback: Failed to write frame


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 11:15 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Do you have 'answer_call = YES' in a2billing.conf?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 11:39 pm 
Offline

Joined: Thu Aug 16, 2007 7:37 pm
Posts: 15
inside a2billing.conf


answer_call = NO


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 14, 2009 2:06 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
This seems to be a problem due to misplaced files. I have noticed that asterisk is looking for spanish files. Make sure that you don't just dump the a2billing sound files inside the asterisk sound folder. You need to do some manual work and create an "es" folder in each asterisk sound folders (main folder and subfolders) and put the spanish corresponding files in them. You can also try using the sound_fix or fix_sounds script (I can't remember the name accurately) that I have left on the forum in the past. If you put it inside the asterisk sound folder and execute it, it will rearrange the files for you. I can quite remember though if it covered spanish files.

Cheers


Top
 Profile  
 
 Post subject: Re: sound files fail
PostPosted: Fri May 28, 2010 3:21 pm 
Offline

Joined: Sun Aug 17, 2008 1:52 pm
Posts: 93
I tried all the solutions regarding folder and permission but I still get the same error,

This problem happened after we recompiled asterisk to support a new codec, and I can't fix it.


the thing about it is that now we have calls that exceed even the credit limit and I think this is due to this that the system can't prompt warning message


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 18 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group