Hi,
Is there a way to direct calls from a user based on an active
dialogue, for example record what gateway a call originated from and
then if the called user transfers a call send the request via the same
gateway?
I have seen:
set_dlg_profile("caller","$fu");
Can this be used to identify a dialogue to a user by setting the value
to the username and and then setting a gateway value using:
store_dlg_value("gateway","address")
On a new invite for a user, I would use something like:
if(is_in_profile("caller","$fu"))
{
fetch_dlg_value("gateway",pvar)
// REWRITE HOST USING GATEWAY ADDRESS
}
Is this correct way to manage routing based on previous dialogues?
Also are these details avalible accross multiple servers when stored
in a common database?
Thank you for your advice,
Ross
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users