[OpenSIPS-Users] Directing transfer calls to same gateway
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Nov 24 07:33:08 CET 2009
Hi Ross,
It is essential to understand what transfer method you are using (to see
how to catch it and force it to the same gw) - REFER based ? or ?
Regards,
Bogdan
Ross Beer wrote:
> 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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list