返回列表 發帖
There is some problem in recognising the incoming digit in the IVR. I do not know whether it comes with default voice in gsm form. What I used in the NAS Asterisk 1.4.22 is u-law.

YH

TOP

回復 20# 角色

This is usually required. Perhaps you have not used IAX clients as frequent as I have.

TOP

本帖最後由 角色 於 2011-10-15 06:56 編輯

Asterisk changed from 1.4 to 1.8, the iax gives the following error:
  1. [Oct 15 06:26:50] ERROR[13845]: chan_iax2.c:4911 handle_call_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 90.130.18.241 in the calltokenoptional list or setting user 2201 requirecalltoken=no
複製代碼
This can be resolved by placing
  1. [2201]
  2. requirecalltoken=no
複製代碼
in the user 2201.

TOP

After installation, if you exit the xterm / ssh login, when you start the asterisk, you may experience the following error:
  1. /opt/asterisk-1.8.7.0/sbin/asterisk
  2. /opt/asterisk-1.8.7.0/sbin/asterisk: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
複製代碼
This can be resolved by
  1. export PATH=/opt/bin:$PATH
  2. export LDFLAGS="-L/opt/lib"
  3. export CFLAGS="-I/opt/include"
  4. export LD_LIBRARY_PATH=/opt/lib
複製代碼

TOP

Just talk with YH using his new Asterisk 1.8 in QNAP NAS.  The voice and sound quality is very good.  Hope YH can get a fruitful success.

TOP

I believe that it might be due to the incorrect package installed during the "make install" process.

YH

TOP

本帖最後由 角色 於 2011-10-15 11:36 編輯

打电话时没有问题,但是cli出很多的warnings:
  1. [Oct 14 23:26:19] WARNING[24044]: chan_sip.c:24433 handle_incoming: Misrouted SIP response '401 Unauthorized' with Call-ID '49a5c7b46b5f20152a31083a2dacca59@xxx.homeftp.org', too many vias
  2. [Oct 14 23:26:19] WARNING[24044]: chan_sip.c:24433 handle_incoming: Misrouted SIP response '401 Unauthorized' with Call-ID '4aa9469639d296680abc03032c1c40f6@xxx.homeftp.org', too many vias
  3. TWTS119*CLI>
  4. Disconnected from Asterisk server
  5. Executing last minute cleanups
複製代碼
可能是把之前Asterisk 1.4的东西全搬过去,所以出了这样的问题。现在从新清空sip.conf,extensions.conf,然后慢慢加入基本的东西,而没有问题。

知道问题在那里,就是ET263 register => 出问题。

角色

TOP

make install

再用下面方式运行Asterisk
  1. [/opt/asterisk-1.8.7.0] # /opt/asterisk-1.8.7.0/sbin/asterisk
  2. [/opt/asterisk-1.8.7.0] # /opt/asterisk-1.8.7.0/sbin/asterisk -rvvvvvvvvvvvvvvvv
  3. Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
  4. Created by Mark Spencer <markster@digium.com>
  5. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
  6. This is free software, with components licensed under the GNU General Public
  7. License version 2 and other licenses; you are welcome to redistribute it under
  8. certain conditions. Type 'core show license' for details.
  9. =========================================================================
  10.   == Parsing '/opt/asterisk-1.8.7.0/etc/asterisk/asterisk.conf':   == Found
  11.   == Parsing '/opt/asterisk-1.8.7.0/etc/asterisk/extconfig.conf':   == Found
  12. Connected to Asterisk 1.8.7.0 currently running on TWTS119 (pid = 23208)
  13. Verbosity was 0 and is now 16
  14. TWTS119*CLI>
複製代碼

TOP

make 也没有问题。
  1.    [AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
  2.    [LD] abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a  -> asterisk
  3. Building Documentation For: channels pbx apps codecs formats cdr cel bridges funcs tests main res addons
  4. +--------- Asterisk Build Complete ---------+
  5. + Asterisk has successfully been built, and +
  6. + can be installed by running:              +
  7. +                                           +
  8. +                make install               +
  9. +-------------------------------------------+
  10. [/opt/src/asterisk-1.8.7.0] #
複製代碼

TOP

  1. ./configure --prefix=/opt/asterisk-1.8.7.0 --build=arm-gnu-linux
複製代碼
  1. configure: Menuselect build configuration successfully completed

  2.                .$$$$$$$$=..
  3.             .$7$7..          .7$7:.
  4.           .$:.                 ,$7.7
  5.         .$7.     7$$           .$77
  6.      ..$.       $$$            .$$7
  7.     ..7$   .?.   $$$   .?.       7$$.
  8.    $.$.   .$$7. $$7 .7$$.      .$$.
  9. .777.   .$$$77$$77$$$7.      $$,
  10. $$~      .7$$$$$$$7.       .$$.
  11. .$7          .7$$$$7:          ?$$.
  12. $$          ?7$$$$$I        .$$7
  13. $$       .7$$$$$$$$      :$$.
  14. $$       $$$7$$$$$$    .$$.
  15. $$        $$   7$$7  .$$    .$$.
  16. $$             $$7         .$$.
  17. 7$$7            7$$        7$$
  18. $$$                        $$
  19.   $$7.                       $  (TM)
  20.    $$$$.           .7$$$  $
  21.      $$$$$$7$$$$$.$$$
  22.        $$$$$$$$.

  23. configure: Package configured for:
  24. configure: OS type  : linux-gnu
  25. configure: Host CPU : arm
  26. configure: build-cpu:vendor:os: arm : gnu : linux-gnu :
  27. configure: host-cpu:vendor:os: arm : gnu : linux-gnu :
  28. [/opt/src/asterisk-1.8.7.0] #
複製代碼

TOP

现在下载Asterisk 1.8.7.0 tar ball, 然后再重新recompile。

角色

TOP

终于可以运行没有问题。
  1. Asterisk SVN-branch-1.8-r340809, Copyright (C) 1999 - 2011 Digium, Inc. and others.
  2. Created by Mark Spencer <markster@digium.com>
  3. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
  4. This is free software, with components licensed under the GNU General Public
  5. License version 2 and other licenses; you are welcome to redistribute it under
  6. certain conditions. Type 'core show license' for details.
  7. =========================================================================
  8.   == Parsing '/opt/asterisk-1.8/etc/asterisk/asterisk.conf':   == Found
  9.   == Parsing '/opt/asterisk-1.8/etc/asterisk/extconfig.conf':   == Found
複製代碼

TOP

I have not installed it because I forgot to change the installation location.

The default will be /opt/etc/asterisk. I would like to change it to other location.

YH

TOP

行到嗎?

TOP

本帖最後由 角色 於 2011-10-15 11:36 編輯

终于可以complilation成功:
  1.   
  2. +--------- Asterisk Build Complete ---------+
  3. + Asterisk has successfully been built, and +
  4. + can be installed by running:              +
  5. +                                           +
  6. +                make install               +
  7. +-------------------------------------------+
  8. [/opt/src/asterisk/1.8] #
複製代碼

TOP

返回列表