Open Source Training Seminar FreePBX Paid Support

Ticket #2972 (new Bugs)

Opened 1 month ago

Last modified 4 weeks ago

Problem with ZAP channel renaming in FOP

Reported by: Nick_Lewis Assigned to: p_lindheimer
Priority: minor Milestone: 3.0
Component: Core Version: SVN-HEAD
Keywords: retrieve_op_conf_from_mysql.pl Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

The FOP configuration script retrieve_op_conf_from_mysql.pl looks in zapata.conf and zapata-auto.conf for the pseudo comment ;AMPLABEL: and uses it to rename zap channels. This does not work if the pseudo comment is in zapata.conf and the channel declarations are in zapata-auto.conf (which is typically the case).

Attachments

retrieve_op_conf_from_mysql.patch (442 bytes) - added by Nick_Lewis on 07/30/08 07:34:49.
minimal fix

Change History

07/30/08 07:34:49 changed by Nick_Lewis

  • attachment retrieve_op_conf_from_mysql.patch added.

minimal fix

07/30/08 07:48:31 changed by Nick_Lewis

I have attached a minimal fix.

A better solution would be for the parse_zapata function to follow the #include rather than the function being called a second time for parsing the zapata-auto.conf file. This would also allow for the ;AMPLABEL: pseudo comment to be in a more suitable file such as zapata_additional.conf or zapata_custom.conf . I will leave this for someone else to investigate. Perhaps there is a better way to implement ZAP trunk relabelling that does not involve pseudo comments in zapata*.conf files at all.

08/02/08 20:30:53 changed by p_lindheimer

  • milestone changed from Cut Line to 3.0.

Nick, is this just for zap outbound trunks, for inbound zap channels

08/04/08 02:32:37 changed by Nick_Lewis

Philippe, I think ;AMPLABEL: is designed to be used for all zap trunks and ;AMPWILDCARDLABEL(x): for zap extensions judging by the example file provided by rcourtna at

http://freepbx.org/trac/browser/freepbx/trunk/amp_conf/astetc/zapata.conf.template

I am not sure if I have understood your question correctly

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads