[Amportal-users] "Protected" change to dialplan

Newbie question: We want to modify the dialplan in freepbx to allow fax detection for all configured extensions. What section of the dialplan can we make the changes without it being overwritten in future updates and/or when freepbx writes out its dialplan?

Thanks in advance…


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

Everything I was attempting to accomplish is done with 2.2. I haven’t had any issues! Thanks!


SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot’s new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

the 2.2 release has whole host of improvements including the fax features. i’ll look further into this…looks like it is all there!


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

I’m on 2.1.2 which may be the issue. I’ll try to upgrade and see what happens! :slight_smile:


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

The version FreePBX I’m running already has the ability to have fax email and detection settings per user. I’m using it to direct fax calls on a user DID to HylaFax for each user.

I’m not sure why you’re patching for this?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

Which version are you using? I must be missing something pretty basic which wouldn’t surprise me.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

My boxes are on 2.2, I believe. I’m not at work yet, so I can’t check. I know that I’m in device/user mode and on the User page, I set a DID for each user, a fax extension (I use IAXmodems and HylaFax), fax email and detection type/timeout.

I use NVFaxDetect, a 4 second timeout and I direct fax calls to IAXmodem extensions for each user.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

I can’t find a way to work around the Goto statement. I did, however, find a way to modify the PHP code to generate the additional statements that I have found work. I modified the /var/www/html/admin/modules/core/functions.inc.php to put the additional lines I want included starting at line 268. I know this isn’t a “protected” method but maybe I can generate a patch file for it. The initial test worked great…doing some additional testing now.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

I think that the problem is the dialplan uses a Goto statement to get into the ext-local context. The Goto points to the extension, 1 line. I’m not sure I can override this at all with a wildcard and/or the ext-local-custom configuration. I’ll keep trying and let you know what I find out.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

By adding these lines in the extensions_custom.conf I can get any DID’s that are not defined elsewhere to work the way I want. I just need to figure out how to make the wildcard’s get processed before the specified extensions.

[ext-did-custom]
exten => _X.,1,set(FROM_DID=s)
exten => _X.,n,Set(FAX_RX=system)
exten => _X.,n,Set(FAX_RX=${DB(AMPUSER/${EXTEN}/faxemail)})
exten => _X.,n,Answer
exten => _X.,n,Playtones(ring)
exten => _X.,n,NVFaxDetect(0)

FYI, the DB call is based on an enhancement I made to the ARI interface to store the emaila address of the specific extension.

I put this in the ext-did-custom but I think it should be in the ext-local to impact all extensions.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

kgtee wrote:

[quote] The dialplan macro for receiving faxes is there ready for use. So just add

[ext-local-custom]
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => h,1,Hangup
[/quote]

Sorry, this one is not going to work. I realised this ext-fax will only fax to one destination fixed by the inbound route, not to individual extension. Mmm…tricky.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

No, 666 does not work. I am able to receive faxes in our main IVR. When I dial 666 I get a busy signal and the last line reported by Asterisk is Goto(ext-local,666,1).


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

Does your 666 (incoming fax test) work?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

The lines you listed are already in the [from-pstn] section and I also tried adding them as indicated in a [ext-local-custom] section. I’m still not getting the faxes detected. I’m pretty sure that this is because the follow-me option is getting invoked before it hits this section.

I’ll experiment some more with the [ext-local-custom] and see if I can get it to work. Thanks for your help.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

The dialplan macro for receiving faxes is there ready for use. So just add

[ext-local-custom]
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => h,1,Hangup


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

_custom.conf files
or create your own files and use the #includes


Bubba
http://pbx4pros.com


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)

I figured I would have to use some of the _custom files and that makes sense. To do the fax properly the extension must be answered and then NVFaxDetect run to see if it is a fax. The problem is I’m trying to figure out an approach to do this without breaking the normal flow of the dialplan.

It seems like all the processing for local extensions is in ext-local so I was thinking to create a custom ext-local-custom. What I’m not sure is:

  • How to make sure all extensions have the fax detection done.
  • If answering to detect the fax will create a problem
  • What the Goto() after the NVFaxDetect should be

I’ll experiment around but if you have suggestions I’d appreciate it!


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)