[cisco-voip] CM v9 limiting call duration

Stephen Welsh stephen.welsh at unifiedfx.com
Wed Jan 8 15:29:04 EST 2014


My understanding is CURRI only applies at call setup, so you could record the start time of all/selected calls, but you would need to use a separate mechanism to terminate the chosen long running calls.

Personally I’d use a combination of CURRI and CTI, a simple web app could keep track of the calls that need to be terminated based on received CURRI POST’s from CUCM, save that information to a small local DB. Then a separate process/service queries the database and if it finds any call records past the desired duration still active it can then use CTI to disconnect the call. Using CTI you could even post a friendly text message to the IP Phone to notify/warn them if you felt like it.

This is more efficient that just using CTI on it’s own as you would have to continually monitor all relevant calls in order to determine the duration, something you can’t query via CTI, however that makes me thing of another option…..

Phone WebServer Method:
There is a sneaky little trick you could use if you know the call to disconnect will only terminate on certain IP Phones, you can query the following url on the phone:

http://[PhoneIP]/CGI/CallInfo

This provides call information for the primary line including call duration, so you could scan the range of phones periodically, if any are found with a duration larger that the limit you can then do a HTTP POST to the phones web server with a CiscoIPPhonExecute Object with a ‘Key:Soft2’ URI to press the second soft key (assuming the default layout is active). You can also push a text message using this method by POSTing a CiscoIPPhoneText object.

Obviously a packaged technology like a SBC would be the easiest option to deploy/maintain, but if you have the resources to do some development one of the above may be worth considering.

If I had some spare time it would be an interesting app to develop ;)

Thanks

Stephen

On 8 Jan 2014, at 12:28, Heim, Dennis <Dennis.Heim at wwt.com<mailto:Dennis.Heim at wwt.com>> wrote:

I wonder if this is something the CURRI/Routing Rules API would support.

Dennis Heim | Solution Architect (Collaboration)
World Wide Technology, Inc. | 314-212-1814

PS Engineering:  Innovate & Ignite.


From: cisco-voip [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of khaled Saholy
Sent: Wednesday, January 08, 2014 12:37 AM
To: Wes Sisk (wsisk)
Cc: cisco-voip voyp list; Matthew Collins
Subject: Re: [cisco-voip] CM v9 limiting call duration

Thank you Wes for your input.

I'll look into TCl scripting or SIP normalization scripting and see if I can find something.

Regards.

Khaled
________________________________
From: wsisk at cisco.com<mailto:wsisk at cisco.com>
To: khaled_saholy at hotmail.com<mailto:khaled_saholy at hotmail.com>
CC: mcollins at block.co.uk<mailto:mcollins at block.co.uk>; cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
Subject: Re: [cisco-voip] CM v9 limiting call duration
Date: Tue, 7 Jan 2014 20:45:09 +0000

Nothing that granular in UCM AFAIK. Perhaps a TCL script on CUBE or H.323/MGCP GW?

There *might* be something possible in the new SIP normalization scripting, not sure.

-Wes

On Jan 7, 2014, at 8:34 AM, khaled Saholy <khaled_saholy at hotmail.com<mailto:khaled_saholy at hotmail.com>> wrote:


Hi Matthew,

Thanks for your reply.

If it's a service parameter, it'll be applied to all outgoing calls and not on a specific route pattern. Is that right?

Have you or any one seen or tried a solution like this?

I'm looking for limiting duration of some calls.

Regards.

Khaled




________________________________
From: mcollins at block.co.uk<mailto:mcollins at block.co.uk>
To: khaled_saholy at hotmail.com<mailto:khaled_saholy at hotmail.com>; cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
Subject: RE: [cisco-voip] CM v9 limiting call duration
Date: Tue, 7 Jan 2014 13:20:05 +0000
Hi Khaled ,

Under service parameters, This is taken from v8 but I’m sure it was in version 5 and above

Maximum Call Duration Timer: <image001.gif>

This parameter specifies the minutes that a call can remain active before Cisco CallManager clears it. A value of zero disables the timer.



This is a required field.



Default:  720



Minimum:  0



Maximum:  35791



Unit: min



Regards

Matthew


From: cisco-voip [mailto:cisco-voip-bounces at puck.nether.net<mailto:voip-bounces at puck.nether.net>] On Behalf Of khaled Saholy
Sent: 07 January 2014 13:05
To: cisco-voip voyp list
Subject: [cisco-voip] CM v9 limiting call duration

Hi All,

I just have a request from our customer about a feature exists in Legacy PABX which is limiting call duration to a PSTN destination (for example, mobile calls) to a specified time like 30 minutes or more or less according to the customer needs.

I haven't come to a solution in CM 7 or 8 but if there's any idea about it in these versions or the latest 9.x , I'll be thankful for that.

Waiting for your inputs.

Thanks and Regards.

Khaled Al-Saholy
_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip

_______________________________________________
cisco-voip mailing list
cisco-voip at puck.nether.net<mailto:cisco-voip at puck.nether.net>
https://puck.nether.net/mailman/listinfo/cisco-voip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20140108/ce224840/attachment.html>


More information about the cisco-voip mailing list