So this is starting to get complicated and it looks like I might have to write some lua to do this...

So, say I want to bridge a freephone number to both a landline and a mobile in parallel. All 3 potential legs need different call rates, only 2 will be used when the call is picked up, of course, and I ideally need the CDR and cost for each leg separate. Here's an idea of what I have so far:

<action application="set" data="nibble_rate=0.01" />
<action application="bridge" data="[nibble_rate=0.01]sofia/gateway/x/landline,[nibble_rate=0.06]sofia/gateway/x/mobile" />

This doesn't work, and neither does setting the variables nolocal.

Can this be done in this way?

I can probably work around this by exporting the incoming rate as nolocal and the outgoing rate on the incoming channel. Confusing but might actually work.

--
Andrew Cassidy BSc (Hons) MBCS SSCA
Managing Director


T 03300 100 960  F 03300 100 961