返回列表 發帖
Echo Test

大家可以参考下面文章:

http://www.telecom-cafe.com/foru ... =4714&pid=24658

但是RP的Asterisk-GUi已经没有Custom这个application了。

TOP

本帖最後由 角色 於 2013-11-8 00:01 編輯

Asterisk-GUI Settings for NWT Internet/Broadband Phone

Please note that the softswitch (Huawei SoftX3000 V300R010) of NWT is the same as ComNet Phone using, therefore the settings for ComNet Phone is also applicable to NWT Phone.
  1. <--- SIP read from UDP:203.176.254.198:5060 --->
  2. INVITE sip:33445566@192.168.88.100:5060;user=phone SIP/2.0
  3. Via: SIP/2.0/UDP 203.176.254.198:5060;branch=z9hG4bKblxcvluokkhnjxnjo78civlhv
  4. Call-ID: SBCqlhluppq5cuxwcpxgmgcwulbygvvvgcy@SoftX3000
  5. From: <sip:96331111@203.176.254.198>;tag=wq8xxuul-CC-22
  6. To: <sip:33445566@58.153.143.183:30628;user=phone>
  7. CSeq: 1 INVITE
  8. Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
  9. Max-Forwards: 70
  10. Supported: 100rel
  11. User-Agent: Huawei SoftX3000 V300R010
  12. Contact: <sip:96331111@203.176.254.198:5060;user=phone>
  13. Content-Length: 427
  14. Content-Type: application/sdp

  15. v=0
  16. o=HuaweiSoftX3000 93845972 93845972 IN IP4 203.176.254.198
  17. s=Sip Call
  18. c=IN IP4 203.176.254.198
  19. t=0 0
  20. m=audio 23684 RTP/AVP 8 0 18 4 2 97 98 101
  21. a=rtpmap:8 PCMA/8000
  22. a=rtpmap:0 PCMU/8000
  23. a=rtpmap:18 G729/8000
  24. a=rtpmap:4 G723/8000
  25. a=rtpmap:2 G726-32/8000
  26. a=rtpmap:97 G726-40/8000
  27. a=rtpmap:98 G726-32/8000
  28. a=rtpmap:101 telephone-event/8000
  29. a=ptime:20
  30. a=fmtp:101 0-15
  31. a=fmtp:18 annexb=yes
  32. a=fmtp:4 annexa=yes
複製代碼
1. Create the NWT VoIP Trunk
1088a.gif

and then re-edit again to add the follwing settings:
1088b.gif

2. Create the outgoing rule for NWT Trunk
1088e.gif

3. Create the dialplan to include the NWT VoIP Trunk
1088f.gif

4. Create a user to use the dialplan
1088g.gif

5. Inbound call settings
1088c.gif

6. Other settings for outbound call (if not set, callee will not able to receive the call)
1088d.gif

7. Apply changes
1088h.gif

8. Minimum 300 seconds
  1. handle_response_register: Got 423 Interval too brief for service 333445566@ngn2.nwtbb.com, minimum is 300 seconds
複製代碼
Using the File Editor (Advanced mode) to add the switch "defaultexpirey=300" to the users.conf under the NWT trunk. For details, pleas take a look the following scripts:

1090.gif

TOP

VoIP Trunk除了NWT NetTalk,HKBN 2b,ComNet Phone,现在还可以用3G Modem!做Trunk。

TOP

本帖最後由 角色 於 2013-11-8 01:18 編輯

Asterisk-GUI Settings for ComNet Phone

Please note the soft switch employed in ComNet Phone is a Huawei SoftSwitch "HuaweiSoftX3000"
  1. <--- Transmitting (NAT) to 192.168.88.249:5060 --->
  2. SIP/2.0 180 Ringing
  3. Via: SIP/2.0/UDP 192.168.88.249:5060;branch=z9hG4bK-d8754z-b7b0e2881d6f8659-1---d8754z-;received=192.168.88.249;rport=5060
  4. From: "6001"<sip:6001@192.168.88.100;transport=UDP>;tag=8a5ff34d
  5. To: <sip:1878200@192.168.88.100;transport=UDP>;tag=as76214c7a
  6. Call-ID: NDk3OGUwZTlmYjFiNTExNWQwZDJjMTRhM2U5MDdiOTM.
  7. CSeq: 1 INVITE
  8. Server: Asterisk PBX
  9. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
  10. Supported: replaces, timer
  11. Contact: <sip:1878200@192.168.88.100:5060>
  12. Content-Length: 0


  13. <------------>
  14.     -- SIP/trunk_1-00000025 is making progress passing it to SIP/6001-00000024
  15. Audio is at 18618
  16. Adding codec 100003 (ulaw) to SDP

  17. <--- SIP read from UDP:202.0.179.3:5060 --->
  18. SIP/2.0 200 OK
  19. From: "asterisk" <sip:85235010617@192.168.88.100:5060>;tag=as29b58819
  20. To: <sip:1878200@202.0.179.3>;tag=fa4e3fa8
  21. CSeq: 103 INVITE
  22. Call-ID: 2c672c914ce39bbb6f170df52d4e9103@192.168.88.100:5060
  23. Via: SIP/2.0/UDP 192.168.88.100:5060;branch=z9hG4bK571a7528;rport=5060
  24. Contact: <sip:1878200@202.0.179.3:5060;user=phone>
  25. Content-Length: 200
  26. Content-Type: application/sdp

  27. v=0
  28. o=HuaweiSoftX3000 7283948 7283949 IN IP4 202.0.179.3
  29. s=Sip Call
  30. c=IN IP4 202.0.179.3
  31. t=0 0
  32. m=audio 18220 RTP/AVP 0 97
  33. a=rtpmap:0 PCMU/8000
  34. a=rtpmap:97 telephone-event/8000
  35. a=fmtp:97 0-15
  36. <------------->
  37. --- (9 headers 9 lines) ---
  38. Found RTP audio format 0
  39. Adding codec 100004 (alaw) to SDP
  40. Adding non-codec 0x1 (telephone-event) to SDP
複製代碼
1. Go to the left-side menu, select Options and then followed by choosing the Show Advanced Options. Click the SIP Settings and tick the checkbox of "Pedantic", as shown in the following figure (without the tick at "Pedantic" check box, you are not able to get the registration worked)

1091.gif

2. Create a VoIP SIP Trunk
1092a.gif

And then re-edit again to add more itemss
1092b.gif

3. Create a dialling prefix
1092c.gif




Edit dialplan to add outbound SIP Trunk "NWT NetTalk"
1092d.gif

Inbound settings
1092e.gif

Edit asterisk.conf and then add the term "internal_timing=yes"
1092f.gif

TOP

本帖最後由 角色 於 2013-11-8 22:00 編輯

Asterisk-GUI Settings for HKBN 2b Trunk

1. Create VoIP Trunk
1093a.gif

Further modify the trunk by editing.
1093b.gif

Using an editor like vi to add the following line at the end of /etc/hosts
203.80.89.135   s2hkbntel.net s21.hkbntel.net

2. Create dial prefix
1093c.gif

3. Add the default dial plan
1093d.gif

4. Add the incoming settings:
1093e.gif

5. Reboot the system

6. Check the system status
1094.gif

1093f.gif (6.43 KB)

1093f.gif

TOP

NWT NetTalk 注册和打出问题

Registration =No or No Authentication

终于周处问题所在:

就是在sip.conf,trunk definition,要加 qualify=no

就是在
  1. [nwt-nettalk]
  2. username=31xxxyyy
  3. type=friend
  4. secret=Password
  5. qualify=no
  6. port=5060
  7. insecure = port,invite
  8. host=ngn2.nwtbb.com
  9. fromusername=31xxxyyy
  10. fromuser=31xxxyyy
  11. fromdomain=home1.com
  12. dtmfmode = rfc2833
  13. canreinvite = no
  14. defaultexpirey=300
  15. context = from-nwt-nettalk
複製代碼

TOP

回復 49# kinuschan

你应该在users.conf,在trunk里的settings。

TOP

不知道是否与版本有关?

TOP

As far as I know that there are two set of hostnames for two groups of HKBN 2b lines. If one of them does not work, we can switch to another one for testing. In general, it should solve the issue.

TOP

上面的HKBN 2b settings漏了inbound registration。

TOP

给你发了PM,请你查收。

TOP

回復 73# HKeSP

给你发PM了,但是根据其他人反馈的信息,好像依然不行。

TOP

我记得以前雯雯的Synology Asterisk是有问题,她自己compiled的Asterisk就没有问题。

TOP

返回列表