asterisk2billing.org
http://forum.asterisk2billing.org/

blind transfer abuse - not billing calls
http://forum.asterisk2billing.org/viewtopic.php?f=22&t=6977
Page 1 of 1

Author:  marek100 [ Tue Jan 26, 2010 5:17 pm ]
Post subject:  blind transfer abuse - not billing calls

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.

Author:  jroper [ Tue Jan 26, 2010 6:10 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  marek100 [ Tue Jan 26, 2010 6:23 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  jroper [ Tue Jan 26, 2010 6:31 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

Is [A2billing] included in any other contexts, or does it include any other contexts?

Joe

Author:  marek100 [ Tue Jan 26, 2010 7:13 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  marek100 [ Tue Jan 26, 2010 9:25 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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 [0025240220418@from-internal-xfer:1] Macro("SIP/siproute-08f1b2c0", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid: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

Author:  jroper [ Tue Jan 26, 2010 10:32 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  marek100 [ Wed Jan 27, 2010 1:12 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  marek100 [ Wed Jan 27, 2010 10:21 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

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

Author:  mazhar996 [ Sun Aug 29, 2010 7:55 pm ]
Post subject:  Re: blind transfer abuse - not billing calls

hi marek100,
thank you for sharing. that helped.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/