[Asterisk-Users] astcc and inwards billing

JP Carballo lists at netfone2x.com
Mon Apr 17 13:02:38 MST 2006


Ronald Wiplinger wrote:

> I (cannot sleep and I) am thinking if there is a way to make inwards 
> billing easy possible.
>
> To dial out we use something like:
> exten => 
> _9011N.,4,DeadAGI(astcc.agi,${CALLERID(num)},${EXTEN:${TRUNKMSD}},${TARIFF}) 
>
> (I have an extra field TARIFF, what allows me to use different prices 
> for different users)
>
> To dial to a phone we use something like:
>
> exten => 888888888,1,Dial(SIP/6001,20,tr)
>
> Can we use something like:
> exten => 888888888,4,DeadAGI(astcc.agi,${EXTEN},6001,${TARIFF},3)
>
> and use TARIFF with all location as x cents ?
>
Short answer is Yes.
I use a similar astcc.agi call for "in-network" calls.
The cost will depend on how you've implemented TARIFF and whether it 
adds to or bypasses the cost field for your 600x SIP route.

-- 
JP Carballo

http://www.netfone2x.com
Bringing the world closer.

It might look like I'm doing nothing, but at the cellular level, I'm really quite busy. 




More information about the asterisk-users mailing list