• Jump to Content
  • Jump to Navigation
  • Jump to Footer

zhink
moment


D-Link Voip Products – Review 1


The use of D-Link products DPH-140S and DVG-6004S together with Asterisk SIP Server and Skype SIP Gateway – PE (referred here as ssgwpe) is reviewed here.

The D-Link DPH-140S Business IP Phone is a full-featured, cost-effective, standard-compliant telephone that can be easily plugged to your home or office network via Ethernet cable.

The D-Link DVG-6004S VOIP trunk gateways connect an IP network to POTS (plain old telephone service) analog lines to send IP voice and data to the conventional phone sets and fax machines. Designed as a cost-effective VoIP solution for a small to medium-sized business and the branch office, these devices provide 4 FXO (Foreign eXchange Office) ports for 4 phone line connections. IP network connection can be through any of the 4 LAN ports or the WAN port (all 10/100BASE-TX Ethernet interfaces).

DVG-6004S has to work in concert with a SIP Server. For this review, the SIP Server is Asterisk. In my next review, Asterisk shall be replaced by another D-Link product, namely, DVX-1000.

DVG-6004S provides many other features beyond the 4 PSTN FXO ports. It acts as a router and has a WAN port that can be used to connect to the internet. It also provides 4 LAN ports that other IP based products can connect to it.

The simplest network setup to get everything going can be as follows:

VOIP Network diagram 1

Connect the analog telephone lines to FXO ports, the internet modem to WAN port and the rest to the LAN ports. With appropriate configurations of the various devices and servers, the above should work. I have to add that I did not try out this configuration because I already have an existing network and decided against reconfiguring my networks.

Hence, my network diagram is a little more complicated and it can be represented as follows:

VOIP Network diagram 2

In the above diagram, DVG-6004S functions purely as a FXO trunk gateway. The router in the middle provides all the other connectivity.

Using the above configuration, I had the following working:

  • Register SIP phone (DPH-140S) to Asterisk
  • Make Skype call from internet to SIP phone
  • Make SIP phone call to Skype
  • Register DVG-6004S to Asterisk
  • Make outgoing calls to PSTN via DVG-6004S
  • Receive incoming calls from PSTN via DVG-6004S
  • Make Skype call from internet to PSTN line via DVG-6004S

The general impression is that the D-Link products are relatively easy to configure. The manual for DVG-6004S is a little hard to understand but with good support from D-Link, I managed to get things working well.

There is no work done on the fax features provided by DVG-6004S. This may be covered in the next review, together with DVX-1000.

Now for the details.

Connecting DVG-6004S

This description is for network diagram 2 above. The following assumptions are made:

  • The router to internet is properly setup and have access to the internet. The router shall also provide DHCP service.
  • The PC with Asterisk and ssgwpe is properly setup and connected to the router. For information about setting up ssgwpe, please click here.

Do the following steps:

  • Connect DVG-6004S via its WAN interface to the router.
  • Connect a notebook or PC to LAN interface of DVG-6004S to access its web interface.
  • Open browser and point to 192.168.8.254. This is the default LAN IP address for DVG-6004S
  • Select “Network Settings” and set “Network Settings (WAN)” to use “DHCP” or “Static IP”. If you choose the latter, ensure that this “Static IP” is out of the range of DHCP client addresses provided by the router.
  • Click “Accept”
  • Select “System Operation”, check “Save Settings” and “Restart” followed by clicking “Accept”. DVG-6004S will reboot with the new settings.
  • Once DVG-6004S has rebooted, go back into “Network Settings” and note the IP address that is assigned by the router (if DHCP was choosen earlier).
  • Ping router. This should work.
  • Move the notebook or PC to the LAN ports provided by router.
  • Ping DVG-6004S via the assigned IP address from router. This should work
  • Connect to DVG-6004S web interface via the assigned IP address from the router.

Register SIP phone (DPH-140S) As Client to Asterisk

  • Connect DPH-140S to one of the LAN port of router. You may also choose to connect to LAN port of DVG-6004S.
  • Create a SIP extension in Asterisk to be assigned to DPH-140S.
  • From the LCD display on DPH-140, find the assigned IP address to DPH-140S.
    • Press Menu.
    • Scroll Down until “IP Address”.
    • Note the address.
  • Let’s say the IP address in 192.168.2.22. Now point web browser to 192.168.2.22:9999.
  • Just press “OK” for authentication. Default is no username and no password. You can choose to change this from the web interface.
  • You should see the web interface to DPH-140S.
  • Click “SIP Settings” and enter “Registrar Server” values corresponding to IP address of Asterisk. Click “Submit”
  • Click “SIP Account Settings” and enter “Account 1 Setting” values corresponding to the created SIP extension in Asterisk. Enable this account. Click “Submit”.
  • Click “Restart System”. Allow the phone to reboot and allow it to register to Asterisk server.
  • If properly registered, you should see the extension for the phone on the LCD display of the phone.
  • Should the above process not work correctly, check network connectivity, and also connect to Asterisk to monitor what is going on.
  • If the phone is properly registered, you should be able to make calls according to the dial plans created under Asterisk.

Skype call from internet to SIP phone (DPH-140S)

For ease in describing the process, let’s assume the following:

  • The SIP phone is registered as client to Asterisk as sip:101@192.168.1.99.
  • The Skype caller from the internet is “tester”.
  • The Skype client associated to the ssgwpe is “sgw”.
  • Configuration for ssgwpe is done correctly as per “Installation Guide” and is registered as client to Asterisk.

Do the following steps:

  • Using the “From Skype” tab of ssgwpe, create a “test” group.
  • Add “tester” as buddy on the Skype client “sgw”.
  • Press “Refresh” button under “From Skype” tab of ssgwpe.
  • Add “tester” to “test” group.
  • Set the “Number to call for the group:” to sip:101@192.168.1.99, as per prior assumption.
  • Login as “tester” from a Skype client connected to the internet.
  • Call from “tester” to “sgw”.
  • Your skype call should be routed to the SIP phone.

SIP phone call from DPH-140S to Skype

Extending the assumptions to the prior section:

  • ssgwpe is listening on 192.168.1.98 as a SIP server. Again see “Installation Guide” on how this is done.

Do the following steps:

  • Connect to web interface of SIP phone, DPH-140S.
  • Click “Phone Book”, add in name to correspond to Skype caller “tester”. For example, “Name” can be set as “Skype Tester” and “Number” set as “tester@192.168.1.98″
  • Click “New” to add this to the phone book for the SIP phone.
  • Press “Phone Book” on SIP phone and scroll down to select “Skype Tester”.
  • Press”OK” to dial to Skype client “tester”.
  • If configuration is done correctly, you should see ssgwpe picking up the call and then connecting the call to Skype client “tester”.

Note:

  • As described under “Known Problems“, despite proper connection, only one way sound may be heard. To rectify this, you can choose to have Asterisk become the bridge between the SIP phone and ssgwpe.
  • For example, create a tester@192.168.1.99 (Asterisk) which forward calls to tester@192.168.1.98 (ssgwpe).
  • For those familiar with Asterisk, this should be easily done. I used the interface from VoiceOne allowing me to write macros to support one extension to handle all Skype users.
  • Edit the phone book for the SIP phone to reflect the changes and then try connection again.

Register DVG-6004S as Client to Asterisk

In this setup, DVG-6004S is used simply as a PSTN gateway.

  • Connect to DVG-6004S web interface via the assigned IP address from the router.
  • Click “SIP”. For each FXO lines, set each up as SIP client to Asterisk. This is similar to the process done for SIP phone earlier. Ensure that the same SIP extensions are defined in Asterisk.
  • Check “Enable Support of SIP Proxy Server / Soft Switch” and “Enable SIP Proxy 1″.
  • Enter Asterisk IP address to “Proxy Server IP / Domain”.
  • Click “Accept”.
  • Click “System Operation”. Check “Save Settings” and “Restart”.
  • Click “Accept” to reboot DVG-6004S.
  • Upon rebooting, DVG-6004S should be registered as SIP clients to Asterisk.
  • Connect to Asterisk to ensure this is done correctly.

Making outgoing call to PSTN via DVG-6004S

When the prior setup is done correctly, making outgoing PSTN call is easy. Assuming FXO Line 1 is registered as 701@192.168.1.99 (Asterisk), then dialing 701 on the SIP phone establishes a PSTN line out with a dial tone.

This manner of calling, getting a line out followed by actual number dialing, is a little clumsy. This can be improved in two possible ways:

  1. Program the “Line” buttons on the SIP phone to get the first free line out. This must be done together with proper settings for DVG-6004.
  2. Have Asterisk to support number mapping. For example, dialing 912345678, means get a line out followed by dialing 12345678. This is easily done using this “exten = s,1,Dial(SIP/701,20,gtTwWmD(ww${ARG1:1}))“. You can choose to do something similar to this.

Receive incoming call from PSTN via DVG-6004S

  • Define a SIP extension on Asterisk to receive incoming calls from DVG-6004S. Let say this extension is *33@192.168.1.99. What Asterisk does with this extension is up to Asterisk. *33 can be directed to a SIP phone, to “incoming queue”, to “incoming group” or to whatever dialplan defined by Asterisk.
  • Connect to DVG-6004S web interface via the assigned IP address from the router.
  • Click “Telephony Settings”, enter “*33″ for “Hot Line No.” for the FXO Lines.
  • Click “Accept” followed by Save and Reboot.

Make Skype call from internet to PSTN line via DVG-6004S

To extend Skype call to PSTN line via DVG-6004S, a number of steps are needed. The brief details are as follows:

  • Group Skype callers under ssgwpe that are allowed to make PSTN connection.
  • Create an extension in Asterisk to receive Skype calls from this group.
  • Map this extension to the group under ssgwpe.
  • Define the extension in Asterisk to do the following:
    • Use interactive voice response to Skype caller for line number to dial out.
    • Bridge the Skype call to line out via DVG-6004S.

Summary

Skype Sip Gateway (PE) works well in the various test cases. However, there is no dial tone during connection from SIP to Skype. A user may be mistaken that a connection is not taking place. This should be improved.

DPH-140S is easy to setup and use. The phone book is especially useful for setting up “non-numeric” call numbers as in the case for calling Skype users. It would be good if phone numbers can also be added via the phone interface, akin to those of mobile phones.

DPH-140S can handle up to 4 SIP accounts making it possible for, say, one connection to a local IP PBX and another to an internet SIP account. The latter case was not tested (This is incorrect. All 4 Sip accounts must be to the same SIP server).

When speaking via the handset, it is best to speak directly into the microphone. Called parties have reported difficulty in hearing when the microphone is displaced slightly. As for the calling end, there is a noticeable low level of noise, albeit not too uncomfortable.

When used with Asterisk, DVG-6004S is a good alternative to Zaptel analog cards. Once DVG-6004S is correctly setup, it performed very well.

There are two noticeable advantages on the use of DVG-6004S over Zaptel analog cards:

  • There is no “echo cancellation” problem with DVG-6004S. With Zaptel analog cards, I have to use “open source line echo canceller (oslec)” to solve the problem. This involves patching and recompiling Asterisk.
  • With Zaptel analog cards, there is a problem detecting dropped call during start of voicemail prompt from Asterisk. When this happens, PSTN line can only be freed after the voicemail service runs its course. This can take some time. With DVG-6004S, this problem does not happen. DVG is able to detect dropped call correctly and can initiate proper call termination to Asterisk.

Some issues do crop up with the use of DVG-6004S.

  • One situation has calls from DVG-6004S to DPH-140S resulting in failure and many warning messages on Asterisk. Strangely, when the dial plan in Asterisk is changed to a group (one is DPH-140S and the other X-Lite), the problem disappears. Setting “a-law” as preferred codec in DVG-6004S also solve the problem.
  • Despite trying various settings and firmware updates to DVG-6004S, there is no success passing PSTN incoming caller ID to the SIP phone.
  • Firmware update to DVG-6004S takes a different track. One does not upload a file to DVG-6004S. Instead, DVG is a client to TFTP, FTP or HTTP service. Though different from normal, it can be useful in cases where centralized repository of updates are preferred.

DVG-6004S is an all-in-one device offering LAN, WAN and PSTN connectivity. As a suggestion, if may be good if D-Link can offer a simple PSTN gateway with 1 LAN port for network connectivity. This can appeal to many with already existing networks.

This entry was posted on Wednesday, November 7th, 2007 at 2:41 am and is filed under Articles. You can follow responses to this entry through the Comments RSS Feed. You can leave a response or trackback from your site.


11 Responses to: “D-Link Voip Products – Review 1”

  1. Luciano Carvalho responds:
    Posted: January 23rd, 2008 at 5:36 pm →

    Congratulations for the article! The information you wrote is very difficult to find anywhere else on the net.

    Have you been able to register DVG-6004S as a SIP Trunk on Asterisk? If not, I’m going to use the way you described on this article, but will I receive the CID of incoming PSTN calls on the softphone?

    [Reply]

    Lor reply on January 23rd, 2008:

    Thanks.

    I don’t think you can use DVG-6004S as a SIP trunk. It has to be a SIP client to Asterisk. So, it is best to use it the way as I described.

    As for the CID of incoming calls, I am sorry to say I have no success. This despite seeking much help from D-Link. They said it is possible, gave me some configurations that just do not work.

    [Reply]

  2. Shrenik Bhura responds:
    Posted: June 3rd, 2008 at 9:52 pm →

    It is possible to use DVG-6004S as a SIP trunk and I have done it before but unfortunately I am unable to replicate the same settings again. Will post again if I get success.

    [Reply]

  3. will responds:
    Posted: June 11th, 2008 at 10:25 pm →

    I have some questions on making outgoing call to pstn. Could you pls tell me more detials about how to write the dial-plan on asterisk server and configuration on dvg-6004s? now i can only make calls from pstn to sip phone. thanks

    [Reply]

    Lor reply on June 12th, 2008:

    The section under “Making outgoing call to PSTN via DVG-6004S” in the article explains that.

    [Reply]

  4. will responds:
    Posted: June 13th, 2008 at 1:48 am →

    Thanks for your reply first. Do you think I should make some change in mgcp.conf and zapata.conf both or just configure sip.conf and extension.conf. Because I still can not make phone calls to pstn network by following your explainations.

    [Reply]

    Lor reply on June 13th, 2008:

    I didn’t configure mgcp.conf. I had DVG-6004S as a client to Asterisk server.

    There is no need to configure zapata.conf as zaptel cards are not used.

    Make sure you have DVG-6004S registered as client to Asterisk. You can use Asterisk command prompt to check that this is done correctly. Then it should work for outgoing as per my description above.

    I am sorry that I may not be able to help further because I had DVG-6004S on loan. I have since returned it.

    [Reply]

  5. will responds:
    Posted: June 27th, 2008 at 2:40 am →

    thanks a lot~ I have registered the DVG-6004S as a sip user in asterisk server and also I typed the command: sip show peers, I can see the DVG-6004S as a sip user in the server also I can make phone call from PSTN network to IP network. So from above all, I think I have registered the DVG-6004S successfully in the asterisk server. But I still can not make the phone call from IP network to PSTN network. Do you think it is something wrong with extension.conf file? We added your command: exten = s,1,Dial(SIP/701,20,gtTwWmD(ww${ARG1:1})) in extension.conf, but still can not. Could you please figure out the problems for us?

    [Reply]

  6. Luciano Carvalho responds:
    Posted: May 14th, 2010 at 5:11 pm →

    More than 2 years ago, I made some attempts to use DVG-6004S efficiently with Asterisk (the first comment on this post is mine). Now I’m back to say that in the last 3 months I’m using DVG with a firmware upgrade togueter with 3CX pbx software. I’ve been able to configure it as a trunk with all the benefits included, like using all 4 FXO ports individually on my dialplan. Also CID is being properly delivered to the SIP clients. Maybe you should give a new try to DVG-6004S / Asterisk with the new firmware!

    [Reply]

    ab reply on October 18th, 2010:

    Thanks to the author for the article and to all for their contributions.

    Will: i am currently setting up the DVG with 3CX box and i am glad to say that i was able to register it has a trunk.

    The challenge is that i cannot coerce it to allow PSTN calls at times it gives the busy signal and at other times it rings but not on the called PSTN numbers.

    Any thought on what i am doing wrong? Thanks to your anticipated help

    Cheers
    Abiodun

    [Reply]

    ab reply on November 3rd, 2010:

    I have solved my own problem and in the end it was mad simple by my master, the Holy Spirit.
    Steps to use the DVG-6004s with 3CX Server

    1. Reset the DVG to its default setting
    2. connect to the WAN port and join it to your LAN
    3. Set up a trunk port on the 3CX (making a note of the parameter)
    4. Create an appropriate outgoing rule on the 3CX
    5. On the SIP tab of the DVG-6004s. set up the FXO representative number with the parameter from the 3CX box. leave the FXO tabs at the default setting
    6. On the telephony tab, enable FXO port where you have your PSTN line connected and chech the hotline tab. Put in the value of your trunk line from the 3CX set up.

    There you are,you can start enjoying your DVG-60004 device.

    Regards
    Abiodun

    [Reply]


Post a Comment

Enter Your Details:


You may write the following basic XHTML Strict in your comments:
<a href="" title=""></a> · <acronym title=""></acronym> · <abbr title=""></abbr>
<blockquote cite=""></blockquote> · <code></code> · <strong></strong> · <em></em>

  • Including a link in your comments will require moderator approval. No Spam please.
  • If you’re a first-time commenter, your reply will be held for moderation. Sorry.
  • Please do not force me to have to edit or remove your comments. No Spam please.
  • Your mature and responsible replies are greatly appreciated by all. Thank you.
Enter Your Comments:

Why ask?

Click to cancel reply

zhink Home


Top - Copyright © 2007-2012, zhink. All rights reserved
Powered by WordPress - Accessible Beast-Blog v.2.0 theme by: Mike Cherim


Note: This is the end of the usable page. The image(s) below are preloaded for performance only.