[asterisk-users] How to measure call lenght and act upon it?

Rennes Neps Rennes.Neps at norby.ee
Thu Aug 28 03:56:07 CDT 2008


Hei!

I need to accomplish something and I don't know how. Asterisk version is 1.2.13. I need to make a routing decision based on how long the call has been in ringing state. Lets say I have a few extensions and I want to ring each of them for 5 seconds (I can't use queue for technical reasons) Of course when some exten is busy it will try the next and so on. But the difficult part is, I want to play a file when call has been ringing for 10 seconds. No matter where in the routing the call may be ringing at that moment. There for I can't just play the file inside the routing.
	Is there some counter or variable which I could check before each next hop? Or do I have to do the math based on timestamp? That could be messy ... for me at least.

Best regards

Rennes Neps
Norby Telecom


No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.6.10/1638 - Release Date: 27.08.2008 19:06



More information about the asterisk-users mailing list