Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Aug 21, 2019 12:46 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 5:17 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Hi,

I have noticed that if a user makes a blind transfer, his current call is not billed anymore whereas the actual cost is at least doubled (the cost of initial call where the call has not been finished + call to the transferred number).

Do you know how to prevent it from happening (either by preventing blind transfers or billing the calls correctly?

here is data from asterisk cdr db:
2010-01-26 17:24:15 832647079770300 832647079770300 PHONE NUMBER from-internal-xfer SIP/siptraffic-091a48f0
2010-01-26 17:23:57 "4195778089" <832647079770300> PHONE NUMBER 39069091416 a2billing SIP/4195778089-b7a94680

as you can see the clid has changed and the dccontext is changed from a2billing to from-internal-xfer

in a2billing only the earlier call is billed AND only until the transfer is made, hence the bill from a2billing is only for 4-10 seconds, whereas the actual cost might be 2x 5 mins.


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 6:10 pm 
Offline

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

There are a number of methods, but you should not allow the customer to be in the xfer context.

You may also have the i enabled in the dial command:-

Quote:
i: Asterisk will ignore any forwarding requests it may receive on this dial attempt. (new in 1.4) Useful if you are ringing a group of people and one person has set their phone to forwarded direct to voicemail on their cell or something which normally prevents any of the other phones from ringing.


can you give us more information on how you have your customer set up - is he registered to FreePBX?

Joe


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 6:23 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Hi,

dialcommand_param ,60,HrRiL(%timeout%:61000:30000)
dialcommand_param_sipiax_friend ,60,HiL(3600000:61000:30000)

unfortunately the i parameter does not seem to work.

the users are not registered to freepbx

Marek


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 6:31 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Is [A2billing] included in any other contexts, or does it include any other contexts?

Joe


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 7:13 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Hi,

no - it is not included in other cotexts nor it is including other contexts

/etc/asterisk/extensions_a2billing.conf
[a2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait(2)
exten => _X.,3,AGI(a2billing.php,1)
exten => _X.,4,Wait,2
exten => _X.,5,Hangup


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 9:25 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Hi,

here is more info from the asterisk log:

SIP/siproute-08f1b2c0 is making progress passing it to SIP/4195778089-b7a851e8
-- SIP/siproute-08f1b2c0 answered SIP/4195778089-b7a851e8
-- Started music on hold, class 'default', on SIP/siproute-08f1b2c0
-- Stopped music on hold on AsyncGoto/SIP/siproute-08f1b2c0<ZOMBIE>
-- Executing [[email protected]:1] Macro("SIP/siproute-08f1b2c0", "user-callerid,SKIPTTL,") in new stack
-- Executing [[email protected]:1] Set("SIP/siproute-08f1b2c0", "AMPUSER=00390666627552") in new stack


the entries in red are where the 'unwanted' action takes place. after this there is a long list of macros being called for.

Please advise how to prevent it

Marek


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Tue Jan 26, 2010 10:32 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
These contexts I see on the log seem to be freePBX contexts. I cannot see how the call can get into any FreePBX context without the phone being registered in the wrong context

The full logs do give more information than the asterisk CLI, so it may be worth looking there.

Joe


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Wed Jan 27, 2010 1:12 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Basically the user clicks on the 'transfer' button in his SIP phone and the call is transfered.

it is not forwarding as such (which would have been taken care of)

How to make a2billing 'count' those calls?

Marek


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Wed Jan 27, 2010 10:21 pm 
Offline

Joined: Tue Jan 26, 2010 4:53 pm
Posts: 9
Hi,

It seems that it is happening, if you use SIP trunk and sip clients.

I found a workaround - it still does not allow the call rating, but at least the transfers are not allowed anymore.

sip.conf
[general]
allowoverlap=no
allowtransfer=no

that should fix it ;-)

Marek


Top
 Profile  
 
 Post subject: Re: blind transfer abuse - not billing calls
PostPosted: Sun Aug 29, 2010 7:55 pm 
Offline

Joined: Tue Feb 12, 2008 11:34 am
Posts: 87
Location: Germany
hi marek100,
thank you for sharing. that helped.


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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