返回列表 發帖
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

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

回復 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

回復 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

I am trying to download the Asterisk 1.4.42 tar ball to my QNAP NAS for compilation and to see how it goes.

YH

TOP

回復 32# ckleea

I did not set it at all.

YH

TOP

回復 35# ckleea

With the settings allowguest = no, there is not much different. The whole system works fine.

YH

TOP

返回列表