Board logo

標題: Draytek router with Ip01 [打印本頁]

作者: ckleea    時間: 2011-2-6 21:04     標題: Draytek router with Ip01

I found a possible solution to deal with sip connection problem in a network environment with Draytek router 2920 or 2930 and IP01. I understand there is always problems with this setup for sip client to connect to the IP01 despite one has open the port and done port redirection.

I figure our that in the draytek router, use port re-direction to direct an unused port (i.e. not UDP 5060) e.g. 15060 to the IP01 IP:5060. In this case, the IP01 does not need to change any port binding and allows internal client to connect via standard 5060 UDP port. For outside LAN or internet connection, the client has to use a different port (usually in a form of xxx.xxx.xxx.xxx:15060 to connect.

I try this with great success.

See if you need this as a workaround for draytek router.

CK
作者: bubblestar    時間: 2011-2-6 21:28

Thanks for sharing.

I have tried that before and it was also a success.  

Do you know if can we do that in the same network environment with 2 Asterisk servers?  My trial was fail.
作者: ckleea    時間: 2011-2-6 21:34

I have no idea but the previous experience with asterisk severs and IP01 worked. Now I have two machines I can see if this can work or not.

As far as I know, it should be ok.
作者: ckleea    時間: 2011-2-6 21:35

The draytek router concerned is Vigor2930Vn
作者: 角色    時間: 2011-2-6 22:08

The port forwarding issue using Dratek router has already been discussed with bubblestar few days ago. With this feature, the internal port 5060 does not need to be changed. We only change the port number from outside and transfrom it into another one such as 5060 for the use of internal Asterisk server.

YH
作者: bubblestar    時間: 2011-2-6 22:09

Mine is Vigor 2930n.  It should not have much difference but I failed to do it for dual servers in same lan environement.  Hope you can make it and enlighten me the way to get it work.
作者: ckleea    時間: 2011-2-6 22:14

回復 6# bubblestar

2930VN is a different issue. It has VOIP as well. I don't know why it needs to change to different port but I believe that the router has something set up to default all traffic of sip to its ports first.

You may recall others using draytek has similar problem in sip connection.

Anyway it helps to fix some problems and at the same time enhance security i.e. not using standard 5060 port for SIP.
作者: 雯雯    時間: 2011-2-6 22:24

回復 4# ckleea

因為你用的是帶VoIP功能, Draytek網站上有教要將router用的default port轉做其他port, port forward才會成功!
作者: bubblestar    時間: 2011-2-6 22:30

Basically, the internal/external using the default UDP5060 is no problem.  If I use single server, I can still connect it from outside world with port 15060.  However, when I set up another (2nd) Asterisk server in the same lan, I cannot use other ports like 25060 to re-direct to the internal 5060 on the second server.  That's my existing situation.  

Anyway, Draytek Vigor 2930n is a good router for me, so far.  Maybe, I have to spend some time to get familiar with it further.
作者: ckleea    時間: 2011-2-6 22:38

Can you post the link?
作者: 雯雯    時間: 2011-2-6 22:53

回復 10# ckleea

http://www.draytek.com/user/SupportFAQDetail.php?ID=29

VoIP port應該是在VoIP page裏面set.
作者: smallstarxsc    時間: 2011-2-6 23:44

I found a possible solution to deal with sip connection problem in a network environment with Drayte ...
ckleea 發表於 2011-2-6 21:04



Dear Ckleea,
Thanks for your information. I have set it and will test it tomorrow.
Edward
作者: 亞星    時間: 2011-2-7 09:20

本帖最後由 亞星 於 2011-2-7 09:21 編輯

剛剛同 Edward 試左0向 Edward 隻 IP01 用電話打出打入都無問題, 但由 Edward 隻 IP01 既 Trunk 打去我隻 IP01 就打唔出, 反而我隻可似打去 Edward 隻 IP01
作者: ckleea    時間: 2011-2-7 14:40

Additional tricks for the set up
1. since IP01 is not a very powerful CPU, when you update the file via GUI, you need to wait for a while to allow the write to complete
2. Switchfin GUI though is better is still limited in handling the conf file. Please bear this in mind and try to use SSH or FTP within the lan for file editing. I.e. encourage to do it via APL not GUI
3. if after changes, not able to sip login, try to reboot the IP01 and your sip client. Very often, it caches the previous information.
4. always save copies of working conf and it allows you to restore the working conf when you encounter problem.
FYI, my sip.conf. is corrupt but working, it is a result of previous GUI write with duplicate settings. I try to trim down and remove duplicates, then it does not work. Don'r know why!!
作者: bubblestar    時間: 2011-2-7 15:15

回復 14# ckleea



A very good set up advice.  Thanks.

I have been puzzling about the question that when I set up new trunks using APL, there is no way for me to see the trunk in Outgoing Calling Rules and Incoming Calling Rules in the GUI interface.  In this case, how can I create DP for the newly established trunks?

OK.  If I set up all IN/OUT calling rules with APL as well.  I'm still unable to see the trunk status from GUI.  Is that normal?  Are you just living with that and dial out by memorizing dialing prefix without the need to refer to GUI?

Another question is that I discover there is no crontab under the  /persistent/etc/ directory.  Shall I need to create one myself to do crob job?
作者: ckleea    時間: 2011-2-7 15:40

回復 15# bubblestar
You cannot see the trunk status if you set up under APL. You need to manually add the calling rules e.g.

[CallingRule_USCall]
exten => 01.,1, Dial(SIP/1${EXTEN:2}@gimzo5,,r)
exten =>01.,2, hangup

For cron job, you can create a file /persistent/etc/crontab
作者: bubblestar    時間: 2011-2-7 15:51

Thanks for your explanation and example.  Will follow suit accordingly.
作者: ckleea    時間: 2011-2-7 15:55

回復 17# bubblestar

For iptables, create a file as /etc/iptables.rules
作者: ckleea    時間: 2011-2-7 15:58

回復 15# bubblestar


    Another interesting points for dialplan and outgoing rule:
with more complex set up, I suggest to print out dialing prefix for the sake of memory. It would be difficult to remember single especially if you work like having a multiple skype trunks, multiple voip services, multiple abbreviations for speed dials, etc
作者: bubblestar    時間: 2011-2-7 16:18

Thanks! 一直追求自動化,來到半場,仍然要手動完成某些工作, 有時想起來的確有趣。
作者: ckleea    時間: 2011-2-7 17:18

回復 20# bubblestar

記住,IP01 processing power 有限,所以不要做太多 tasks.




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2