Hello All, Found some strange problem while Asterisk trying to call the AGI file. If I pick up the call on the first attempt, it will execute my AGI file properly. But if I don't pick up the call and let Asterisk call me again, it adds StartRetry next to my AGI file name. Which will cause the AGI to fail to execute. -- Attempting call on SIP/5181 for application AGI(recordvoice.php) (Retry 1) -- Attempting call on SIP/5181 for application AGI(*recordvoice.phpStartRetry: 3700 1 (1182971439)*) (Retry 2) -- Attempting call on SIP/5181 for application AGI(*recordvoice.phpStartRetry: 3700 1 (1182971439)*) (Retry 3) > Channel SIP/08f39360 was answered. > Launching AGI(*recordvoice.phpStartRetry*: 3700 1 (1182971439)) on SIP/08f39360 -- Launched AGI Script /var/lib/asterisk/agi-bin/*recordvoice.phpStartRetry: 3700 1 (1182971439)* -- AGI Script *recordvoice.phpStartRetry: 3700 1 (1182971439)* completed, returning 0 Can anyone help? By the way I am executing using *.call file. File make.call: - Channel: SIP/5181 MaxRetries: 3 RetryTime: 30 WaitTime: 15 Application: AGI Data: recordvoice.php Cheers, Nitesh
Hello All, Please anyone can help me with this error... Found some strange problem while Asterisk trying to call the AGI file. If I pick up the call on the first attempt, it will execute my AGI file properly. But if I don't pick up the call and let Asterisk call me again, it adds "StartRetry: 3700 1 (1182971439)" next to my AGI file name, which will cause the AGI to fail to execute. -- Attempting call on SIP/5181 for application AGI(recordvoice.php) (Retry 1) -- Attempting call on SIP/5181 for application AGI(recordvoice.phpStartRetry: 3700 1 (1182971439)) (Retry 2) -- Attempting call on SIP/5181 for application AGI(recordvoice.phpStartRetry: 3700 1 (1182971439)) (Retry 3) > Channel SIP/08f39360 was answered. > Launching AGI(recordvoice.phpStartRetry: 3700 1 (1182971439)) on SIP/08f39360 -- Launched AGI Script /var/lib/asterisk/agi-bin/recordvoice.phpStartRetry: 3700 1 (1182971439) -- AGI Script recordvoice.phpStartRetry: 3700 1 (1182971439) completed, returning 0 Can anyone help? By the way I am executing using *.call file. File make.call: - Channel: SIP/5181 MaxRetries: 3 RetryTime: 30 WaitTime: 15 Application: AGI Data: recordvoice.php Cheers, Nitesh
Nitesh Divecha wrote:> Found some strange problem while Asterisk trying to call the AGI file. > If I pick up the call on the first attempt, it will execute my AGI file > properly. > But if I don't pick up the call and let Asterisk call me again, it adds > StartRetry next to my AGI file name. > Which will cause the AGI to fail to execute.From a quick look at the code, it looks like you can resolve this problem by making sure that there is a newline at the end of your call file. If there isn't, this problem will occur. I do consider it a bug that this can happen. I'm going to go ahead and fix it. But, that is what you can do to make it work until the fix makes it into a release. -- Russell Bryant Software Engineer Digium, Inc.