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