Thanks for creating this branch away from the seemingly stagnant SER project. I have in the past seen that requests for help or features have fallen on empty replies as evidenced while searching the mailing lists. I hope that this will be different here.
I hope that be able to contribute back to this project once I become more versed in the inner workings as I see a very strong need for the following:
Route lookups based on OCN/LERG data and carrier cost tables. (I already have the queries to do the but not the means to implement yet) This function would set say a defined number of flags to indicate outbound carriers based on cost. Having a module to do this would allow LCR lookups with fallover capabilities but based on OCN's and carrier data.
Something else I would like to see is a way of using avops to set a fr_inv_timeout value. For instance:
if (avp_db_load("$ruri/username", "s:voicemail")) { if (avp_check("s:voicemail", "eq/y/i")) { xlog("L_N", "\033[1m\033[36m ROUTE[0] - s:voicemail = y \033[0m\n"); # recipient has voicemail enabled. set flag(31) setflag(31);
# test for a user set timeout
if (avp_db_load("$ruri/username", i:vmtimeout")) { avp_write("$vmtimeout", s:callee_fr_inv_timer"); }; }; };
Thanks! Kristin
____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com
Hi Kristin,
First thanks for your positive feedback.
Now, regarding the two questions:
1) I have to admit I'm not so much into PSTN stuff to fully understand all the Local Exchange Routing stuff :(. What already exists, is the LCR module with offers routing based on prefixes and rules - how the rules are defined may reflect cost policies. If this is not what you are looking for, maybe an explanation more for an "IP" guy will help.
2) there is such a support; to set the timeout for VM redirect do like this: #configure TM to use the correct AVP for timeout modparam("tm","fr_inv_timer_avp","i:10") .... .... if (avp_db_load("$ruri/username", "s:voicemail")) { if (avp_check("s:voicemail", "eq/y/i")) { setflag(31); # test for a user set timeout avp_db_load("$ruri/username","i:10")) }; #set failure route to redirect to VM t_on_failure(x); }; t_relay();
each time t_relay() is called, the TM function will use the "i:10" avp to fetch from it the value of timeout. This avp must contain an integer value.
Note that "i:vmtimeout" is not an invalid AVP specification -the "i:" prefix says is an ID name AVP, so an integer value must value (the ID). Take a look at http://www.openser.org/docs/ -> "Tutorials" -> "AVPOPS module tutorial" - there is a good AVP tutorial (see chapter 3 for AVP definition).
regards, bogdan
Kristin Galway wrote:
Thanks for creating this branch away from the seemingly stagnant SER project. I have in the past seen that requests for help or features have fallen on empty replies as evidenced while searching the mailing lists. I hope that this will be different here.
I hope that be able to contribute back to this project once I become more versed in the inner workings as I see a very strong need for the following:
Route lookups based on OCN/LERG data and carrier cost tables. (I already have the queries to do the but not the means to implement yet) This function would set say a defined number of flags to indicate outbound carriers based on cost. Having a module to do this would allow LCR lookups with fallover capabilities but based on OCN's and carrier data.
Something else I would like to see is a way of using avops to set a fr_inv_timeout value. For instance:
if (avp_db_load("$ruri/username", "s:voicemail")) { if (avp_check("s:voicemail", "eq/y/i")) { xlog("L_N", "\033[1m\033[36m ROUTE[0] - s:voicemail = y \033[0m\n"); # recipient has voicemail enabled. set flag(31) setflag(31);
# test for a user set timeout if (avp_db_load("$ruri/username",
i:vmtimeout")) { avp_write("$vmtimeout", s:callee_fr_inv_timer"); }; }; };
Thanks! Kristin
____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users