Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread John Kiniston
Could it be SELinux blocking you? If you change the path to /tmp does it work? On Fri, Nov 4, 2016 at 3:14 PM, Jonathan H wrote: > That's just what I'm using, John. > > But I'm getting (eg) > > [Nov 4 21:46:16] ERROR[1676][C-0003]: func_env.c:449 file2format: >

[asterisk-users] AMI version in Asterisk 14

2016-11-04 Thread Telium Technical Support
I noticed that Asterisk 14 has changed the output format for some commands (eg: "Output: "). However, the AMI reports version 2.8.0 which is the same as Asterisk 13 Is that considered a bug? Since the AMI output format has changed, shouldn't the AMI version be incremented? (Makes is hard

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
That's just what I'm using, John. But I'm getting (eg) [Nov 4 21:46:16] ERROR[1676][C-0003]: func_env.c:449 file2format: Cannot open '/home/logs/anonymous.txt': No such file or directory [Nov 4 21:46:16] ERROR[1676][C-0003]: func_env.c:949 file_write: File '/home/logs/anonymous.txt'

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread John Kiniston
I'm able to use the FILE function to create files just fine. Set(FILE(${CALLFILE},,,al,u)=Extension: s) On Fri, Nov 4, 2016 at 2:26 PM, Jonathan H wrote: > Seems I can write to an existing file, but is there really no way of > creating a new file to log some data to,

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
Yes, that would also work (thanks!). It just seems a bit hacky - STAT...GotoIf... System..,Return...FILE Has there been any previous discussion as to why FILE can't/won't create a file and write to it in one shot? If so, what was the outcome? Should I suggest it? Thanks! On 4 November

[asterisk-users] Suddenly getting lots of "Unable to send packet: Address Family mismatch between source/destination" but ONLY on 1 of 2 VPSs in same datacentre.

2016-11-04 Thread Jonathan H
Two VPSs. Identical setups with the exception of the extension. Same version of everything, Asterisk 14.1, Ubuntu 16.10, same firewall rules and so on - box 2 was cloned from box 1. Both VPSs run in the same datacentre. Suddenly, after weeks of OK, I'm getting lots of this on ONE box only:

Re: [asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread John Covici
Won't the system command do it? On Fri, 04 Nov 2016 17:26:13 -0400, Jonathan H wrote: > > Seems I can write to an existing file, but is there really no way of > creating a new file to log some data to, without reverting to AGI? > (will be different for each caller ID) > > -- >

[asterisk-users] Any way of creating a file to write to from the dialplan, or must I use AGI?

2016-11-04 Thread Jonathan H
Seems I can write to an existing file, but is there really no way of creating a new file to log some data to, without reverting to AGI? (will be different for each caller ID) -- _ -- Bandwidth and Colocation Provided by

Re: [asterisk-users] Force hangup not working on stuck channel

2016-11-04 Thread Matt Fredrickson
Also, it looks like in https://issues.asterisk.org/jira/browse/ASTERISK-21762 there might be a workaround (see the last comment at the bottom). Matthew Fredrickson On Fri, Nov 4, 2016 at 2:01 PM, Matt Fredrickson wrote: > On Thu, Nov 3, 2016 at 11:16 AM, Carlos Chavez

Re: [asterisk-users] Force hangup not working on stuck channel

2016-11-04 Thread Matt Fredrickson
On Thu, Nov 3, 2016 at 11:16 AM, Carlos Chavez wrote: > I am unable to force a hangup on a channel that has been stuck for over two > days: > > IAX2/from-CD-11006 oficina 27701 Up Dial > IAX2/to-CD/2883 3467130007

Re: [asterisk-users] pjsip transports from database.

2016-11-04 Thread Bryant Zimmerman
On Friday, November 4, 2016 10:20 AM - Joshua Colp wrote: >>On Fri, Nov 4, 2016, at 10:26 AM, Bryant Zimmerman wrote: >> Hey all >> >> I am trying to configure all my pjsip transports form a database table. >> The issue I am running into is that pjsip is auto binding to 0.0.0.0:5060 >>

Re: [asterisk-users] pjsip transports from database.

2016-11-04 Thread Joshua Colp
On Fri, Nov 4, 2016, at 10:26 AM, Bryant Zimmerman wrote: > Hey all > > I am trying to configure all my pjsip transports form a database table. > The issue I am running into is that pjsip is auto binding to 0.0.0.0:5060 > before it reads my list of transports from the database. This means

[asterisk-users] pjsip transports from database.

2016-11-04 Thread Bryant Zimmerman
Hey all I am trying to configure all my pjsip transports form a database table. The issue I am running into is that pjsip is auto binding to 0.0.0.0:5060 before it reads my list of transports from the database. This means that my entries for port 5060 are already bound and the settings in

Re: [asterisk-users] Is it possible that variables returned from AGI take a moment to "stick"?

2016-11-04 Thread virendra bhati
I don't think so any such method to return variable from AGI. But simple solution is set variable in AGI and then you can get back after AGI call in dialplan and these variable will be available until call finished. --- Virendra Bhati +91-9718500594 +91-9250078532 Sr. Asterisk Developer