Open GoogleCodeExporter opened 9 years ago
Also, someone should modify app.c, channel.c, cli.c to include ast_version.h if
asterisk is newer ( I don't know when exactly they changed that )
Original comment by dex...@d3xt3r01.tk
on 16 Aug 2013 at 5:38
wdoekes does it again ! :)
Attached the patch so everyone can benefit it ! :)
Should apply just fine on revision r34.
Only thing, do:
make CPPFLAGS="-DASTERISK_VERSION_NUM=110500"
instead of just make.
Original comment by dex...@d3xt3r01.tk
on 18 Aug 2013 at 6:25
Attachments:
Or this. Which should work on 1.8 and 10 as well.
CPPFLAGS="-DASTERISK_VERSION_NUM=110500" ./configure
make
Original comment by wal...@wjd.nu
on 19 Aug 2013 at 5:47
Attachments:
Hello,
Dear "dex...@d3xt3r01.tk" your patch does not work. When receive one call get
this:
Asked to get a channel of unsupported format (nothing) while capability is
(ulaw)
And call are hangup.
Dear "wal...@wjd.nu" your patch does not work. When i receive call have no
audio and get this:
Dropping incompatible voice frame on Dongle/modulo01-0100000000 of format
unknown since our native format has changed to (slin)
I use the follow version with asterisk 11.05.01 without problem:
https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip
aclocal && autoconf && automake -a
./configure
make
make install
by
Original comment by gio...@gmail.com
on 9 Sep 2013 at 12:08
[deleted comment]
Yes, it's working and compiled smoothly for me too on Huawei E173u-81. Voice
wasn't not blocked on this modem!
Asterisk release 11.5.1 on a i686 Linux Debian 6 x86.
Original comment by pgras...@gmail.com
on 22 Sep 2013 at 4:13
asterisk-chan-dongle_fix-asterisk-11_r34.patch is missing code to set codec
capabilities in chan_dongle.c:
@@ -1659,6 +1661,15 @@
rv = AST_MODULE_LOAD_FAILURE;
if(discovery_restart(state) == 0)
{
+#if ASTERISK_VERSION_NUM >= 100000 /* 10+ */
+ /* set preferred capabilities */
+ ast_format_set(&chan_dongle_format, AST_FORMAT_SLINEAR,
0);
+ if (!(channel_tech.capabilities =
ast_format_cap_alloc())) {
+ return AST_MODULE_LOAD_FAILURE;
+ }
+ ast_format_cap_add(channel_tech.capabilities,
&chan_dongle_format);
+ chan_dongle_format_cap = channel_tech.capabilities;
+#endif
/* register our channel type */
if(ast_channel_register(&channel_tech) == 0)
{
Attaching full svn diff.
Original comment by gpuzan...@gmail.com
on 23 Oct 2013 at 4:43
Attachments:
> if (!(channel_tech.capabilities = ast_format_cap_alloc()))
I've got error on this line as follow :-
chan_dongle.c: In function ‘public_state_init’:
chan_dongle.c:1668: error: too few arguments to function
‘ast_format_cap_alloc’
make: *** [chan_dongle.o] Error 1
Original comment by isa...@gmail.com
on 24 Mar 2014 at 8:44
Original issue reported on code.google.com by
dex...@d3xt3r01.tk
on 16 Aug 2013 at 5:22