Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 11:28 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Extension calls failing
PostPosted: Tue Jun 07, 2011 12:08 pm 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
I am attempting to make a per minute rated call between extensions using DID in A2Billing 1.9.4 (Cuprum)

I have two customers created in a2billing
customer ID's are 6256657035 and 4405842394

In FreePBX two SIP extensions exist with identical Extension numbers 6256657035 and 4405842394

which are registered with FreePBX using soft clients

A DID number "102" is created in a2billing

A destination is created for DID 102 which has Destination set to "SIP/53834405842394/102" and VOIP_CALL=NO

A rate is created for DIALPREFIX 5383 and selling rate is set to 1.0

Rate is assigned to a RateCard

Ratecard is assigned to a call plan

The Ratecard uses a trunk with REMOVEPREFIX =5383 , PROVIDERTECH =SIP, PROVIDER

IP=%dialingnumber%

RateCard added to a callplan which is assigned to the subscriber 6256657035


Now when extension 6256657035 dials DID 102 then the announcement is repeated again and again " Please Enter the Number You wish to call....."

asterisk logs are attached

Kindly guide what am I doing wrong here


Attachments:
internalcall.zip [4.06 KiB]
Downloaded 547 times
Top
 Profile  
 
 Post subject: Re: Extension calls failing
PostPosted: Wed Jun 08, 2011 7:58 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Quote:
A destination is created for DID 102 which has Destination set to "SIP/53834405842394/102" and VOIP_CALL=NO


VoIP call should be yes.

Destination should be SIP/4405842394 or possible SIP/4405842394/102



Joe


Top
 Profile  
 
 Post subject: Re: Extension calls failing
PostPosted: Thu Jun 09, 2011 6:02 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
Hi,

Ok I changed the destination to "SIP/4405842394" and set VOIP_CALL=YES.

Now I want to mention a couple of things

1- With above changes the call gets through but there are two Call records written each time the DID "102" is called. Once call records shows "0" in the sell column and the seconds call record shows the per minute rate set for this DID. I am attaching log showing two CDR's being inserted in the DB. Please let me know how I can fix this.

2- Referring to my last post I actually wanted to force the internal calls to use a trunk by setting the VOIP_CALL=NO. I wanted to append a prefix 5383 to all destinations linked to DID's so that I could set a rate for prefix 5383 which would then be removed by the trunk which is assigned to a particular rate-card and the call would get through to another extension. Is this possible ??


Attachments:
duplicateCDR.zip [4.6 KiB]
Downloaded 540 times
Top
 Profile  
 
 Post subject: Re: Extension calls failing
PostPosted: Thu Jun 09, 2011 6:18 am 
Offline

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

on-net calls have their own rates which you set against the DID.

The two records are the A-Leg and the B-Leg

In respect of point 2, you would bring the call in as normal, not as a DID, then have a rate that sends the call into a trunk of tech type local, %diallingnumber%@a2billing-did where a2billing-did sends to call into A2Billing as a DID, which in turn sends the call to SIP/4405842394/102 with VoIP Call = yes.

e.g. bring the call in, send it out, and bring it back in again. A bodge, and not elegant, but should work.

Joe


Top
 Profile  
 
 Post subject: Re: Extension calls failing
PostPosted: Thu Jun 09, 2011 6:55 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
Hi,

Thanks a lot for your reply. I will test what you have mentioned in your last reply and get back asap.

In the meantime I tested this by setting the Destination=4405842394 and the call gets through and is billed according to the prefix rate. But there is one thing that gets missed in this kind of call, when I enter the required number to dial then I do not hear the available minutes for this call just before B party ringing, it starts ringing immediately as I enter 102 ( the did number).

I am also attaching log for one such call. It is billing correctly but is this behavior right ????



-----------------------------------------------------------------------------------------------------------------
Below is log excerpt from line:1487 till the B party ringingwhen I use Destination=4405842394.

-----------------------------------------------------------------------------------------------------------------
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:1487 - uniqueid:1307583514.33 - [A2Billing] DID call friend: FOLLOWME=1 (cardnumber:4405842394|destination:4405842394|tariff:1)
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php:
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:808 - uniqueid:1307583514.33 - use_dnid:1 && (!in_array:) && len_dnid:(10 || len_exten:10 ) && (try_num:0)
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:817 - uniqueid:1307583514.33 - [USE_DNID DESTINATION ::> 4405842394]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:896 - uniqueid:1307583514.33 - DESTINATION ::> 4405842394
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:903 - uniqueid:1307583514.33 - RULES APPLY ON DESTINATION ::> 4405842394
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:3544 - uniqueid:1307583514.33 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '4405842394' WHERE username='4405842394']:[result: 1]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:98 - uniqueid:1307583514.33 - [CC_asterisk_rate-engine: (1, 4405842394)]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:120 - uniqueid:1307583514.33 - [CC_asterisk_rate-engine - CALLERID : 6256657035]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:182 - uniqueid:1307583514.33 - [rate-engine: Count Total result 1]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:270 - uniqueid:1307583514.33 - [CC_asterisk_rate-engine: Count Total result 1]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:271 - uniqueid:1307583514.33 - [CC_asterisk_rate-engine: number_trunk 1]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:1019 - uniqueid:1307583514.33 - OK - RESFINDRATE::> 1
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:285 - uniqueid:1307583514.33 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (97.71350)]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:291 - uniqueid:1307583514.33 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:1950]
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:1031 - uniqueid:1307583514.33 - RES_ALL_CALCULTIMEOUT ::> 1
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:1847 - uniqueid:1307583514.33 - TIMEOUT::> 1950 : minutes=32 - seconds=30
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.A2Billing.php - line:1847 - uniqueid:1307583514.33 - TIMEOUT::> 1950 : minutes=32 - seconds=30
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1245 - uniqueid:1307583514.33 - app_callingcard: Dialing 'SIP/4405842394|60|HRrL(1950000:61000:30000)' with timeout of '1950'.
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php:
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1265 - uniqueid:1307583514.33 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1157 - uniqueid:1307583514.33 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='5']
[Jun 9 06:38:48] VERBOSE[4037] res_agi.c: -- AGI Script Executing Application: (DIAL) Options: (SIP/4405842394|60|HRrL(1950000:61000:30000))
[Jun 9 06:38:48] VERBOSE[4037] app_dial.c: -- Limit Data for this call:
[Jun 9 06:38:48] VERBOSE[4037] netsock.c: == Using SIP RTP TOS bits 184
[Jun 9 06:38:48] VERBOSE[4037] netsock.c: == Using SIP RTP CoS mark 5
[Jun 9 06:38:48] VERBOSE[4037] app_dial.c: -- Called 4405842394
[Jun 9 06:38:48] VERBOSE[4037] app_dial.c: -- SIP/4405842394-00000022 is ringing
[Jun 9 06:38:51] VERBOSE[4037] app_dial.c: -- SIP/4405842394-00000022 answered SIP/6256657035-00000021

-------------------------------------------------------------------------------------


Attachments:
diddestination.zip [5.27 KiB]
Downloaded 529 times
Top
 Profile  
 
 Post subject: Re: Extension calls failing
PostPosted: Tue Jun 14, 2011 6:15 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
jroper wrote:

In respect of point 2, you would bring the call in as normal, not as a DID, then have a rate that sends the call into a trunk of tech type local, %diallingnumber%@a2billing-did where a2billing-did sends to call into A2Billing as a DID, which in turn sends the call to SIP/4405842394/102 with VoIP Call = yes.

e.g. bring the call in, send it out, and bring it back in again. A bodge, and not elegant, but should work.

Joe


Hi,

I managed to establish calls using this approach, thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Predictive Dialer


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