OpenR2/ftmod_r2 Installation on Sangoma/Digium
Hi folks, I'm installing OpenR2/FreeTDM on Sangoma A102. It compiled/installed successfully using Wanpipe drivers. However, I'm expecting ftmod_r2 module to be installed. But, there's none. Is this okay? Meaning the R2 signalling is included in the ftmod_wanpipe module? I'm also installing OpenR2 for a Digium card. I encounter FS "make" errors. The card is not yet installed. Does the card need to be installed to make/install FS modules? Do I need to uninstall the Wanpipe drivers to avoid conflict with the DAHDI drivers? Appreciate for you inputs. Tks, Nandy
On Mon, Aug 15, 2016 at 11:04 PM, Nandy Dagondon <nandy1925@gmail.com> wrote:
Hi folks,
I'm installing OpenR2/FreeTDM on Sangoma A102. It compiled/installed successfully using Wanpipe drivers. However, I'm expecting ftmod_r2 module to be installed. But, there's none. Is this okay? Meaning the R2 signalling is included in the ftmod_wanpipe module?
No, it's a separate module. See here: https://wiki.freeswitch.org/wiki/FreeTDM_OpenR2 When compiling FreeTDM, if the openr2 library is detected, it will compile ftmod_r2.so Note you need openr2 from master. If you installed openr2 from a standard release it won't work. You need to compile openr2 from sources using CMake as per the link above. Note the link above has an outdated url (and I could not remember my wiki credentials to update it). The correct source repository is: https://github.com/moises-silva/openr2 It'd be appreciated if you can contribute updating the documentation by moving that page to https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+Explained
I'm also installing OpenR2 for a Digium card. I encounter FS "make" errors. The card is not yet installed. Does the card need to be installed to make/install FS modules? Do I need to uninstall the Wanpipe drivers to avoid conflict with the DAHDI drivers?
No, that should not be a problem. The module should compile just fine without cards (even without DAHDI headers installed because we use our own headers).
Hello Moy, Thanks for the info. I'm able to git the master of openr2 and installed it via cmake. There's one step I made after ldconfig ... "ldconfig -p | grep openr2" to check if the library is added. It didn't. so I make an additional step "ldconfig /usr/lib64/" . I'll added this in the docs. I'm glad to contribute the task to transfer the docs to confluence. Back to my installation, I encountered this error when I "make" FS: CC ftmod_r2_la-ftmod_r2.lo src/ftmod/ftmod_r2/ftmod_r2.c: In function 'ftdm_r2_on_dnis_digit_received': src/ftmod/ftmod_r2/ftmod_r2.c:1024:18: error: variable 'r2data' set but not used [-Werror=unused-but-set-variable] ftdm_r2_data_t *r2data; I did "boostrap.sh" and "./configure --enable-core-odbc-support --enable-core-pgsql-support". I also tried adding this configure flag "--enable-64". Whats wrong? By the way, I'm on FS branch 1.6 and Debian Jessie. Thanks again. /Nandy On Wed, Aug 17, 2016 at 6:31 AM, Moises Silva <moises.silva@gmail.com> wrote:
On Mon, Aug 15, 2016 at 11:04 PM, Nandy Dagondon <nandy1925@gmail.com> wrote:
Hi folks,
I'm installing OpenR2/FreeTDM on Sangoma A102. It compiled/installed successfully using Wanpipe drivers. However, I'm expecting ftmod_r2 module to be installed. But, there's none. Is this okay? Meaning the R2 signalling is included in the ftmod_wanpipe module?
No, it's a separate module. See here: https://wiki.freeswitch.org/ wiki/FreeTDM_OpenR2
When compiling FreeTDM, if the openr2 library is detected, it will compile ftmod_r2.so
Note you need openr2 from master. If you installed openr2 from a standard release it won't work. You need to compile openr2 from sources using CMake as per the link above. Note the link above has an outdated url (and I could not remember my wiki credentials to update it). The correct source repository is: https://github.com/moises-silva/openr2
It'd be appreciated if you can contribute updating the documentation by moving that page to https://freeswitch.org/confluence/display/FREESWITCH/ FreeSWITCH+Explained
I'm also installing OpenR2 for a Digium card. I encounter FS "make" errors. The card is not yet installed. Does the card need to be installed to make/install FS modules? Do I need to uninstall the Wanpipe drivers to avoid conflict with the DAHDI drivers?
No, that should not be a problem. The module should compile just fine without cards (even without DAHDI headers installed because we use our own headers).
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
Back to my installation, I encountered this error when I "make" FS:
CC ftmod_r2_la-ftmod_r2.lo src/ftmod/ftmod_r2/ftmod_r2.c: In function 'ftdm_r2_on_dnis_digit_ received': src/ftmod/ftmod_r2/ftmod_r2.c:1024:18: error: variable 'r2data' set but not used [-Werror=unused-but-set-variable] ftdm_r2_data_t *r2data;
I did "boostrap.sh" and "./configure --enable-core-odbc-support --enable-core-pgsql-support". I also tried adding this configure flag "--enable-64". Whats wrong?
This is just a warning that is being treated as an error. I pushed this fix: https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/7b9184e94f... You can try cherry-picking this into your 1.6 branch (git cherry-pick 7b9184e94fe57e0921974a70697c6d5760f717ba) At some point that fix will find its way into 1.6, but not sure how often master is merged into 1.6, so I don't know when.
On Fri, Aug 19, 2016 at 7:14 AM, Moises Silva <moises.silva@gmail.com> wrote:
Back to my installation, I encountered this error when I "make" FS:
CC ftmod_r2_la-ftmod_r2.lo src/ftmod/ftmod_r2/ftmod_r2.c: In function 'ftdm_r2_on_dnis_digit_receive d': src/ftmod/ftmod_r2/ftmod_r2.c:1024:18: error: variable 'r2data' set but not used [-Werror=unused-but-set-variable] ftdm_r2_data_t *r2data;
I did "boostrap.sh" and "./configure --enable-core-odbc-support --enable-core-pgsql-support". I also tried adding this configure flag "--enable-64". Whats wrong?
This is just a warning that is being treated as an error.
I pushed this fix: https://freeswitch.org/stash/ projects/FS/repos/freeswitch/commits/7b9184e94fe57e0921974a70697c6d 5760f717ba
You can try cherry-picking this into your 1.6 branch (git cherry-pick 7b9184e94fe57e0921974a70697c6d5760f717ba)
the above command returned "fatal: bad object 7b9...7ba". I saw the
source. Do the lines containing minus (-), mean those lines are deleted? I can do it manually. ... Thanks.
At some point that fix will find its way into 1.6, but not sure how often master is merged into 1.6, so I don't know when.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
participants (2)
-
Moises Silva
-
Nandy Dagondon