Just test. <br>i use javascript <br><br> session.execute("set", "import=nibble_rate"); <br> session.execute("set", "import=nibble_account"); <br> session.execute("bridge", "{absolute_codec_string='GSM,G729'}[nibble_rate=0.5,nibble_account=0838833133]sofia/external/xxxx@xxxx.xxx.xxx.xx"); <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'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("bridge",
"[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"); <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("{absolute_codec_string='GSM,G729'}sofia/external/xxx@provider1"<br>
} <br> if (s.ready()){ <br>
session.execute("set", "nibble_rate=2.5"); <br> session.execute("set", "nibble_account="+acaller); <br>
session.execute("set", "hangup_after_bridge=false"); <br> session.execute("set", "provider_id="+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'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"><<a href="mailto:d@d-man.org">d@d-man.org</a>></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><action application="set" data="<span style="font-size: 10px; color: rgb(64, 64, 64); font-family: 'Lucida Grande';">import=nibble_rate"/></span></div>
<div><font color="#404040" face="'Lucida Grande'" size="2"><span style="font-size: 10px;">before the bridge
and report back results.</span></font></div>
<div><font color="#404040" face="'Lucida Grande'" size="2"><span style="font-size: 10px;"><br></span></font></div>
<div><font color="#404040" face="'Lucida Grande'" size="2"><span style="font-size: 10px;">Mike</span></font></div>
<div><font color="#404040" face="'Lucida Grande'" 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't work with
multiple gatreway.<br>I try <br>
<action application="set"
data="nibble_account=0838833133"/>
<br> <action application="bridge"
data="{absolute_codec_string='GSM,G729'}[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>><br>
<br>nibblebill
not found nibble_rate<br><br>But
<br> <action application="set"
data="nibble_rate=0.05"/>
<br> <action application="set"
data="nibble_account=0838833133"/>
<br> <action application="bridge"
data="{absolute_codec_string='GSM,<a href="mailto:G729%27%7Dsofia/external/6626734000@203.xxx.xxx.xxx" target="_blank">G729'}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>><br>
<br>Work fine<br><br>What'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>