Call Limit or timer

Hello,

Is any way to control the following incoming call to specific time, let said 5 minuts?

[DID_Communications_default]
exten = XXXXXXXXXX,1,DISA(no-password|CallingRule_International)

Best regards,

Al

[DID_Communications_default]
exten = XXXXXXXXXX,1,Set(TIMEOUT(absolute)=300) ;timeout is in seconds
exten = XXXXXXXXXX,2,DISA(no-password|CallingRule_International) 

Not verified, should work.

Cheers.

Marco Bruni
www.marcobruni.net

Also this post could be interesting to you, about how to limit a call started with Dial() and how to tell the caller the limit is approaching: forums.digium.com/viewtopic.php?t=69449 .

Cheers.

Marco Bruni
www.marcobruni.net

Thank Marco.

I saw that post but is dial() for outbound call? I will try your sugestion.

Regads,

Al

Sure.

Cheers.

Marco Bruni
www.marcobruni.net

so, I can not use same feature like advice caller with time remaining… in the example you give me?

Regads,

Al

Also, I tried your suggestion but when asterisk disconnect the call give me the following. Stay in a loop indefinitely. any suggestion?

[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.
[Jun 23 11:24:27] ERROR[3280]: channel.c:2043 __ast_read: ast_read() called with no recorded file descriptor.

upgrade your version of asterisk. I believe there was a bug in the 1.4 branch which caused that exact problem.

Thank G2010,

That works no more loop.

Hello Marco,

is this the right syntax for your second suggestion?

exten = 1-dial,1,Dial(${ARG1},L(180000:120000:30000))

I am getting this warning…

[Jun 23 17:43:02] WARNING[12773]: app_dial.c:1387 dial_exec_full: Invalid timeout specified: ‘L(180000:120000:30000)’

Also I tried this…
exten = 1-dial,1,Dial(${ARG1} | L(180000:120000:30000))

[Jun 23 18:00:20] WARNING[13929]: app_dial.c:1387 dial_exec_full: Invalid timeout specified: ’ L(180000:120000:30000)’

best regards?

I think you need an extra comma before the flags parameter, also use “=>” not just “=”, so it should be:

exten => 1-dial,1,Dial(${ARG1},,L(180000:120000:30000)) 

Cheers.

Marco Bruni
www.marcobruni.net

Hello Marco,

Thank you, works

Best regdas,

Al