[asterisk-users] Prompt for PIN After dialing
Hello All, We would like to change our dialplan a bit so that after a user dials a number (any number, including domestic, international, internal) Asterisk firsts prompts the user for a PIN before actually allowing the call to go through. I know I could setup an IVR that would accomplish this but I'd prefer not to have the users first call an internal extension before they dial out. I want them to be able to dial the destination number directly, have asterisk intercept and prompt for password, then either allow the call or play a .gsm file and hangup if the PIN is incorrect. We are using AELs, and not the exten,x,x format. Thanks in advance, Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
Thanks Danny. Changing the ownership of the .call files seems to have fixed the problem and I can now see that asterisk is adding a "StartRetry" line to the end of the file after it makes the first call, which it was unable to do before since the file was owned by root: cp test5703.call /tmp/test.call && chown asterisk:asterisk /tmp/test.call && mv /tmp/test.call /var/spool/asterisk/outgoing/ Thanks, Brandon On 08/29/2011 05:41 PM, Danny Nicholas wrote: Asterisk has to be able to execute and rewrite the file - the call file is updated in place and when the call is considered successful, removed. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Monday, August 29, 2011 4:28 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Possible Bug? .call files executing multiple times Also I should note that we use the 'noatime' attribute on the /var filesystem, would this cause the problem below? On 08/29/2011 05:22 PM, Brandon Phelps wrote: Here is the contents of the .call file. The file is the same before the move as after (I did a cat on the file after the move, while the phone was ringing a second time): Channel: Local/5703@ext-main Callerid: "MyCompany"<8005551234> Set: TicketNumber=100 Set: CallerID_Num=8005551234 Set: CALLSTATUS=0 Context: ext-autodialer MaxRetries: 0 WaitTime: 45 Extension: s Priority: 1 We have tried using a SIP channel as well (as opposed to Local) with the same results. The s extension of ext-autodialer runs an AGI script which makes use of those Set: variables. I can most easily reproduce the problem by simply not answering the call. After 2 or 3 rings line 2 on the phone lights up indicating another call. If I reject the first call and answer the second call, it's the same script. Also during my most recent test the following happened: 1. I moved file to /var/spool/asterisk/outgoing 2. Phone rang on line 1 3. I let phone continue to ring 4. After 3 rings, line 2 started ringing (another call from the same .call file) 5. I rejected both calls, sending both to voicemail. 6. 6 or 7 seconds after rejecting both calls, the phone rang a 3rd time. 7. I let the phone ring until it was automatically moved to voicemail and finally the .call file was removed. On 08/29/2011 11:00 AM, Danny Nicholas wrote: Can you post the .call file (with called number blacked out) before call and after 1-2 calls? (file 1 should be before you mv to /v/s/a/o, file 2 should be from /v/s/a/o). -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Monday, August 29, 2011 8:45 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Possible Bug? .call files executing multiple times On 08/19/2011 09:14 AM, Brandon Phelps wrote: Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Sorry to bring this back up but I am still having this issue and haven't had any luck resolving it. It should be noted that the .call files in question are set to MaxRetries: 0, and simply connect the call to the 's' extension in a custom context. From there the context is pretty complicated, running some AGI scripts along with some dealing with user input, basically a simple IVR. Any help would be appreciated. Thanks, Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _
Re: [asterisk-users] Possible Bug? .call files executing multiple times
Also I should note that we use the 'noatime' attribute on the /var filesystem, would this cause the problem below? On 08/29/2011 05:22 PM, Brandon Phelps wrote: Here is the contents of the .call file. The file is the same before the move as after (I did a cat on the file after the move, while the phone was ringing a second time): Channel: Local/5703@ext-main Callerid: "MyCompany" <8005551234> Set: TicketNumber=100 Set: CallerID_Num=8005551234 Set: CALLSTATUS=0 Context: ext-autodialer MaxRetries: 0 WaitTime: 45 Extension: s Priority: 1 We have tried using a SIP channel as well (as opposed to Local) with the same results. The s extension of ext-autodialer runs an AGI script which makes use of those Set: variables. I can most easily reproduce the problem by simply not answering the call. After 2 or 3 rings line 2 on the phone lights up indicating another call. If I reject the first call and answer the second call, it's the same script. Also during my most recent test the following happened: 1. I moved file to /var/spool/asterisk/outgoing 2. Phone rang on line 1 3. I let phone continue to ring 4. After 3 rings, line 2 started ringing (another call from the same .call file) 5. I rejected both calls, sending both to voicemail. 6. 6 or 7 seconds after rejecting both calls, the phone rang a 3rd time. 7. I let the phone ring until it was automatically moved to voicemail and finally the .call file was removed. On 08/29/2011 11:00 AM, Danny Nicholas wrote: Can you post the .call file (with called number blacked out) before call and after 1-2 calls? (file 1 should be before you mv to /v/s/a/o, file 2 should be from /v/s/a/o). -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Monday, August 29, 2011 8:45 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Possible Bug? .call files executing multiple times On 08/19/2011 09:14 AM, Brandon Phelps wrote: Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Sorry to bring this back up but I am still having this issue and haven't had any luck resolving it. It should be noted that the .call files in question are set to MaxRetries: 0, and simply connect the call to the 's' extension in a custom context. From there the context is pretty complicated, running some AGI scripts along with some dealing with user input, basically a simple IVR. Any help would be appreciated. Thanks, Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
Here is the contents of the .call file. The file is the same before the move as after (I did a cat on the file after the move, while the phone was ringing a second time): Channel: Local/5703@ext-main Callerid: "MyCompany" <8005551234> Set: TicketNumber=100 Set: CallerID_Num=8005551234 Set: CALLSTATUS=0 Context: ext-autodialer MaxRetries: 0 WaitTime: 45 Extension: s Priority: 1 We have tried using a SIP channel as well (as opposed to Local) with the same results. The s extension of ext-autodialer runs an AGI script which makes use of those Set: variables. I can most easily reproduce the problem by simply not answering the call. After 2 or 3 rings line 2 on the phone lights up indicating another call. If I reject the first call and answer the second call, it's the same script. Also during my most recent test the following happened: 1. I moved file to /var/spool/asterisk/outgoing 2. Phone rang on line 1 3. I let phone continue to ring 4. After 3 rings, line 2 started ringing (another call from the same .call file) 5. I rejected both calls, sending both to voicemail. 6. 6 or 7 seconds after rejecting both calls, the phone rang a 3rd time. 7. I let the phone ring until it was automatically moved to voicemail and finally the .call file was removed. On 08/29/2011 11:00 AM, Danny Nicholas wrote: Can you post the .call file (with called number blacked out) before call and after 1-2 calls? (file 1 should be before you mv to /v/s/a/o, file 2 should be from /v/s/a/o). -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Monday, August 29, 2011 8:45 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Possible Bug? .call files executing multiple times On 08/19/2011 09:14 AM, Brandon Phelps wrote: Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Sorry to bring this back up but I am still having this issue and haven't had any luck resolving it. It should be noted that the .call files in question are set to MaxRetries: 0, and simply connect the call to the 's' extension in a custom context. From there the context is pretty complicated, running some AGI scripts along with some dealing with user input, basically a simple IVR. Any help would be appreciated. Thanks, Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
On 08/19/2011 09:14 AM, Brandon Phelps wrote: Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call && mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Sorry to bring this back up but I am still having this issue and haven't had any luck resolving it. It should be noted that the .call files in question are set to MaxRetries: 0, and simply connect the call to the 's' extension in a custom context. From there the context is pretty complicated, running some AGI scripts along with some dealing with user input, basically a simple IVR. Any help would be appreciated. Thanks, Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
Danny, Now that I notice, MaxRetries has a default of 0 anyway, so not setting it should have not retried at all anyway. Although I did set it to 0 manually and still get the double calls. Brandon On 08/19/2011 09:31 AM, Brandon Phelps wrote: We are running version 1.8.5.0. I'll try the Maxtries and see what happens. Brandon On 08/19/2011 09:19 AM, Danny Nicholas wrote: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Friday, August 19, 2011 8:15 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Possible Bug? .call files executing multiple times Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Two things 1. Asterisk 1.8.what? 2. once the call file goes to /v/s/a/o, it becomes a "self-logger"; the file won't "go away" until Asterisk "senses" that the call is successfully completed. You can counteract this by putting Maxtries:1 in your call file. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
Danny, Now that I notice, MaxRetries has a default of 0 anyway, so not setting it should have not retried at all anyway. Although I did set it to 0 manually and still get the double calls. Brandon On 08/19/2011 09:31 AM, Brandon Phelps wrote: We are running version 1.8.5.0. I'll try the Maxtries and see what happens. Brandon On 08/19/2011 09:19 AM, Danny Nicholas wrote: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Friday, August 19, 2011 8:15 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Possible Bug? .call files executing multiple times Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Two things 1. Asterisk 1.8.what? 2. once the call file goes to /v/s/a/o, it becomes a "self-logger"; the file won't "go away" until Asterisk "senses" that the call is successfully completed. You can counteract this by putting Maxtries:1 in your call file. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Possible Bug? .call files executing multiple times
We are running version 1.8.5.0. I'll try the Maxtries and see what happens. Brandon On 08/19/2011 09:19 AM, Danny Nicholas wrote: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Brandon Phelps Sent: Friday, August 19, 2011 8:15 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Possible Bug? .call files executing multiple times Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call&& mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, Two things 1. Asterisk 1.8.what? 2. once the call file goes to /v/s/a/o, it becomes a "self-logger"; the file won't "go away" until Asterisk "senses" that the call is successfully completed. You can counteract this by putting Maxtries:1 in your call file. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Possible Bug? .call files executing multiple times
Hello all, We are setting up an auto-dialer to call customers based on the opening of tickets in our internal ticketing system. Everything is going fine so far except for one snag: To test the system we are implementing I am manually moving .call files into the /var/spool/asterisk/outgoing directory like this: asterisk@dialerdev:~# cp test5703.call /tmp/test.call && mv /tmp/test.call /var/spool/asterisk/outgoing/ This works great and the call is immediately started, however more often than not (ie. not all the time, but most of the time) after answering the call or rejecting it (sending it to voicemail), another call is performed using the same file. I notice that when a call is initiated the .call file is not removed immediately. Instead, asterisk waits until the call is completed before removing the call file, so it seems like 5-10 seconds into the call since the .call file still exists another call is placed. Any advice on how we can avoid this situation and ensure that only one call is made per .call file? The OS is Ubuntu 11.04 server and we're running Asterisk 1.8. Thanks, -- Brandon -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users