返回列表 發帖

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

回復 20# bubblestar

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

TOP

Thanks! 一直追求自動化,來到半場,仍然要手動完成某些工作, 有時想起來的確有趣。

TOP

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

TOP

回復 17# bubblestar

For iptables, create a file as /etc/iptables.rules

TOP

Thanks for your explanation and example.  Will follow suit accordingly.

TOP

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

TOP

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

TOP

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!!

TOP

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

剛剛同 Edward 試左0向 Edward 隻 IP01 用電話打出打入都無問題, 但由 Edward 隻 IP01 既 Trunk 打去我隻 IP01 就打唔出, 反而我隻可似打去 Edward 隻 IP01

TOP

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

TOP

回復 10# ckleea

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

VoIP port應該是在VoIP page裏面set.
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

Can you post the link?

TOP

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.

TOP

回復 4# ckleea

因為你用的是帶VoIP功能, Draytek網站上有教要將router用的default port轉做其他port, port forward才會成功!
Welcome to my TaoBao shop: http://mandymak520.taobao.com/

TOP

返回列表