Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 4:56 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: asterisk +a2billing
PostPosted: Tue Nov 10, 2015 11:10 pm 
Offline

Joined: Tue Nov 10, 2015 10:35 pm
Posts: 6
Hello

I have an issue related to asterisk version 13 (I not use freepbx) and a2billing version 2.

On a2billing I have configured OUTBOUND TRUNK,ratecard and callplan for testing.

When I initiate a call from Xlite the call is not completed when I use AGI function. Instead when I remove AGI configuration from extensions.conf I succeed to complete the call but it is not recorded in a2billing. I don't what is wrong in my configuration. Below I figured my configuration files. Can anyone give me an advise? Where is the mistake?

In sip.conf file I have:
#include additional_a2billing_sip.conf

I have the following setup in "additional_a2billing_sip.conf":
;------------SIP Trunk configuration--------------
[test]
type=friend
host=192.168.1.13
context=a2billing_sip
allow=ulaw
trustrpid = yes
sendrpid = yes
canreinvite = no
;-----------------------------------------------
;---User configured for calling via XLITE
[1234]
type=friend
username=1234
secret=2345
host=dynamic
context=a2billing
;------------------------------------------------------
The extentions.conf show as below:
[globals]
FEATURES =
DIALOPTIONS =
RINGTIME = 20
FOLLOWMEOPTIONS =
PAGING_HEADER = Intercom

[general]
autofallthrough = yes
static = yes
writeprotect = no
clearglobalvars = yes
[default]
include => a2billing_sip
[a2billing_sip]
exten => _X.,1,AGI(a2billing.php)
exten = _62[27]XXXXXXXX,n,Dial(SIP/${EXTEN}@test)

When I call 62212223344 this is not terminated and I have the following log:

-- Executing [62212223344@a2billing:1] AGI("SIP/1234-00000089", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:774 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:1100 ast_streamfile: Unable to open prepaid-enter-pin-number (format (ulaw)): No such file or directory
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:774 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:774 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:1100 ast_streamfile: Unable to open prepaid-enter-pin-number (format (ulaw)): No such file or directory
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:774 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:774 ast_openstream_full: File prepaid-enter-pin-number does not exist in any format
[Nov 10 16:54:16] WARNING[18526][C-000000a2]: file.c:1100 ast_streamfile: Unable to open prepaid-enter-pin-number (format (ulaw)): No such file or directory
-- <SIP/1234-00000089>AGI Script a2billing.php completed, returning -1
[Nov 10 16:54:16] NOTICE[16456][C-000000a2]: chan_sip.c:25922 handle_request_invite: Unable to create/find SIP channel for this INVITE[/b]

I don't know where is the mistake. As I said, I can complete the call if I will remove "AGI(a2billing.php)" in extensions.conf, but in this case the call is not recorded in A2Billing.

Thank you

Eugen


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Wed Nov 11, 2015 3:03 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Looks like you have not installed any sound files. This causes the call to fail when sent through a2billing.php as it has to be for billing.

Joe


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Wed Nov 11, 2015 3:33 pm 
Offline

Joined: Tue Nov 10, 2015 10:35 pm
Posts: 6
Hello Joe,

Thank you for reply. The sounds files are instaled in
/var/lib/asterisk/sounds and /usr/share/asterisk/sounds

The own on these is asterisk:asterisk

But in /usr/share/asterisk/sounds the ls -l result is
drwxrwxr-x 3 asterisk asterisk 4096 Nov 1 21:59 br
drwxrwxr-x 3 asterisk asterisk 12288 Nov 1 21:59 en
drwxrwxr-x 3 asterisk asterisk 4096 Nov 1 21:59 es
drwxrwxr-x 3 asterisk asterisk 4096 Nov 1 21:59 fr
drwxrwxr-x 2 asterisk asterisk 4096 Sep 21 13:20 global
drwxrwxr-x 3 asterisk asterisk 4096 Sep 21 13:20 gr
drwxrwxr-x 3 asterisk asterisk 4096 Sep 21 13:20 ru

... the ls -l output for /var/lib/asterisk/sounds

drwxr-xr-x 8 asterisk asterisk 20480 Nov 1 21:18 en

The sound files can influence the call termination?

Thank you

Eugen


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Wed Nov 11, 2015 3:44 pm 
Offline

Joined: Tue Nov 10, 2015 10:35 pm
Posts: 6
Yes, I progressed

I called and I got the following logs:

Using SIP RTP CoS mark 5
-- Executing [31213321163@a2billing:1] AGI("SIP/1890204910-0000000e", "a2billing.php,1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- <SIP/1890204910-0000000e> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
-- <SIP/1890204910-0000000e> Playing 'prepaid-no-card-entered.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/1890204910-0000000e> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
-- <SIP/1890204910-0000000e> Playing 'prepaid-no-card-entered.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/1890204910-0000000e> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
[Nov 11 17:40:07] WARNING[1354]: chan_sip.c:4009 retrans_pkt: Retransmission timeout reached on transmission b7f7d4280d3da441fc0892cee5f24ac9 for seqno 1 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/ ... nsmissions
Packet timed out after 32000ms with no response
[Nov 11 17:40:11] WARNING[1354]: chan_sip.c:4009 retrans_pkt: Retransmission timeout reached on transmission b72d56dd26cad1175ddfa29768df985f for seqno 1 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/ ... nsmissions
Packet timed out after 32000ms with no response
-- <SIP/1890204910-0000000e>AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing, 31213321163, 1) exited non-zero on 'SIP/1890204910-0000000e'

What means returning 4?

Thank you again

Eugen


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Sat Nov 14, 2015 5:16 pm 
Offline

Joined: Tue Nov 10, 2015 10:35 pm
Posts: 6
I solved thw problem for outbound calls


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Tue Feb 23, 2016 12:07 pm 
Offline

Joined: Thu Feb 18, 2016 12:36 pm
Posts: 1
Hi Eugenp

I hahe the same problem, Can I have how you resolved this probleme ?

-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Feb 23 12:26:04] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-you-have does not exist in any format
-- <SIP/33609777305-00000016> Playing 'digits/10.gsm' (language 'en')
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File dollars does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:957 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:957 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-enter-dest does not exist in any format
[Feb 23 12:26:05] WARNING[5334]: file.c:957 ast_streamfile: Unable to open prepaid-enter-dest (format 0x4 (ulaw)): No such file or directory
[Feb 23 12:26:05] WARNING[5334]: file.c:666 ast_openstream_full: File prepaid-invalid-digits does not exist in any format
-- <SIP/33609777305-00000016>AGI Script a2billing.php completed, returning -1


Top
 Profile  
 
 Post subject: Re: asterisk +a2billing
PostPosted: Wed Feb 24, 2016 9:08 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Again, the same issue, your sound files are not installed.

Joe


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


All times are UTC


Who is online

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