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.
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...
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.
[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.)
[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.
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


Comments
333Caller-ID patch for 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 ...
# 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 (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; > } > } > > >333UPDATE: Caller Id for DVG-1120S
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.
333UPDATE: caller id name , asterisk and d-link dvg1120m
333DVG-1120M Nat ConnectionTime Outs
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.
333Re: FXO Usage?
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
333Outbound proxy?
333RE: FXO Usage?
333Buy
333FXO Usage?