Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-03-28 Thread Kneeoh
mmm. I really don't want to use the fifo. Thats the problem I have now. I 
already have an iterative script to do what you describe. Instead I want to use 
the mi_xmlrpc_ng interface to interact with the dialog module. Instead of 
listing dialogs via the xmlrpc interface and using an external parser to get 
all the dialog ids, I just want to say "kill all dialogs" or more specifically, 
"kill all dialogs with these attributes".

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-03-28 Thread Liviu Chircu

Hello Kneeoh,

Point taken. I just added this feature on the list!

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 03/28/2014 07:30 PM, Kneeoh wrote:

mmm. I really don't want to use the fifo. Thats the problem I have now. I already have an iterative 
script to do what you describe. Instead I want to use the mi_xmlrpc_ng interface to interact with 
the dialog module. Instead of listing dialogs via the xmlrpc interface and using an external parser 
to get all the dialog ids, I just want to say "kill all dialogs" or more specifically, 
"kill all dialogs with these attributes".

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-03-28 Thread Liviu Chircu

Sure,

while read line; do a=`cut -d ':' -f1 <<< $line`; b=`cut -d ':' -f2 <<< 
$line`; opensipsctl fifo dlg_end_dlg $a $b; done < <(opensipsctl fifo 
dlg_list | grep dialog: | tr -s ' ' | cut -d '=' -f2)


That should get the job done :)

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 03/28/2014 05:40 PM, Kneeoh wrote:

Is there a method to kill ALL calls with dlg_end_dlg blindly? w/o having to 
pass the hash of the dlg_id?

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-03-29 Thread Kneeoh
Thanks Liviu! I was speaking with a colleague yesterday about this and had a 
great idea for a feature while I have your attention. We thought it would be 
cool to have a hangup by dialog profile function.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-04-15 Thread Brett Nemeroff
Hi Liviu,
I think this would be a very useful feature as well. Specifically I'd like
to be able to say something like
:dlg_end_profile


and it'd hang up all calls (dlg_end_dlg method) all calls in that profile.
Given that you already know what calls are in a profile, this should be a
very efficient way to hangup an entire account, gateway, customer, etc
rather than iterating any kind of dialog list.

Just my $0.02. Thanks!
-Brett



On Fri, Mar 28, 2014 at 12:35 PM, Liviu Chircu  wrote:

> Hello Kneeoh,
>
> Point taken. I just added this feature on the list!
>
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 03/28/2014 07:30 PM, Kneeoh wrote:
>
>> mmm. I really don't want to use the fifo. Thats the problem I have now. I
>> already have an iterative script to do what you describe. Instead I want to
>> use the mi_xmlrpc_ng interface to interact with the dialog module. Instead
>> of listing dialogs via the xmlrpc interface and using an external parser to
>> get all the dialog ids, I just want to say "kill all dialogs" or more
>> specifically, "kill all dialogs with these attributes".
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-04-15 Thread Jeff Pyle
Very useful indeed.  +1



- Jeff


On Tue, Apr 15, 2014 at 10:28 AM, Brett Nemeroff  wrote:

> Hi Liviu,
> I think this would be a very useful feature as well. Specifically I'd like
> to be able to say something like
> :dlg_end_profile
> 
>
> and it'd hang up all calls (dlg_end_dlg method) all calls in that profile.
> Given that you already know what calls are in a profile, this should be a
> very efficient way to hangup an entire account, gateway, customer, etc
> rather than iterating any kind of dialog list.
>
> Just my $0.02. Thanks!
> -Brett
>
>
>
> On Fri, Mar 28, 2014 at 12:35 PM, Liviu Chircu  wrote:
>
>> Hello Kneeoh,
>>
>> Point taken. I just added this feature on the list!
>>
>>
>> Best regards,
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 03/28/2014 07:30 PM, Kneeoh wrote:
>>
>>> mmm. I really don't want to use the fifo. Thats the problem I have now.
>>> I already have an iterative script to do what you describe. Instead I want
>>> to use the mi_xmlrpc_ng interface to interact with the dialog module.
>>> Instead of listing dialogs via the xmlrpc interface and using an external
>>> parser to get all the dialog ids, I just want to say "kill all dialogs" or
>>> more specifically, "kill all dialogs with these attributes".
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dlg_end_dlg ALL?

2014-04-15 Thread Ali Pey
I second this as well. +1

Thanks,
Ali Pey



On Tue, Apr 15, 2014 at 10:48 AM, Jeff Pyle  wrote:

> Very useful indeed.  +1
>
>
>
> - Jeff
>
>
> On Tue, Apr 15, 2014 at 10:28 AM, Brett Nemeroff wrote:
>
>> Hi Liviu,
>> I think this would be a very useful feature as well. Specifically I'd
>> like to be able to say something like
>> :dlg_end_profile
>> 
>>
>> and it'd hang up all calls (dlg_end_dlg method) all calls in that
>> profile. Given that you already know what calls are in a profile, this
>> should be a very efficient way to hangup an entire account, gateway,
>> customer, etc rather than iterating any kind of dialog list.
>>
>> Just my $0.02. Thanks!
>> -Brett
>>
>>
>>
>> On Fri, Mar 28, 2014 at 12:35 PM, Liviu Chircu wrote:
>>
>>> Hello Kneeoh,
>>>
>>> Point taken. I just added this feature on the list!
>>>
>>>
>>> Best regards,
>>>
>>> Liviu Chircu
>>> OpenSIPS Developer
>>> http://www.opensips-solutions.com
>>>
>>> On 03/28/2014 07:30 PM, Kneeoh wrote:
>>>
 mmm. I really don't want to use the fifo. Thats the problem I have now.
 I already have an iterative script to do what you describe. Instead I want
 to use the mi_xmlrpc_ng interface to interact with the dialog module.
 Instead of listing dialogs via the xmlrpc interface and using an external
 parser to get all the dialog ids, I just want to say "kill all dialogs" or
 more specifically, "kill all dialogs with these attributes".

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users