[OpenSIPS-Users] How do you get list of dialog ids that are active for load balancer id?

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Mar 23 11:53:44 EDT 2017


Hi Robert,

In dlg_listoutput in dialog->CALLEES->callee->callee_contact you should 
have the IP of the GW - so you can identify the calls still in relation 
to a certain GW, right ?

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/23/2017 05:32 PM, Mundkowsky, Robert wrote:
>
> Thanks for the response, but I think dlg_list does not contain any 
> information to know which load balancer gateway the dialog is using?
>
> Basically trying to do this:
>
> 1)Disable one of the gateways a load balancer is using
>
> 2)Then wait a reasonable amount of time for all active calls over that 
> gateway to finish
>
> 3)Then if some calls are still active for that gateway, end them and 
> make sure both sides get SIP BYE
>
> Robert Mundkowsky
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* Wednesday, March 22, 2017 4:47 PM
> *To:* OpenSIPS users mailling list <users at lists.opensips.org>; 
> Mundkowsky, Robert <rmundkowsky at ets.org>
> *Subject:* Re: [OpenSIPS-Users] How do you get list of dialog ids that 
> are active for load balancer id?
>
> Hi Robert,
>
> The dlg_end_dlg MI function ( 
> http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#dlg_end_dlg 
> ) can be triggered via any of the MI backends.
>
> Also, instead of looking in the "dialog" table (which has older 
> information), better use the "dlg_list" MI function to get the 
> realtime list of ongoing calls.
>
> Regards,
>
> Bogdan-Andrei Iancu
>    OpenSIPS Founder and Developer
>    http://www.opensips-solutions.com
> OpenSIPS Summit May 2017 Amsterdam
>    http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 03/08/2017 10:28 PM, Mundkowsky, Robert wrote:
>
>     Argh, but there is no way to call dlg_end_dlg since it is not an
>     MI function?
>
>     Robert Mundkowsky
>
>     *From:*Mundkowsky, Robert
>     *Sent:* Wednesday, March 8, 2017 3:22 PM
>     *To:* 'OpenSIPS users mailling list' <users at lists.opensips.org>
>     <mailto:users at lists.opensips.org>
>     *Subject:* RE: How do you get list of dialog ids that are active
>     for load balancer id?
>
>     Think I figured it out. Info is in Dialog table in database in
>     to_uri column
>
>     Robert Mundkowsky
>
>     *From:*Mundkowsky, Robert
>     *Sent:* Wednesday, March 8, 2017 2:24 PM
>     *To:* 'OpenSIPS users mailling list' <users at lists.opensips.org
>     <mailto:users at lists.opensips.org>>
>     *Subject:* RE: How do you get list of dialog ids that are active
>     for load balancer id?
>
>     Forgot to mention I am trying to do this from Python script using
>     XMLRPC to OpenSIPS server.
>
>     Robert Mundkowsky
>
>     *From:*Mundkowsky, Robert
>     *Sent:* Wednesday, March 8, 2017 1:24 PM
>     *To:* OpenSIPS users mailling list <users at lists.opensips.org
>     <mailto:users at lists.opensips.org>>
>     *Subject:* How do you get list of dialog ids that are active for
>     load balancer id?
>
>     How do you get list of dialog ids that are active for load
>     balancer id?
>
>     For example, if I want to end a call on a specific load balancer
>     gateway, I want to invoke “dlg_end_dlg(dlg_id). But I don’t see
>     any information that can help me get mapping between dlg_id  and
>     Load Balancer gateway id.
>
>     Robert Mundkowsky
>
>     ------------------------------------------------------------------------
>
>     This e-mail and any files transmitted with it may contain
>     privileged or confidential information. It is solely for use by
>     the individual for whom it is intended, even if addressed
>     incorrectly. If you received this e-mail in error, please notify
>     the sender; do not disclose, copy, distribute, or take any action
>     in reliance on the contents of this information; and delete it
>     from your system. Any other use of this e-mail is prohibited.
>
>     Thank you for your compliance.
>
>     ------------------------------------------------------------------------
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> This e-mail and any files transmitted with it may contain privileged 
> or confidential information. It is solely for use by the individual 
> for whom it is intended, even if addressed incorrectly. If you 
> received this e-mail in error, please notify the sender; do not 
> disclose, copy, distribute, or take any action in reliance on the 
> contents of this information; and delete it from your system. Any 
> other use of this e-mail is prohibited.
>
>
> Thank you for your compliance.
>
> ------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170323/5a273a07/attachment-0001.html>


More information about the Users mailing list