[asterisk-users] Blind transfers security

Olle E. Johansson oej at edvina.net
Mon Sep 14 09:40:58 CDT 2009


14 sep 2009 kl. 12.05 skrev Stanisław Pitucha:

> 2009/9/9 Stanisław Pitucha <stan at gradwell.net>:
>> I've got different customers that may use the same asterisk. Each  
>> user
>> can blind-transfer a call to whatever place they want. But of course
>> the transferring side should be billed for it.
>> What can I do to see the difference between the channels here?
> ....
>
> Trying again, since I didn't get any responses... but someone has to
> know the answer ;)
>
> I know I can get the channel name via BLINDTRANSFER, but that doesn't
> really help me. What I need is either the CALLERID(num) if the calling
> side initiated the transfer, or either EXTEN or some other custom
> variable from the calling leg if it was the called party that does the
> transfer.
>
> Has anyone solved this billing problem in any way? (well - any apart
> from the asterisk-generated cdr-s - I don't really want to start
> relying on them)

Make sure that each device has a TRANSFER_CONTEXT dialplan variable.  
That way,
you can send different customers to different TRANSFER_CONTEXTs. Only  
transfers
end up in these contexts, so you can check who's doing what and set  
accountcodes,
reset cdrs, play prompts and have fun.

/O


More information about the asterisk-users mailing list