The symptoms are:
In file included from app.c:21:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function 'app_register':
app.c:162:3: warning: passing argument 2 of 'ast_register_application2' from incompatible pointer type [enabled by default]
In file included from app.c:20:0:
/usr/include/asterisk/module.h:458:5: note: expected 'int (*)(struct ast_channel *, const char *)' but argument is of type 'int (*)(struct ast_channel *, void *)'
make: *** [app.o] Error 1
Download patched sources
autoconf and autmake should be installed
cd to unzipped folder
issue commands: aclocal, autoconf, automake -a
install chan_dongle as usual ./configure, make, make install.
then I got next error
# sudo make install
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
/usr/bin/install -c -m 755 chan_dongle.so
/usr/bin/install: missing destination file operand after `chan_dongle.so'
Try `/usr/bin/install --help' for more information.
make: *** [install] Error 1
Error because on chan_dongle installed on 64 bit OS. In that case DESTDIR should be: DESTDIR="/usr/lib64/asterisk/modules
after that you can run asterisk console and load module:
CLI> module load chan_dongle.so
but then next error comes:
WARNING: chan_dongle.c:218 opentty: unable to open /dev/ttyUSB2: Permission denied
that because of wrong permissions.
That usually happens when asterisk running in non root mode. Set the correct permissions to /dev/ttyUSB
#chmod 666 /dev/ttyUSB*
after all chan_dongle is up and runnin, but after adding second dongle, problem with permissions comes back. The silution is to set permission automatically. Create file in /etc/udev/rules.d/92-dongle.rules
KERNEL=="ttyUSB*", MODE="0666", OWNER="asterisk", GROUP="uucp"
By using and accessing this website, http://www.paste4btc.com (collectively referred to as the "Site" or "Paste4BTC" in these Terms of Service), you ("you", "user" or, "end user") agree to these Terms of Service (collectively, the "Terms of Service" or "Agreement").
IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT, IMMEDIATELY STOP ACCESSING THIS SITE.
You acknowledge and agree that all content and information on the Site is protected by proprietary rights and laws.
You agree not to transmit, license, transfer, create derivate work from, sell or re-sell any content or information obtained from or through the Site.
You also agree not to create, upload or put any content that violates copyright or privacy of anyone or is illegal in any way.
The Site may contain links to other websites maintained by third-parties. These links are provided solely as a convenience and does not imply endorsement of, or association with, the party by Paste4BTC.
Modifications to this Agreement.
Paste4BTC reserves the right to change or modify any of the terms and conditions contained in this Agreement at any time. You acknowledge and agree that it is your responsibility to review the Site and these Terms of Service from time to time. Your continued use of the Site after such modifications to this Agreement will constitue acknowledgment of the modified Terms of Service and agreement to abide and be bound by the modified Terms of Service.
Termination of Use.
Paste4BTC shall have the right to immediately terminate or suspend, in its discretion, your access to all or part of the Site with or without notice for any reason.
Disclaimer of Warranty.
You expressly agree that use of the Site is at your sole risk and discretion. The Site and all content and other information contained on the Site is provided on an "AS IS" and "AS AVAILABLE" basis without warranty of any kind, whether express or implied. Paste4BTC makes no warranty that (I) the Site and content or information will be uninterrupted, timely, secure or error-free, (II) the results that may be obtained from use of this Site will be effective, accurate or reliable. The Site may include technical mistakes, inaccuracies or typographical errors. Paste4BTC reserves the right to change the Site content and information at any time without notice.
Limitation of Liability.
In no event shall Paste4BTC or its affiliates be liable for any indirect, incidental, special, puntitive damages or consequential damages of any kind, or any damages whatsoever arising out of or related to your use of the Site, the content and other information obtained therein.
Certain jurisdictions prohibit the exclusion or limitation of liability for consequential or incidental damages, thus the above limitations may not apply to you. All content on the website is generated by it's respective users and is not affiliated with Paste4BTC owners in any way.
Any disputes arising out of or related to these Terms of Service and/or any use by you of the Site shall be governed by international laws, without regard to the conflicts of laws provisions therein.
Date of Last Update.
This agreement was last updated on November 15, 2014.