This one is a bit tricky, I did some research to figure out whats up. Basically, you can't set the nibble_* vars in the same extension as the call to bridge due to the order in which the module is called. The set happens too late for mod_nibblebill to act on. You have two options: Use inline=true on the set -- this causes the var to be set early enough that mod_nibblebill can act on it or after setting transfer to an extension that does the bridge. Or you can export hte vars and use b-leg nibble billing. but that is another story. On Thu, May 20, 2010 at 5:53 AM, Shrouk Khan <shroukkhan@softverk.is> wrote:
finally in the dial plan :
<extension name="ToIcelandPBX.58d2" > <condition field="destination_number" expression="^(58.*)"> <action application="set" data="$${nibble_account}"/> </condition>
This set is uselss. but it is already set by the directory so... no biggie.
<condition field="destination_number" expression="^(5807)$"> <action application="set" data="nibble_rate=30"/>
This set is evaluated too late for nibblebill to hook the session. Change to: <action application="set" data="nibble_rate=30" inline="true"/>
<action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/> </condition>
<condition field="destination_number" expression="^(5812)$"> <action application="set" data="nibble_rate=15"/>
same
<action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/> </condition>
</extension>
right now the Cash balance for the extension is -192.00 and the extension can still make calls jsut fine. Am I missing something here ?
-- Regards
Shrouk Khan (Khan)
-- -Rupa