[OpenSIPS-Users] Directing transfer calls to same gateway
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Nov 24 16:07:18 CET 2009
Hi Ross,
The dialog profiles are stored in DB only when a restart
occurs...Otherwise not.
Also, the profile info is loaded from DB only at startup and not during
runtime.....more or less, there is not way to share the profile info
between multiple servers.
Regards,
Bogdan
Ross Beer wrote:
> Hi Bogdan,
>
> I have solved the issue. I am using attended and blind transfers.
>
> Using the dialog module I have added the calls to a profile using the
> user name and then when another call comes in the script checks the
> size of the profile for a given user.
>
> There is a profile for each gateway, so when the check is done if
> there is more than one call in a given profile the next call is sent
> to the that gateway.
>
> This has led to a question though, are dialog profiles stored in the
> database so that other servers are aware of the dialog?
>
> Thanks,
>
> Ross
>
> 2009/11/24 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>
>> 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
>>>
>>> __
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list