[OpenSIPS-Users] use dialog module to distribute calls

Vik Killa vipkilla at gmail.com
Mon Feb 20 16:51:14 CET 2012

Follow-up on this post, I've been able to track which freeswitch
server the dialog exists on by using:
$dlg_val(caller) = $fU;
$dlg_val(callee) = $rU;
$dlg_val(host) = $du;

Now my problem is, if a call is transferred more than once, and all
the calls associated with the dialog end, the dialog is never removed
from the dialog table.
Any help would be appreciated, thanks.

On Mon, Feb 20, 2012 at 8:05 AM, Vik Killa <vipkilla at gmail.com> wrote:
> I'm running OpenSIPS in front of several FreeSWITCH servers. I want
> OpenSIPS to randomly distribute the calls to the FreeSWITCH servers
> for all initial dialogs of a UA.
> But if a UA has a dialog in progress, I want to be able to check which
> FreeSWITCH server the dialog exists on and then send any calls to/from
> that UA to the same FS server. Once the UA has no dialogs in progress,
> any future calls to/from that UA will randomly go to a FreeSWITCH
> server again.
> I'm quite certain this is possible using avp_query to check the dialog
> table, but is there an easier of more efficient way of doing this
> using dialog functions?
> Thanks in advance.

More information about the Users mailing list