返回列表 發帖
本帖最後由 角色 於 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

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

YH

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

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

本帖最後由 角色 於 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

回復 20# 角色

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

TOP

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

There is some problem in recognising the incoming digit in the IVR. I do not know whether it comes w ...
角色 發表於 2011-10-15 07:35


I am sorry that I forward my ivr to an incorrect one. Now the ivr using HKBN 2b is fixed.

YH

TOP

The date/time in cdr is incorrect, it use GMT in the cdr.conf. We have to modify accordingly.
  1. [csv]
  2. ;usegmtime=yes    ; log date/time in GMT.  Default is "no"
  3. usegmtime=no     ; YH 15-10-11
複製代碼
YH

TOP

回復 23# 角色


    Couldyou post your sip.conf [general] and hkbn2b setting again?

TOP

回復 25# ckleea

1. Put the following line to /etc/hosts
  1. 203.80.89.135   s2hkbntel.net s21.hkbntel.net
複製代碼
2. sip.conf
  1. [general]
  2. srvlookup=yes
  3. nat=yes
  4. realm=xxx.yyy.org
  5. externhost=xxx.yyy.org
  6. fromdomain=xxx.yyy.org
  7. localnet=192.168.1.0/255.255.255.0
  8. externrefresh = 1
  9. defaultexpirey=120
  10. bindport=5060
  11. qualify=yes
  12. disallow=all
  13. allow=ulaw,alaw,gsm
  14. alwaysauthreject=yes
  15. tos_sip=cs3
  16. tos_audio=ef
  17. tos_video=af41
  18. context=front-desk


  19. ;HKBN 2b
  20. register => 36112233hk:2b_password@s2hkbntel.net:5060/36112233


  21. [hkbn2b]
  22. type=peer
  23. username=36112233hk
  24. secret=2b_password
  25. port=5060
  26. host=s2hkbntel.net
  27. fromuser=36112233hk
  28. fromdomain=s2hkbntel.net
  29. canreinvite=no
  30. canredirect = no
  31. insecure=port,invite
  32. dtmfmode=auto
  33. context=from-hkbn
複製代碼
3. extensions.conf
  1. ;HK PSTN Gateway, with CID
  2. [trunk-hk-pstn-yh9]
  3. exten => _9XX.,1,Dial(SIP/${EXTEN:1}@hkbn2b,,r)


  4. ;HKBN 2b dial-in
  5. [from-hkbn]
  6. exten => 36112233,1,GotoIf($[${CALLERID(num)} = 96xxxyyy]?YH-call)
  7. exten => 36112233,n,GotoIf($[${CALLERID(num)} = 64xxxyyy]?Paul-call)

  8. exten => 36112233,n,Dial(SIP/2004,,)
  9. exten => 36112233,n,Hangup()

  10. exten => 36112233,n(YH-call),GoTo(internal,1130,1)
  11. exten => 36112233,n(Paul-call),Goto(internal-paul-ivr,1131,1);

  12. [internal]
  13. ;TW IVR
  14. exten => 1130,1,Answer
  15. exten => 1130,n,Wait(3)
  16. exten => 1130,n,Background(vm-enter-num-to-call)
  17. exten => 1130,n,WaitExten
  18. exten => 1130,n,Playback(vm-goodbye)
  19. exten => 1130,n,Hangup
  20. exten => i,1,Playback(pbx-invalid)
  21. exten => i,2,Goto(1130,1)
  22. exten => t,1,Playback(vm-goodbye)
  23. exten => t,2,n,Hangup

  24. [inter-paul-ivr]
  25. exten => _1,1,Dial(SIP/21xx,,)
  26. exten => _2,1,Dial(SIP/21yy,,)

  27. exten => 1131,1,Answer
  28. exten => 1131,n,Wait(3)
  29. exten => 1131,n,Background(vm-enter-num-to-call)
  30. exten => 1131,n,WaitExten
  31. exten => 1131,n,Playback(vm-goodbye)
  32. exten => 1131,n,Hangup
  33. exten => i,1,Playback(pbx-invalid)
  34. exten => i,2,Goto(1131,1)
  35. exten => t,1,Playback(vm-goodbye)
  36. exten => t,2,n,Hangup
複製代碼

TOP

My only difference is the hosts file, I can only register at S22, not s21

TOP

回復 24# 角色


   
How about the /var/log/Asterisk/messages? Is the time also correct?

TOP

回復 28# bubblestar

The time is correct
  1. [Oct 15 11:16:29] NOTICE[20130] chan_sip.c: Peer '2023' is now Reachable. (272ms / 2000ms)
  2. [Oct 15 11:26:11] NOTICE[20130] chan_sip.c: Peer '2023' is now Lagged. (3303ms / 2000ms)
  3. [Oct 15 11:26:22] NOTICE[20130] chan_sip.c: Peer '2023' is now Reachable. (273ms / 2000ms)
  4. [Oct 15 11:27:22] NOTICE[20130] chan_sip.c: Peer '2027' is now UNREACHABLE!  Last qualify: 1541
  5. [Oct 15 11:27:33] NOTICE[20130] chan_sip.c: Peer '2027' is now Reachable. (963ms / 2000ms)
  6. [Oct 15 11:39:07] NOTICE[20130] chan_sip.c: Peer '2023' is now Lagged. (2444ms / 2000ms)
  7. [Oct 15 11:39:18] NOTICE[20130] chan_sip.c: Peer '2023' is now Reachable. (624ms / 2000ms)
複製代碼

TOP

本帖最後由 bubblestar 於 2011-10-15 12:44 編輯

YH, Congratulations for running both Asterisk 1.8 and Asterisk 1.4 parallel on the same machine of QNAP NAS.  It might or might not be a breakthrough but sure it is a very good try to manipulate and maximize the use of our limited resources. The test just made between you and me proved very successful.  Please keep this on and share with us what you have done.

Many thanks

TOP

返回列表