<div dir="ltr">I don't think it is possible...<div style>I'm trying to do this in the dialplan:</div><div style><br></div><div style><br></div><div style><div> <condition field="destination_number" expression="^.*"></div>
<div> <action application="set" data="continue_on_fail=NO_ROUTE_DESTINATION,UNALLOCATED_NUMBER,407" /></div><div> <action application="set" data="sip_from_user=1001" /></div>
<div> <action application="set" data="sip_auth_username=1001" /></div><div> <action application="set" data="sip_req_user=1001" /></div>
<div> <action application="set" data="hangup_after_bridge=true" /></div><div> <action application="set" data="nibble_rate=0.0500" /></div>
<div> <action application="set" data="nibble_db_table=cards_table" /></div><div> <action application="set" data="nibble_db_column_cash=balance" /></div>
<div> <action application="set" data="nibble_db_column_account=pin" /></div><div> <action application="set" data="nibble_account=12345" /></div>
<div> <action application="set" data="gw=${distributor(TEST_ROUTE)}" /></div><div> <action application="nibblebill" data="heartbeat 10" /></div>
<div> <action application="limit" data="hash $${domain} $${domain} ${sip_auth_username} 1 !NORMAL_TEMPORARY_FAILURE" /></div><div> <action application="export" data="execute_on_answer=nibblebill adjust -0.1000" /></div>
<div> <action application="bridge" data="sofia/gateway/${gw}/0013058883" /></div><div> </condition></div><div><br></div><div><br></div><div style>and I still see:</div>
<div style><br></div><div style><br></div><div style><br></div><div style>[UPDATE sip_users SET balance=balance-0.010867 WHERE id='12345']<br></div><div style><br></div><div style><br></div><div style>I should note that "sip_users" is the db_table I setup in "nibblebill.conf.xml"...</div>
<div style><br></div><div style>Has anyone tried doing this??</div><div style><br></div><div style><br></div><div style>I want use use nibblebill to deduct monet from 2 different tables depending on the context, so I thought I could try setting the db_table, db_column_cash and db_column_account in the contex...</div>
<div style><br></div><div style>thanks</div><div style><br></div><div style><br></div><div style><br></div><div style>David</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 3:14 PM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello guys,<br>
<br>
Is it possible to use different billing tables for different applications?<br>
<br>
Say i have 2 different context on which i want to use different tables for balance.<br>
<br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
David</font></span></blockquote></div><br></div>