This one is a bit tricky, I did some research to figure out whats up.<div><br></div><div>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.</div>
<div><br></div><div>You have two options:</div><div><br></div><div>Use inline=true on the set -- this causes the var to be set early enough that mod_nibblebill can act on it</div><div>or</div><div>after setting transfer to an extension that does the bridge.</div>
<div><br></div><div>Or you can export hte vars and use b-leg nibble billing. but that is another story.<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 5:53 AM, Shrouk Khan <span dir="ltr"><<a href="mailto:shroukkhan@softverk.is">shroukkhan@softverk.is</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>finally in the dial plan :</div><div><br></div><div><div><extension name="ToIcelandPBX.58d2" ></div>
<div> <condition field="destination_number" expression="^(58.*)"></div>
<div> <font color="#FF0000"><action application="set" data="$${nibble_account}"/></font></div><div> </condition></div></div></blockquote><div><br></div><div>This set is uselss. but it is already set by the directory so... no biggie.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div> <font color="#FF0000"> <condition field="destination_number" expression="^(5807)$"></font></div>
<div><font color="#FF0000"> <action application="set" data="nibble_rate=30"/></font></div></div></blockquote><div><br></div><div>This set is evaluated too late for nibblebill to hook the session. Change to:</div>
<div><span class="Apple-style-span" style="color: rgb(255, 0, 0); "> <action application="set" data="nibble_rate=30" inline="true"/></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div><font color="#FF0000"> <action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/></font></div>
<div><font color="#FF0000"> </condition></font></div><div><br></div><div> <font color="#FF6600"><condition field="destination_number" expression="^(5812)$"></font></div>
<div><font color="#FF6600"> <action application="set" data="nibble_rate=15"/></font></div></div></blockquote><div>same </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div><font color="#FF6600"> <action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/></font></div>
<div><font color="#FF6600"> </condition></font></div><div><font color="#FF6600"><br></font></div><div></extension></div><div><br></div><div><br></div><div>right now the Cash balance for the extension is -192.00 and the extension can still make calls jsut fine. </div>
<div>Am I missing something here ?</div><div><br></div>-- <br>Regards<br><br>Shrouk Khan (Khan)<br><br><br></div></blockquote></div><br>-- <br>-Rupa<br>
</div>