Just test. <br>i use javascript <br><br>       session.execute(&quot;set&quot;, &quot;import=nibble_rate&quot;);          <br>       session.execute(&quot;set&quot;, &quot;import=nibble_account&quot;);    <br>       session.execute(&quot;bridge&quot;, &quot;{absolute_codec_string=&#39;GSM,G729&#39;}[nibble_rate=0.5,nibble_account=0838833133]sofia/external/xxxx@xxxx.xxx.xxx.xx&quot;); <br>
<br>when call connected nibble do nothing  i found heartbeat<br><br>mod_callbackbill.c:550 Received request via SESSION_HEARTBEAT!<br>when call disconnect nibble update amont. <br>mod_nibblebill.c:478 Billing 16 secs <br>
<br>I think nibble still not found variable channel.<br><br>Let&#39;s me share more information<br><br>I want to use nibblebill for callingcard. (i have develop billing by myself). i plan to use javascript connect to ODBC<br>
when customer call my script query balance and say. <br>and then i loop for get destination (my customer want to dial many number). when i got number my script query <br>gateway from DB.  i have 3 route and order by cost. <br>
First plan i use   <br>session.execute(&quot;bridge&quot;,
&quot;[nibble_rate=0.5,nibble_account=xxx,provider_id=1]sofia/external/xxxx@provder1|[nibble_rate=0.5,nibble_account=xxx,provider_id=2]sofia/external/xxxx@provder2&quot;); <br>i modify nibblebill for match provider with my billing.<br>
this case still fail.<br><br>now i try <br><br>    if (session.ready()){                                                                                                                <br>        s = new Session(&quot;{absolute_codec_string=&#39;GSM,G729&#39;}sofia/external/xxx@provider1&quot;<br>
    }                                                                                                                                    <br>    if (s.ready()){                                                                                                                      <br>
        session.execute(&quot;set&quot;, &quot;nibble_rate=2.5&quot;);                                                                                       <br>        session.execute(&quot;set&quot;, &quot;nibble_account=&quot;+acaller);                                                                               <br>
        session.execute(&quot;set&quot;, &quot;hangup_after_bridge=false&quot;);                                                                             <br>        session.execute(&quot;set&quot;, &quot;provider_id=&quot;+dialprovider_id[1]);                                                                       <br>
        bridge(session,s);                                                                                                               <br>    }  <br><br>and check hangup cause before try other provider.<br><br><br><br>
Please guide me it&#39;s right way or not ?<br><br><br>Dome C.<br><br><br><div class="gmail_quote">2009/6/26 Darren Schreiber <span dir="ltr">&lt;<a href="mailto:d@d-man.org">d@d-man.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div style="">
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Did this work? Would love an update on this 
error/issue.</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Michael Jerris [mailto:<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>] 
<br><b>Sent:</b> Wednesday, June 24, 2009 8:15 AM<div class="im"><br><b>To:</b> 
<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br></div><b>Subject:</b> Re: [Freeswitch-users] 
Nibblebill and multiple gateway<br></font><br></div><div><div></div><div class="h5">
<div></div>try adding 
<div>&lt;action application=&quot;set&quot; data=&quot;<span style="font-size: 10px; color: rgb(64, 64, 64); font-family: &#39;Lucida Grande&#39;;">import=nibble_rate&quot;/&gt;</span></div>
<div><font color="#404040" face="&#39;Lucida Grande&#39;" size="2"><span style="font-size: 10px;">before the bridge 
and report back results.</span></font></div>
<div><font color="#404040" face="&#39;Lucida Grande&#39;" size="2"><span style="font-size: 10px;"><br></span></font></div>
<div><font color="#404040" face="&#39;Lucida Grande&#39;" size="2"><span style="font-size: 10px;">Mike</span></font></div>
<div><font color="#404040" face="&#39;Lucida Grande&#39;" size="2"><span style="font-size: 10px;"><br></span></font>
<div>
<div>On Jun 24, 2009, at 1:36 AM, Dome Charoenyost wrote:</div><br>
<blockquote type="cite">Dear All,<br><br>Look like nibblebill does&#39;t work with 
  multiple gatreway.<br>I try <br>        
  &lt;action application=&quot;set&quot; 
  data=&quot;nibble_account=0838833133&quot;/&gt;                                                                            
  <br>        &lt;action application=&quot;bridge&quot; 
  data=&quot;{absolute_codec_string=&#39;GSM,G729&#39;}[nibble_rate=0.3]<a href="mailto:sofia/external/6626734000@203.xxx.xxx.xxx" target="_blank">sofia/external/6626734000@203.xxx.xxx.xxx</a>|[nibble_rate=0.5]<a href="mailto:sofia/external/6626734000@202.xxx.xxx.xxx" target="_blank">sofia/external/6626734000@202.xxx.xxx.xxx</a>&gt;<br>
<br>nibblebill 
  not found nibble_rate<br><br>But 
  <br>        &lt;action application=&quot;set&quot; 
  data=&quot;nibble_rate=0.05&quot;/&gt;  
  <br>        &lt;action application=&quot;set&quot; 
  data=&quot;nibble_account=0838833133&quot;/&gt;                                                                            
  <br>        &lt;action application=&quot;bridge&quot; 
  data=&quot;{absolute_codec_string=&#39;GSM,<a href="mailto:G729%27%7Dsofia/external/6626734000@203.xxx.xxx.xxx" target="_blank">G729&#39;}sofia/external/6626734000@203.xxx.xxx.xxx</a><a href="mailto:%7Csofia/external/6626734000@202.xxx.xxx.xxx" target="_blank">|sofia/external/6626734000@202.xxx.xxx.xxx</a>&gt;<br>
  
  <br>Work fine<br><br>What&#39;s difference from set application and []  
  ?<br><br>Best Regards.<br>Dome 
  C.<br>_______________________________________________<br>Freeswitch-users 
  mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>