2007-05-08T02:06:06 <xming> that sample data has the same price/min but different connection cost but different connection cos
t
2007-05-08T02:07:00 <xming> and also differen currencies
2007-05-08T02:07:16 <intralanman> yeah, i was just noticing the currencies
2007-05-08T02:07:25 <xming> 2 in euro a nd 1 in usd
2007-05-08T02:09:17 <intralanman> and they're all 1 second increments
2007-05-08T02:09:20 <intralanman> that's cool
2007-05-08T02:11:01 <xming> buy_min_sec is the initial min. seconds
2007-05-08T02:11:11 <xming> buy_incr_sec is incremental sec
2007-05-08T02:11:29 <xming> buy_per_min cost per minute
2007-05-08T02:11:48 <xming> modifier is a way to rate the route
2007-05-08T02:12:17 <xming> buy_per_min * modifier
2007-05-08T02:12:19 <intralanman> like firs 30 seconds is .25 and every 5 second increment after that is .05 or something?
2007-05-08T02:12:30 <xming> nono
2007-05-08T02:12:38 <xming> say 2 USD per min
2007-05-08T02:12:53 <xming> some provider charge like 30/6
2007-05-08T02:13:10 <xming> which means they charge at least 30 seconds
2007-05-08T02:13:19 <xming> after 30 sec it's 6 sec incr.
2007-05-08T02:13:23 <intralanman> and then 6 second intervals
2007-05-08T02:13:25 <intralanman> ok
2007-05-08T02:13:26 <intralanman> i got it
2007-05-08T02:13:32 <xming> so you put
2007-05-08T02:13:45 <xming> buy_min_sec = 200
2007-05-08T02:13:53 <xming> buy_incr_sec = 6
2007-05-08T02:13:58 <xming> oop
2007-05-08T02:14:01 <xming> scratch that
2007-05-08T02:14:06 <xming> buy_min_sec = 30
2007-05-08T02:14:06 <intralanman> heheh
2007-05-08T02:14:09 <xming> buy_incr_sec = 6
2007-05-08T02:14:14 <intralanman> ok, cool
2007-05-08T02:14:21 <Igbothom_III> 200 sounds better :)
2007-05-08T02:14:26 <intralanman> for who?
2007-05-08T02:14:28 <intralanman> lol
2007-05-08T02:14:30 <xming> buy_per_min = 200 (unit is in cents, so 2dollar/euro == 200)
2007-05-08T02:14:32 <Igbothom_III> (for the user, that is)
2007-05-08T02:15:06 <xming> use modifier to rate a route
2007-05-08T02:15:14 <intralanman> wait, huh?
2007-05-08T02:15:17 <xming> buy_per_min * modifier
2007-05-08T02:15:32 <xming> so if for bekgium +32
2007-05-08T02:15:43 <xming> prov. A is 1 cent
2007-05-08T02:15:43 <intralanman> that's if you want to weight the route down so it's not chosen ?
2007-05-08T02:15:50 <xming> prov. B is 2 cents
2007-05-08T02:15:55 <Igbothom_III> is that what you get if Beckham married Kim Clijsters?
2007-05-08T02:15:58 <xming> lcr will always choose A
2007-05-08T02:16:35 <xming> so for route A you do modifier = 5
2007-05-08T02:16:56 <xming> so A will be 5 and B stays 2 and lcr chooese B
2007-05-08T02:17:23 <xming> this can be done per route not per provider
2007-05-08T02:18:33 <xming> intralanman: comprendo?
2007-05-08T02:18:43 <intralanman> mostly
2007-05-08T02:19:06 <xming> `Currencies` is easy
2007-05-08T02:19:08 <intralanman> i can't give you a definitive yes right now.... i'll have to play with it and get back to yo
u
2007-05-08T02:19:22 <xming> Destinations is easy too
2007-05-08T02:19:28 <intralanman> it's definitely a lot clearer now than when i started this
2007-05-08T02:19:39 <intralanman> yeah, those two i pretty much got already and started populating
2007-05-08T02:19:45 <xming> I just explained Rates
2007-05-08T02:20:08 <intralanman> yeah, so i should have it
2007-05-08T02:20:24 <intralanman> i just don't understand why the "Modifier" is there
2007-05-08T02:20:48 <xming> oh I still have the DP here
2007-05-08T02:21:10 <xming> exten => 2222,1, Answer()
2007-05-08T02:21:10 <xming> exten => 2222,n, lcr( 32312345 | NOCAPA | 0)
2007-05-08T02:21:10 <xming> exten => 2222,n, NoOp(${DIALSTRING})
2007-05-08T02:21:10 <xming> exten => 2222,n, NoOp(${PREFIX})
2007-05-08T02:21:10 <xming> exten => 2222,n, NoOp(${ROUTESLEFT})
2007-05-08T02:21:12 <xming> exten => 2222,n, Hangup
2007-05-08T02:21:17 <intralanman> !pb
2007-05-08T02:21:19 <weaverbot> "pb" is pastebin - please post more than 3 lines at http://pastebin.ca/
2007-05-08T02:21:22 <intralanman> lol
2007-05-08T02:21:36 <xming> http://pastebin.ca/476320
2007-05-08T02:21:47 <intralanman> roflmao
2007-05-08T02:22:24 <xming> expires is not used
2007-05-08T02:22:39 <xming> last one is Providers
2007-05-08T02:22:50 <xming> active or not simple
2007-05-08T02:23:14 <intralanman> yeah, that one's simple too
2007-05-08T02:23:22 <xming> dialstring is how you want Dial() to dial
2007-05-08T02:23:29 <xming> without the tel no.
2007-05-08T02:23:44 <xming> max_concurrent is not used
2007-05-08T02:23:56 <xming> that's all
2007-05-08T02:24:09 <xming> use NoOP to find out what you get :-)
2007-05-08T02:24:22 <intralanman> hmmm, i usually use Verbose, but ok
2007-05-08T02:24:34 <xming> or Verbose
2007-05-08T02:24:48 <xming> can Verbose print vars?
2007-05-08T02:25:02 <intralanman> yeah
2007-05-08T02:25:20 <xming> oh, and there is sqlite version too, but it doesn't have FK
2007-05-08T02:25:39 <xming> if you want you can port the schema to postgres :)
2007-05-08T02:25:48 <xming> and infomix, sysbase, ...
2007-05-08T02:26:06 <intralanman> nah, i *might* do postgres
2007-05-08T02:26:17 <intralanman> but i think i have to install it first :)
2007-05-08T02:26:25 <xming> ther eis not need to change the code, just schema
2007-05-08T02:27:04 <xming> maybe we should get rid of all those odbc/mysql/postgres stuffs