login | register
Sat 17 of May, 2008 [15:03 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.41s
  • Memory usage: 2.24MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 1.36

D-link DVG-1120

Dlink webpage for DVG-1120

N.B. - As of 2005/09/29 it appears this device is no longer on the D-Link website.

A small NAT router with built in VOIP SIP ports and a QOS mechanism
It has 2 FXS ports and 1 FXO port.
You can configure a table to route calls by dialed digits to the FXO port (conected to a PSTN line) or a SIP connection.

See also:

The 1120S (SIP firmware) device works great with Asterisk. There have been mixed results with the MGCP version (1120M). It is possible to convert an 1120M to an 1120S by reflashing the firmware, but redistributing the firmware may not be legal.

Provider Specific settings (for DLink DVG-1120M)

Some providers have custom firmware that cause the gateway to loose all it's settings when the device reboots, making it really difficult to get the gateway to work with an asterisk server not on the local subnet. To resolve this issue:
1. telnet 192.168.15.1 (or whatever the ip is)
2. Login
3. autocfg func 2
4. commit

Now you should be able to play with the settings without any troubles of losing your settings...


User's Guide


A complete and very useful version of the user's guide is available at DVG-1120S Users Guide. This word code explains most features of the unit, whereas, the other PDF version from the D-Link site says next to nothing. This manual is marked draft but contains the usage of the console port and other features.

Asterisk mgcp.conf settings (1120M)


[000abcdef12] ; device's mac address
host = dynamic
context = from inside
canreinvite = no
mailbox=14165551213@default
nat=yes
threewaycalling = yes
transfer = no
callwaiting = yes
callerid="Line 2" <14165551213>
line => aaln/2
context = from-inside
mailbox=14165551212@default
threewaycalling = yes
transfer = no
callwaiting = yes
nat=yes
callerid="Line 1" <14165551212>
line => aaln/1
line => *


Notes about the DVG-1120m and asterisk:

-For the hassle to get this device to work with asterisk, it is more convenient to go and buy a SIP adapter for 60$.
-Call waiting doesn't always work (sometimes it beeps but you can't pick it up)
-The Primus Canada branded DVG-1120m has several distinct ring tones available (try _ALERT_INFO=1) (There seems to be 4 ring tones. 1. Standard ringtone, 2. two medium length tones. 3. 2 short rings and a third slightly longer ring. 4. one short one long and one short.)


Asterisk sip.conf Settings


[1020]
username=1020
type=friend
secret=SECRET
qualify=no
port=5061
nat=never
host=dynamic
dtmfmode=inband
context=internal
canreinvite=no
callerid="1020"<1020>

Note: The CID name inside quotes on "caller id" must correspond to the "display name" field on the VoIP router's page below.

User agent options


Image

Created by jht2, Last modification by dlublink on Sun 17 of Dec, 2006 [18:32 UTC]

Comments Filter

Caller-ID patch for 1.4.16.2

by Rob on Tuesday 01 of January, 2008 [13:15:14 UTC]
Updated patch I did on 1.4.16.2.
I'm not familier with asterisk source, so I get lots of compiler warnings about redefinitions, but it seems to work ...
<pre>
  1. diff chan_sip.c.bak chan_sip.c
17c17,20
< */

>
> dvg1120s patch applied http://www.voip-info.org/wiki/view/D-link+DVG-1120
>
> */
1497c1500
< static int add_header(struct sip_request *req, const char *var, const char *value);

> static int add_header(struct sip_request *req, const char *var, char *value);
5514c5517
< static int add_header(struct sip_request *req, const char *var, const char *value)

> static int add_header(struct sip_request *req, const char *var, char *value)
5516a5520
> int my1,my2;
5537a5542,5555
>
> /* VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
> MY PATCH FOR CallerID Name from Asterisk to D-Link DVG-1120S */
> if (!strcmp("From",var)) { /* the From header needs quotes stripped */
> if (value0==34) { /*opening quotes */
> for (my1=0,my2=1;valuemy1+1 ;my1++,my2++) {
> if (valuemy2==34) {my2++;} /* jump over closing quotes */
> valuemy1=valuemy2 ; }
> valuemy1=0;
> }
> }
>
>
>
</pre>

UPDATE: Caller Id for DVG-1120S

by mbuckaway on Saturday 15 of April, 2006 [04:02:13 UTC]
Andrei's patch works, but does not compile with Asterisk 1.2.7.1. Here is an updated patch:


3676c3676
< static int add_header(struct sip_request *req, const char *var, const char *value)

> static int add_header(struct sip_request *req, const char *var, char *value)
3701a3702,3712
> /* VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
> MY PATCH FOR CallerID Name from Asterisk to D-Link DVG-1120S */
> if (!strcmp("From",var)) { /* the From header needs quotes stripped */
> int my1,my2;
> if (value0==34) { /*opening quotes */
> for (my1=0,my2=1;valuemy1+1 ;my1++,my2++) {
> if (valuemy2==34) {my2++;} /* jump over closing quotes */
> valuemy1=valuemy2 ; }
> valuemy1=0;
> }
> }

The remainder of his instructions apply. I installed it and now my caller Id's are back.

UPDATE: caller id name , asterisk and d-link dvg1120m

by admin on Wednesday 05 of April, 2006 [19:42:56 UTC]
From: "Andrei Petrescu" 
To: <support@voip-info.org>
Sent: Tuesday, April 04, 2006 6:51 PM
Subject: UPDATE: caller id name , asterisk and d-link dvg1120m


after a few late nights with much midnight oil burnt,
i found out that:

Asterisk cannot transmit CallerIDName to the DVG1120s

And i started to investigate:
1) x-lite (using the dvg as a "proxy") transmits it fine, all phones display it ok
2) same x-lite, same settings, but going through asterisk - not

3) started sniffing both xlite and asterisk at work:
The only difference was in the From: SIP header
x-lite says
From: test22 <sip:3333@172.18.174.175>;tag=263456542

//ip addresses and other personal data altered - kept same format

asterisk says something like:
From: "test22" <sip:22@172.18.174.173>;tag=ax3y3z4e2b

it seems that the DVG reacts badly to the quotes in the SIP headers
BUT on the bright side, everyone else accepts the header WITHOUT the quotes just fine

so - get rid of them

Unfortunately, the sip header protocol is not configurable in this respect in asterisk,
so i had to hack very deep. (Limbo rock in the background - "how low-level can you go ?")

Finally i came up with:

1) cd ....../asterisk-1.2.4/channels    ;#  in the source tree for asterisk
2) rm chan_sip.o chan_sip.so

make the following adjustment to chan_sip.c:
--- chan_sip.c-patched  2006-04-04 23:51:48.000000000 -0400
+++ chan_sip.c-out-of-the-box     2006-01-28 08:52:15.000000000 -0500
@@ -28,7 +28,6 @@
   * \todo Better support of forking
   */

-int my1,my2;

  #include <stdio.h>
  #include <ctype.h>
@@ -3686,17 +3685,6 @@
                                 var = aliases[x].shortname;
         }

-/* VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
- MY PATCH FOR CallerID Name from Asterisk to D-Link DVG-1120S  */
-if (!strcmp("From",var)) { /* the From header needs quotes stripped */
-       if (value[0]==34) { /*opening quotes */
-       for (my1=0,my2=1;value[my1+1] ;my1++,my2++) {
-                       if (value[my2]==34) {my2++;}  /* jump over closing quotes */
-                       value[my1]=value[my2] ; }
-       value[my1]=0;
-       }
-}
-/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
         snprintf(req->header[req->headers], sizeof(req->data) - req->len - 4, "%s: %s\r\n", var, value);
         req->len += strlen(req->header[req->headers]);
         req->headers++;



  cd ..
  make all
  mv /usr/lib/asterisk/modules/chan_sip.so /usr/lib/asterisk/modules/chan_sip.so-out-of-the-box
  cp ....../asterisk-1.2.4/channels/chan_sip.so /usr/lib/asterisk/modules/chan_sip.so
  asterisk -rx "restart now"



========================================

Also the manual should be updated - there are some errorneous statements in that
page about the FXO port:

one can use the ACR feature to route some calls to the FXO port even when the SIP connection
is on

Also incoming calls will be received on that port (useful if one still has a Bell line
or a condo-style intercom)

Unfortunately all calls unresolved by the sip server are also dumped to the FXO port.


Another usage of it would be to keep it disconnected and make ACR route all calls to it
except a list of permitted valid numbers which will go through VoIP (e.g. only local
and free and emergency - all toll calls dumped on the empty fxo socket and getting dead air)
Not user friendly, but efficient in managing toll calls.


DVG-1120M Nat ConnectionTime Outs

by magickal1 on Thursday 24 of March, 2005 [05:58:42 UTC]
English is not my first language so please over look the spelling errors thanks

The DVG-1120M has some interesting timeout settings that I discovered. My Issue was that if I was using IRC and had a Direct Client to Client (DCC) connection active. The connection would timeout after 20 minuets. This was also happening on several other applications usingt he TCP protocol as well. The cause is that some applications and specficly protocols that use tcp do not send a data packet to check on the connection. While data would come in the router would not see that inbound data as part of that session and the timer would not reset to 0. DCC does not check for a stoned connection by sending packets to the other client. If the timeout value is exceeded data will still be recieved as the port is left open inbound hoever if data is sent after that value it will close the port and the session is disconnected. There is no indication that the session has times out as data is recieved so the DCC client assumes that the session is active. This could possibly be a security rish as well though I havent persued that at this time.

The fix

in a telnet client establish a connection to 192.168.15.1 and log in The default user name and password is admin admin

you can now type nat dump which will display the current NAT table and all the settings as well as resetting the timers.
To change the timeouts
nat timout value value value value note value = seconds thus a value of 60 is 1 min 3600 is 1 hour
eg nat timeout 30 7200 86400 3600 (i choose 86400 {24 hours} )
note that nat timout curr_value curr_value 1200 curr_value will set the timers to nat timeout 0 0 1200 0

doing either a soft or hard reset will revert the settign to factory defaults.
Edit

Re: FXO Usage?

by Anonymous on Tuesday 21 of September, 2004 [08:31:27 UTC]
..im trying to set up a DVG-1120 with an outbound connection thro the FXO port but the only time i get any calls thro is when i pull the plug of the little bugger(:question:) Of what i understand of the manual you got three options:
1) In the menu you can choose VoIP/PSTN, and switch between them.
2) The manual switch in the back VoIP/PSTN
3) Pull the plug
Edit

Outbound proxy?

by Anonymous on Tuesday 17 of August, 2004 [14:37:03 UTC]
Due to my network setup, I need to have my ATA use an outbound proxy. Can the DVG-1120 be set up with an outbound proxy??
Edit

RE: FXO Usage?

by Anonymous on Tuesday 17 of August, 2004 [14:35:55 UTC]
It is my understanding from the web interface of the DVG-1120 that you can configure it to default to either VoIP or PSTN and then use a prefix to switch to the non-default method. Havn't been able to test this yet, though.
Edit

Buy

by Anonymous on Thursday 20 of May, 2004 [02:22:44 UTC]
Where can I buy one of these in the US or Canada?

FXO Usage?

by mstovenour on Sunday 29 of February, 2004 [05:09:18 UTC]
It is my understanding that the FXO port is only used when the system is powered down or when a switch in the back, labeled PSTNVoIP, is toggled. At that time the DVG simply cuts through line 1 to the FXO port; almost like a dead man's switch. The only reason that I did not update the page is that I would like to confirm that you don't have a more advanced firmware than the one running on my desk.

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver