[Home]

Summary:ASTERISK-05035: Add ability for call files to run an application on success, failure and retry
Reporter:Steve Hanselman (shanselman)Labels:
Date Opened:2005-09-09 07:16:19Date Closed:2005-09-13 18:33:18
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Specifically I'd like to send an email, but if the ability to run an application was there then we could do whatever we needed.

I'd like to see three new keywords added to pbx_spool.c tpo handle:

failure_app,retry_app and success_app

Failure_app would run after all the retries were exhausted.
Retry_app would run at the end of an attempt if there were any retries left.
Success_app would run if the call completes.

Comments:By: Olle Johansson (oej) 2005-09-09 07:56:35

Hey, you can do this in the dialplan today. Point your call file to an extension instead of an app and run whatever you like.

By: Steve Hanselman (shanselman) 2005-09-09 08:24:42

This isn't the place to ask this (but I will anyhow), can I retrieve the details from the call file in the extension (e.g. fax names, numbers etc)?

By: Steve Hanselman (shanselman) 2005-09-09 09:12:19

http://www.voip-info.org/tiki-index.php?page=Asterisk%20auto-dial%20out

By: Steve Hanselman (shanselman) 2005-09-09 09:14:48

I can't see how you'd track retries?

By: Brian West (bkw918) 2005-09-09 09:23:17

you use the dialstatus and other various status variables.

/b

By: Olle Johansson (oej) 2005-09-09 09:50:23

Ok, this is no longer a bug or a feature request. If you want to continue this discussion, take it on the mailing list or on the IRC channel. Good luck with your solution!

/Olle

By: Steve Hanselman (shanselman) 2005-09-12 09:07:18

Ok, I can't see how with the current structure you could sense the retries without jumping through hoops?

I'm going to add two variables to pbx_spool SPOOL_RETRY and SPOOL_MAXRETRY.

spool_retry=1 = initial call
spool_retry=spool_maxretry=last attempt

This will then allow me to do what I need to do, unless you can suggest another way?

By: Olle Johansson (oej) 2005-09-12 10:11:22

Look at retrydial()

By: Steve Hanselman (shanselman) 2005-09-12 10:14:59

Thanks!

Close this (can I close mantis entries I open, can't see how?)