Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 26, 2024 2:17 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Asterisk + A2Billing call is not getting established
PostPosted: Thu Sep 17, 2009 12:08 pm 
Offline

Joined: Thu Sep 10, 2009 1:46 pm
Posts: 5
Hi All,

I have successfully installed Asterisk-1.4.26.2 and A2Billing 1.4
I have added one rate card and one customer.
I have register 2 users with Grandstream phones.
My issue is that when I m firing a call, its not getting established. On Asterisk I am getting following errror :
----------------------------------------------------------------------------------
*CLI> -- Executing [2222@default:1] Answer("SIP/10000-0076c6c0", "") in new stack
-- Executing [2222@default:2] Wait("SIP/10000-0076c6c0", "2") in new stack

*CLI> -- Executing [2222@default:3] DeadAGI("SIP/10000-0076c6c0", "a2billing.php") in new stack
[Sep 17 17:28:57] WARNING[4913]: res_agi.c:2203 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /opt/asterisk-1/var/lib/asterisk/agi-bin/a2billing.php
[Sep 17 17:28:57] WARNING[4913]: file.c:664 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Sep 17 17:28:57] WARNING[4913]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x200100 (g729|h264)): Illegal seek
[Sep 17 17:28:57] WARNING[4913]: file.c:664 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Sep 17 17:28:57] WARNING[4913]: file.c:664 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Sep 17 17:28:57] WARNING[4913]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x200100 (g729|h264)): Illegal seek
[Sep 17 17:28:57] WARNING[4913]: file.c:664 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Sep 17 17:28:57] WARNING[4913]: file.c:664 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Sep 17 17:28:57] WARNING[4913]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x200100 (g729|h264)): Illegal seek
-- AGI Script a2billing.php completed, returning 0

----------------------------------------------------------------------------------
I have 2 peers in sip.conf file.

[10000]
type=friend
username=10000
secret=1234
context=default
host=dynamic
canreinvite=yes
disallow=all
allow=g729
allow=h264

[2222]
type=friend
username=2222
secret=1234
context=default
host=dynamic
canreinvite=yes
disallow=all
allow=g729
allow=h264

extension.conf file
----------------------------------------------------------------------
[default]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
;;exten => _X.,3,DeadAGI(a2billing.php|1)
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

Any help is appreciated.

Thank you very much.


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Thu Sep 17, 2009 1:11 pm 
Offline

Joined: Wed Jul 22, 2009 12:04 pm
Posts: 10
Hi,

Does this file exist? And if yes is it in g729 compression?
You should look under the asterisk/sounds directory.

Lambros


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Thu Sep 17, 2009 2:00 pm 
Offline

Joined: Thu Sep 10, 2009 1:46 pm
Posts: 5
Hi lambros,

Thank you very much for your reply.
This is my asterisk installation directory : /opt/asterisk-1/

and the sounds file contains in this directory : /opt/asterisk-1/var/lib/asterisk/sounds/
Here, I have prepaid-enter-pin-number.gsm file

In the sip.conf file, I have removed allow=g729 and add
allow=gsm

I have done configuration only in sip.conf and extensions.conf files. Do I need any other file to modify ?

Thanks a lot in advance.


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Fri Sep 18, 2009 1:29 am 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
try the following commands to make sure you actually have the file:

updatedb
locate prepaid-enter-pin-number

If the file exists and it's in the proper place then go back and simple allow=all in the end of sip.conf file just to eliminate all the codec problems.


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Tue Sep 22, 2009 6:38 am 
Offline

Joined: Thu Sep 10, 2009 1:46 pm
Posts: 5
Hello bruce,

Thank you for your reply.

My asterisk is installed in /opt/asterisk directory. For simple call establishment I have configured the sip.conf, extension.conf files.Do I need to configure any other file ? I am newbie in A2billing. Any help is appreciated.

I have fired the updatedb command, and then locate prepaid-enter-pin-number.The output of the command is :

[root@sys ~]# locate prepaid-enter-pin-number
/opt/asterisk-1/var/lib/asterisk/sounds/prepaid-enter-pin-number.g729
/opt/asterisk-1/var/lib/asterisk/sounds/prepaid-enter-pin-number.gsm
/opt/asterisk-1/var/lib/asterisk/sounds/en/prepaid-enter-pin-number.gsm
/usr/src/a2billing/addons/sounds/br/prepaid-enter-pin-number.gsm
/usr/src/a2billing/addons/sounds/en/prepaid-enter-pin-number.gsm
/usr/src/a2billing/addons/sounds/es/prepaid-enter-pin-number.gsm
/usr/src/a2billing/addons/sounds/fr/prepaid-enter-pin-number.gsm
/usr/src/a2billing/addons/sounds/g729/en/prepaid-enter-pin-number.g729
/usr/src/a2billing/addons/sounds/ru/prepaid-enter-pin-number.gsm


In sip.conf file I have set allow=all, but still when I am firing the call, it gives me the following on Asterisk :

*CLI> -- Executing [011@default:1] Answer("SIP/10000-0077a9b0", "") in new stack
-- Executing [011@default:2] Wait("SIP/10000-0077a9b0", "2") in new stack
[Sep 22 11:58:55] NOTICE[2900]: rtp.c:1334 ast_rtp_read: Unknown RTP codec 126 received from '192.168.1.23'
[Sep 22 11:58:55] NOTICE[2900]: rtp.c:1334 ast_rtp_read: Unknown RTP codec 126 received from '192.168.1.23'
[Sep 22 11:58:55] NOTICE[2900]: rtp.c:1334 ast_rtp_read: Unknown RTP codec 126 received from '192.168.1.23'
-- Executing [011@default:3] DeadAGI("SIP/10000-0077a9b0", "a2billing.php") in new stack
[Sep 22 11:58:57] WARNING[2900]: res_agi.c:2203 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /opt/asterisk-1/var/lib/asterisk/agi-bin/a2billing.php
[Sep 22 11:58:57] WARNING[2900]: channel.c:3055 set_format: Unable to find a codec translation path from 0x300100 (g729|h263p|h264) to 0x2 (gsm)
[Sep 22 11:58:57] WARNING[2900]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x300100 (g729|h263p|h264)): No such file or directory
[Sep 22 11:58:57] WARNING[2900]: channel.c:3055 set_format: Unable to find a codec translation path from 0x300100 (g729|h263p|h264) to 0x2 (gsm)
[Sep 22 11:58:57] WARNING[2900]: channel.c:3055 set_format: Unable to find a codec translation path from 0x300100 (g729|h263p|h264) to 0x2 (gsm)
[Sep 22 11:58:57] WARNING[2900]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x300100 (g729|h263p|h264)): No such file or directory
[Sep 22 11:58:57] WARNING[2900]: channel.c:3055 set_format: Unable to find a codec translation path from 0x300100 (g729|h263p|h264) to 0x2 (gsm)
[Sep 22 11:58:57] WARNING[2900]: channel.c:3055 set_format: Unable to find a codec translation path from 0x300100 (g729|h263p|h264) to 0x2 (gsm)
[Sep 22 11:58:57] WARNING[2900]: file.c:972 ast_streamfile: Unable to open prepaid-enter-pin-number (format 0x300100 (g729|h263p|h264)): No such file or directory
-- AGI Script a2billing.php completed, returning 0

Thanks a lot in advance.


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Wed Dec 09, 2009 6:22 am 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
HI,

Do you have any other idea about this error. I do have same problem here is the output of locate.

dns3:~# locate prepaid-enter-pin-number
/usr/local/src/a2billing/addons/sounds/br/prepaid-enter-pin-number.gsm
/usr/local/src/a2billing/addons/sounds/br/.svn/prop-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/br/.svn/text-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/en/prepaid-enter-pin-number.gsm
/usr/local/src/a2billing/addons/sounds/en/.svn/prop-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/en/.svn/text-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/es/prepaid-enter-pin-number.gsm
/usr/local/src/a2billing/addons/sounds/es/.svn/prop-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/es/.svn/text-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/fr/prepaid-enter-pin-number.gsm
/usr/local/src/a2billing/addons/sounds/fr/.svn/prop-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/fr/.svn/text-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/g729/en/prepaid-enter-pin-number.g729
/usr/local/src/a2billing/addons/sounds/g729/en/.svn/prop-base/prepaid-enter-pin-number.g729.svn-base
/usr/local/src/a2billing/addons/sounds/g729/en/.svn/text-base/prepaid-enter-pin-number.g729.svn-base
/usr/local/src/a2billing/addons/sounds/ru/prepaid-enter-pin-number.gsm
/usr/local/src/a2billing/addons/sounds/ru/.svn/prop-base/prepaid-enter-pin-number.gsm.svn-base
/usr/local/src/a2billing/addons/sounds/ru/.svn/text-base/prepaid-enter-pin-number.gsm.svn-base
/var/lib/asterisk/sounds/br/prepaid-enter-pin-number.gsm
/var/lib/asterisk/sounds/en/prepaid-enter-pin-number.gsm
/var/lib/asterisk/sounds/es/prepaid-enter-pin-number.gsm
/var/lib/asterisk/sounds/fr/prepaid-enter-pin-number.gsm
/var/lib/asterisk/sounds/ru/prepaid-enter-pin-number.gsm
dns3:~#
I do not have G.729 on sip.conf.

Regards,

Al


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Fri Dec 11, 2009 12:10 am 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
HI,

Any update?

Regards,

AL


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Sat Dec 12, 2009 10:03 pm 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
Hi,

Any ideas? on this? Does anybody knows where those files should go?

Regards,

AL


Top
 Profile  
 
 Post subject: Re: Asterisk + A2Billing call is not getting established
PostPosted: Sat Dec 12, 2009 10:31 pm 
Offline

Joined: Mon Nov 23, 2009 6:14 am
Posts: 36
Hi,

Please disregards this issue. I was able to fix. I just reload sound files.

Regards,

Al


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 39 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