Re: [asterisk-users] Callback through extensions.conf?

2011-02-14 Thread Gilles
On Sat, 05 Feb 2011 12:07:28 +0100, Gilles codecompl...@free.fr wrote: I've seen articles about Call files. Is this the easiest way to solve this problem? I'm reading the 3rd edition of the Asterisk: The Definitive Guide, but since it's pretty big and there's no guarantee that the answer to this

Re: [asterisk-users] Callback through extensions.conf?

2011-02-14 Thread Gilles
On Mon, 14 Feb 2011 10:35:52 +0100, Gilles codecompl...@free.fr wrote: If someone's already built a callback like the above using an FXO module, I would appreciate any feedback to try and solve this issue. I learned more about Local channels, but this doesn't work either: ===

Re: [asterisk-users] Callback through extensions.conf?

2011-02-14 Thread Gilles
On Mon, 14 Feb 2011 14:21:50 +0100, Gilles codecompl...@free.fr wrote: Could it be that while we're in the dialplan after getting a call from the FXO, the FXO is just not available until after we exit the dialplan? Made some progress: Asterisk can dial my cellphone if the callback goes through an

Re: [asterisk-users] Callback through extensions.conf?

2011-02-09 Thread Gilles
On Wed, 9 Feb 2011 00:01:49 -0600, Sherwood McGowan sherwood.mcgo...@gmail.com wrote: Nice! That was some good reading! Unfortunately, I checked how the uClinux kernel was configured for compiling, and the inotify is indeed selected by default :-/ Linux Kernel Configuration File systems

Re: [asterisk-users] Callback through extensions.conf?

2011-02-09 Thread Gilles
On Wed, 09 Feb 2011 11:47:09 +0100, Gilles codecompl...@free.fr wrote: Unfortunately, I checked how the uClinux kernel was configured for compiling, and the inotify is indeed selected by default :-/ Greping the Asterisk source code for inotify only returned a couple of hits, in binaries

Re: [asterisk-users] Callback through extensions.conf?

2011-02-09 Thread Tilghman Lesher
On Wednesday 09 February 2011 06:28:43 Gilles wrote: On Wed, 09 Feb 2011 11:47:09 +0100, Gilles wrote: Unfortunately, I checked how the uClinux kernel was configured for compiling, and the inotify is indeed selected by default :-/ Greping the Asterisk source code for inotify only returned a

Re: [asterisk-users] Callback through extensions.conf?

2011-02-09 Thread Gilles
On Wed, 9 Feb 2011 12:33:00 -0600, Tilghman Lesher tilgh...@meg.abyt.es wrote: Inotify for spoolfiles is supported starting in Asterisk 1.8. Thanks for the tip, but I'm stuck with a 1.4 because it must be patched to run on uClinux :-/ A possible explanation for this issue could be that Asterisk

Re: [asterisk-users] Callback through extensions.conf?

2011-02-08 Thread Gilles
Thanks much everyone for the great help. I did go through the last suggestions about the callfile (no CRLF issue, permissions are 644 and file owned by root, starting asterisk through strace, etc.), but none helped. However, by chance, I happened on a pattern: The callfile is handled only if I...

Re: [asterisk-users] Callback through extensions.conf?

2011-02-08 Thread Gilles
On Tue, 08 Feb 2011 14:23:12 +0100, Gilles codecompl...@free.fr wrote: However, by chance, I happened on a pattern: The callfile is handled only if I... 1. Stop Asterisk through its init.d script 2. Mv the callfile 3. Start Asterisk through its init.d script It also works if I launch Asterisk

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Gilles
On Sun, 6 Feb 2011 16:27:33 -0600, Sherwood McGowan sherwood.mcgo...@gmail.com wrote: Have you tried playing with the length of the wait? Even if you technically need 10 seconds, you could try a lower amount to see if the other priorities in that context execute... Lowering it to 5 seconds makes

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Sherwood McGowan
On Mon, Feb 7, 2011 at 2:22 AM, Gilles codecompl...@free.fr wrote: Lowering it to 5 seconds makes no difference. I also tried adding a Hangup before Wait but then the script ends before Wait. That's just CRAZY mate! I'm thinking it has EVERYTHING to do with your DAHDI/Zap setup... Barring

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Gilles
On Mon, 7 Feb 2011 02:59:09 -0600, Sherwood McGowan sherwood.mcgo...@gmail.com wrote: That's just CRAZY mate! I'm thinking it has EVERYTHING to do with your DAHDI/Zap setup... Barring something in your configuration that I don't know about, there's no reason that the system should just hang up the

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Sherwood McGowan
... but Asterisk does nothing, altough show modules says that pbx_spool.so is loaded. Weird :-/ FWIW, Asterisk runs as root, and root owns callfile.call. Maybe it's the uClinux or the Asterisk I'm using that's configured in such a way that callfiles don't work as planned. Apparently,

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Gilles
On Mon, 7 Feb 2011 04:06:52 -0600, Sherwood McGowan sherwood.mcgo...@gmail.com wrote: ok, first of all, it can take a little while for those spooled callfiles to be executed in Asterisk... Thanks for your help. The same callfile works fine in Ubuntu, but not at that appliance. Since I can dial

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Gilles
On Mon, 7 Feb 2011 07:57:07 -0800 (PST), Steve Edwards asterisk@sedwards.com wrote: sudo /usr/sbin/asterisk -d -d -d -n -v -v -v Oops. A '-c' should be in there :) Thanks Steve for the help. I launched * with asterisk -d -d -d -n -v -v -v -c, and ran module show to check that

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Warren Selby
On Mon, Feb 7, 2011 at 10:46 AM, Gilles codecompl...@free.fr wrote: = #callfileSIP.call Channel: SIP/xlite Context: callback-dialtone-auth Extension: s Priority: 1 MaxRetries: 2 RetryTime: 60 WaitTime: 30 = Just a thought... Did you originally generate this

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Sherwood McGowan
Real quick, please respond to my question about where the callfile ends up after a few minutes, as well as the modification time and the permissions on the file ;-) These are good bits to know On Mon, Feb 7, 2011 at 10:46 AM, Gilles codecompl...@free.fr wrote: On Mon, 7 Feb 2011 07:57:07 -0800

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Tom Rymes
On 02/07/2011 11:46 AM, Gilles wrote: snip Asterisk runs as root, and owns this file as well. Have you tried setting the permissions of this file to world readable, to ensure that any user can read it and eliminate potential permissions problems? Worth a shot. While you're at it, output

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Bruce B
Asterisk runs as root but what about the bash script or the php file that creates the file? Maybe comment the mv command and check the file permissions by *ls -la call-filename.call* to be sure. *chown root.root call-filename* (if root is really the user running Asterisk) and then the mv command

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Sherwood McGowan
*** ever so politely snipping *** If you are sure that permissions are not the problem and you have archive set to yes then you can browse the */var/spoo/asterisk/outgoing_done*folder to see if the call file is transferred there or not. The file should contain some info to help you and it's

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Danny Nicholas
_ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Sherwood McGowan Sent: Monday, February 07, 2011 12:26 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Callback through

Re: [asterisk-users] Callback through extensions.conf?

2011-02-07 Thread Bruce B
In my (1.4.X) experience, the file just stays in /var/spool/asterisk/outgoing and gets “little tags” added until you get the problem resolved or delete the file. That is absolutely true if the file is not processed. I guess he can again do a ls -la in that folder to check permissions for

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Sherwood McGowan
On Sat, Feb 5, 2011 at 3:27 PM, Paul Belanger pabelan...@digium.com wrote: On 11-02-05 06:07 AM, Gilles wrote: 2. Asterisk waits until I hang up, calls me back, and prompts me for the number I wish to call use exten = h to start a local channel, wait x seconds, dial your cell phone. Or

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Gilles
On Sun, 6 Feb 2011 10:06:42 +0330, Pezhman Lali l...@lopl.net wrote: a2billing also provided call_back daemon, try it Thanks for the tip, but A2billing requires a LAMP server, which won't fit on an appliance. -- _ -- Bandwidth

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Gilles
On Sat, 05 Feb 2011 16:27:35 -0500, Paul Belanger pabelan...@digium.com wrote: Easy enough. I would suggest using Disa() for added security. Thanks for the tip, but then, I would be charged for the call from my cellphone to Asterisk. I guess it's not a big risk to assume a call with my CID

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Gilles
On Sat, 05 Feb 2011 12:07:28 +0100, Gilles codecompl...@free.fr wrote: I've seen articles about Call files. Is this the easiest way to solve this problem? For some reason, Asterisk executes Wait(10), but then hangs up without running the rest of the commands (cp, echo, mv): == [from_fxo]

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Sherwood McGowan
Can you give me/us the output of the full log (verbose set to 5 please)? Once I hve that, I can probably help you quite quickly, I work with callfile generation often without problem First, you're trying to copy On Sun, Feb 6, 2011 at 9:36 AM, Gilles codecompl...@free.fr wrote: On Sat, 05 Feb

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread John Novack
Gilles wrote: On Sat, 05 Feb 2011 16:27:35 -0500, Paul Belanger pabelan...@digium.com wrote: Easy enough. I would suggest using Disa() for added security. Thanks for the tip, but then, I would be charged for the call from my cellphone to Asterisk. I guess it's not a big risk to

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Gilles
On Sun, 06 Feb 2011 12:05:25 -0500, John Novack jnov...@stromberg-carlson.org wrote: Later Dahdi code may do what you want IF, and only if, your provider signals when the call is answered. Thanks for the information. Telling Asterisk to wait long enough after I dialed in should be enough. --

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Gilles
On Sun, 6 Feb 2011 10:10:06 -0600, Sherwood McGowan sherwood.mcgo...@gmail.com wrote: Can you give me/us the output of the full log (verbose set to 5 please)? Once I hve that, I can probably help you quite quickly, I work with callfile generation often without problem Here's the output with the

Re: [asterisk-users] Callback through extensions.conf?

2011-02-06 Thread Sherwood McGowan
From what I can see from your log and the previously supplied snippet of your dialplan, yes it looks like it's hanging up for a reason other than a dialplan issue. It definitely doesn't appear to be an issue in the callfile, since it never gets to the commands that interact with it Have you

[asterisk-users] Callback through extensions.conf?

2011-02-05 Thread Gilles
Hello I'd like to configure Asterisk so that... 1. I ring it from my cellphone with CID number displayed, just to notify Asterisk that I wish to make a call 2. Asterisk waits until I hang up, calls me back, and prompts me for the number I wish to call 3. Asterisk puts me on hold through Flash(),

Re: [asterisk-users] Callback through extensions.conf?

2011-02-05 Thread Paul Belanger
On 11-02-05 06:07 AM, Gilles wrote: I'd like to configure Asterisk so that... 1. I ring it from my cellphone with CID number displayed, just to notify Asterisk that I wish to make a call Easy enough. I would suggest using Disa() for added security. 2. Asterisk waits until I hang up, calls

Re: [asterisk-users] Callback through extensions.conf?

2011-02-05 Thread Pezhman Lali
Dear a2billing also provided call_back daemon, try it best On Sun, Feb 6, 2011 at 12:57 AM, Paul Belanger pabelan...@digium.comwrote: On 11-02-05 06:07 AM, Gilles wrote: I'd like to configure Asterisk so that... 1. I ring it from my cellphone with CID number displayed, just to notify