[OpenSIPS-Users] Directing transfer calls to same gateway

Ross Beer beer.ross at googlemail.com
Mon Nov 23 20:36:05 CET 2009


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



More information about the Users mailing list