Dears,
Am able to route call using LCR module from anywhere. I need to use certain option in the lcr tables in order to specify the ip of which calls is generated.
I suppose that the From_uri column in LCR module meets my requirement, yet am not able to make it work and confused after reading several docs.
My question is in what form should the from_uri column be? Is the ip enough?
Are the Load params used below missing?
modparam("lcr", "db_url","mysql://openser:openserrw@localhost/openser")
modparam("lcr","lcr_gw_table","lcr_gw")
modparam("lcr","from_uri_column","from_uri")
modparam("lcr","priority_column","priority")
modparam("lcr","gw_uri_avp", "$avp(i:709)")
modparam("lcr","ruri_user_avp", "$avp(i:500)")
modparam("lcr", "flags_avp", "$avp(i:712)")
modparam("lcr","lcr_id_avp","$avp(s:lcr_id_avp)")
What should I change in the routing script to consider the from_uri?
if (!load_gws("1")) {
sl_send_reply("503", "Unable To lOad GatEwAyS");
exit;}
if(!next_gw()){
sl_send_reply("503", "Unable To fInD a gateWaY");
exit;}
Thanks in advance,
F Chahrour