Openzap rxgain and txgain not working well
Hi everyone, I notice that the rxgain and txgain in the openzap.conf is not working for the first span (span 1) Is it an issue? Here is the result of my investigation. Configuration: Latest Freeswitch (September 9, 2010) WANPIPE Release: 3.5.15 without smg_pri Sangoma A108 with Echo cancellation enabled. Wanpipe and libpri. In the following openzap.conf, the telus2 got the gains but not telus1 The logs indicate that both got the configuration correctly... But the recording session demonstrate that they don't... [span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus2] trunk_type => T1 b-channel => 2:1-23 d-channel => 2:24 rxgain => 11.0 txgain => 7.0 WORKAROUND: Then I maid a dummy span at the top of these two configs... Yes the dummy span doesn't exists, in fact there is no T1 connected to it. I got some opening error, but I got the gains on both span now... ex: [span wanpipe dummy] trunk_type => T1 b-channel => 3:1-23 d-channel => 3:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus2] trunk_type => T1 b-channel => 2:1-23 d-channel => 2:24 rxgain => 11.0 txgain => 7.0 ------------------------------- Openzap.xml.conf Libpri configuration <libpri_spans> <span name="telus1"> <param name="q921loglevel" value="alert"/> <param name="q931loglevel" value="alert"/> <param name="node" value="user"/> <param name="switch" value="ni2"/> <param name="dialplan" value="XML"/> <param name="context" value="public"/> </span> <span name="telus2"> <param name="q921loglevel" value="alert"/> <param name="q931loglevel" value="alert"/> <param name="node" value="user"/> <param name="switch" value="ni2"/> <param name="dialplan" value="XML"/> <param name="context" value="public"/> </span> </libpri_spans>
I think you are getting a placebo effect because wanpipe module does not even have a param to control gain. only the zaptel (zt) i/o module does. On Wed, Sep 22, 2010 at 11:03 AM, sdemers@q4innovation.com <q4innovation@gmail.com> wrote:
Hi everyone, I notice that the rxgain and txgain in the openzap.conf is not working for the first span (span 1) Is it an issue? Here is the result of my investigation. Configuration:
Latest Freeswitch (September 9, 2010) WANPIPE Release: 3.5.15 without smg_pri Sangoma A108 with Echo cancellation enabled.
Wanpipe and libpri.
In the following openzap.conf, the telus2 got the gains but not telus1 The logs indicate that both got the configuration correctly... But the recording session demonstrate that they don't... [span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus2] trunk_type => T1 b-channel => 2:1-23 d-channel => 2:24 rxgain => 11.0 txgain => 7.0 WORKAROUND: Then I maid a dummy span at the top of these two configs... Yes the dummy span doesn't exists, in fact there is no T1 connected to it. I got some opening error, but I got the gains on both span now... ex: [span wanpipe dummy] trunk_type => T1 b-channel => 3:1-23 d-channel => 3:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0 [span wanpipe telus2] trunk_type => T1 b-channel => 2:1-23 d-channel => 2:24 rxgain => 11.0 txgain => 7.0 ------------------------------- Openzap.xml.conf Libpri configuration <libpri_spans> <span name="telus1"> <param name="q921loglevel" value="alert"/> <param name="q931loglevel" value="alert"/> <param name="node" value="user"/> <param name="switch" value="ni2"/> <param name="dialplan" value="XML"/> <param name="context" value="public"/> </span> <span name="telus2"> <param name="q921loglevel" value="alert"/> <param name="q931loglevel" value="alert"/> <param name="node" value="user"/> <param name="switch" value="ni2"/> <param name="dialplan" value="XML"/> <param name="context" value="public"/> </span> </libpri_spans>
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Wed, Sep 22, 2010 at 12:17 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
I think you are getting a placebo effect because wanpipe module does not even have a param to control gain. only the zaptel (zt) i/o module does.
In fact, I added that in software. So now is independent from the I/O settings. His problem is setting the parameters *after* the channel declarations. [span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0 The tx and rx gains parameters must be before. [span wanpipe telus1] trunk_type => T1 rxgain => 11.0 txgain => 7.0 b-channel => 1:1-23 d-channel => 1:24 The config parser needs to be improved to read the whole span settings before applying it to channels so it does not depend on the order, but until that is done, that's the way it works. Also, openzap is deprecated, as far as I am concerned, so if something else does not work, move on to freetdm before complaining here :-) Moises Silva Senior Software Engineer Sangoma Technologies Inc. | NEW 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
So can you put txgain and rxgain in the freetdm.conf? More documentation on that .conf file would be greatly appreciated. Moises Silva <moises.silva@gmail.com> wrote:
On Wed, Sep 22, 2010 at 12:17 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
I think you are getting a placebo effect because wanpipe module does not even have a param to control gain. only the zaptel (zt) i/o module does.
In fact, I added that in software. So now is independent from the I/O settings.
His problem is setting the parameters *after* the channel declarations.
[span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0
The tx and rx gains parameters must be before.
[span wanpipe telus1] trunk_type => T1 rxgain => 11.0 txgain => 7.0 b-channel => 1:1-23 d-channel => 1:24
The config parser needs to be improved to read the whole span settings before applying it to channels so it does not depend on the order, but until that is done, that's the way it works.
Also, openzap is deprecated, as far as I am concerned, so if something else does not work, move on to freetdm before complaining here :-)
Moises Silva Senior Software Engineer Sangoma Technologies Inc. | NEW 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
---------------------------------------------------- Alternatives:
---------------------------------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
On Fri, Sep 24, 2010 at 11:02 AM, <covici@ccs.covici.com> wrote:
So can you put txgain and rxgain in the freetdm.conf? More documentation on that .conf file would be greatly appreciated.
We need your help for that! I just gave you the answer, it would be nice if in return you can go at wiki.freeswitch.org and document it.
That is for pri spans -- what about analog spans? Moises Silva <moises.silva@gmail.com> wrote:
On Fri, Sep 24, 2010 at 11:02 AM, <covici@ccs.covici.com> wrote:
So can you put txgain and rxgain in the freetdm.conf? More documentation on that .conf file would be greatly appreciated.
We need your help for that! I just gave you the answer, it would be nice if in return you can go at wiki.freeswitch.org and document it.
---------------------------------------------------- Alternatives:
---------------------------------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Hi. Just did part of it. I added a link to Freetdm in the modules page on the wiki, and copied/pasted/completed from the OpenZAP page to FreeTDM page. It lacks the link to configuration examples that need to be ported from openzap. If anybody can review this. François On Fri, 24 Sep 2010 11:18:18 -0400, Moises Silva wrote: On Fri, Sep 24, 2010 at 11:02 AM, wrote: So can you put txgain and rxgain in the freetdm.conf? More documentation on that .conf file would be greatly appreciated. We need your help for that! I just gave you the answer, it would be nice if in return you can go at wiki.freeswitch.org [2] and document it. Links: ------ [1] mailto:covici@ccs.covici.com [2] http://wiki.freeswitch.org
On Mon, Sep 27, 2010 at 10:39 AM, François Legal <devel@thom.fr.eu.org> wrote:
It lacks the link to configuration examples that need to be ported from openzap.
If anybody can review this.
What is the exact link? I worked a bit on the wiki today and plan to do the same tomorrow. Moises Silva Senior Software Engineer Sangoma Technologies Inc. | NEW 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
Unfortunately, there is no (not yet ?) exact link. The page "Configuration examples" from Openzap would need to be ported/reworked for freetdm, then the link could be added on the freetdm page. François On Tue, 28 Sep 2010 21:04:00 -0400, Moises Silva <moises.silva@gmail.com> wrote:
On Mon, Sep 27, 2010 at 10:39 AM, François Legal <devel@thom.fr.eu.org> wrote:
It lacks the link to configuration examples that need to be ported from openzap.
If anybody can review this.
What is the exact link? I worked a bit on the wiki today and plan to do the same tomorrow.
Moises Silva Senior Software Engineer Sangoma Technologies Inc. | NEW 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, Sep 29, 2010 at 3:04 AM, François Legal <devel@thom.fr.eu.org> wrote:
Unfortunately, there is no (not yet ?) exact link. The page "Configuration examples" from Openzap would need to be ported/reworked for freetdm, then the link could be added on the freetdm page.
François
I worked a bit on that. Please help adding any new information at http://wiki.freeswitch.org/wiki/FreeTDM I added a mailing list FAQ too. It's supposed to include any frequent question with an answer in the mailing list in a synthesized form. http://wiki.freeswitch.org/wiki/FreeTDM#Mailing_List_FAQ Moises Silva Senior Software Engineer Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
There is also a zt.conf -- what is supposed to go in that? covici@ccs.covici.com wrote:
So can you put txgain and rxgain in the freetdm.conf? More documentation on that .conf file would be greatly appreciated.
Moises Silva <moises.silva@gmail.com> wrote:
On Wed, Sep 22, 2010 at 12:17 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
I think you are getting a placebo effect because wanpipe module does not even have a param to control gain. only the zaptel (zt) i/o module does.
In fact, I added that in software. So now is independent from the I/O settings.
His problem is setting the parameters *after* the channel declarations.
[span wanpipe telus1] trunk_type => T1 b-channel => 1:1-23 d-channel => 1:24 rxgain => 11.0 txgain => 7.0
The tx and rx gains parameters must be before.
[span wanpipe telus1] trunk_type => T1 rxgain => 11.0 txgain => 7.0 b-channel => 1:1-23 d-channel => 1:24
The config parser needs to be improved to read the whole span settings before applying it to channels so it does not depend on the order, but until that is done, that's the way it works.
Also, openzap is deprecated, as far as I am concerned, so if something else does not work, move on to freetdm before complaining here :-)
Moises Silva Senior Software Engineer Sangoma Technologies Inc. | NEW 100 Renfrew Drive, Suite 100, Markham ON L3R 9R6 Canada t. 1 905 474 1990 x128 | e. moy@sangoma.com
---------------------------------------------------- Alternatives:
---------------------------------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
participants (5)
-
Anthony Minessale
-
covici@ccs.covici.com
-
François Legal
-
Moises Silva
-
sdemers@q4innovation.com