Grandstream GXW4104

From KlavoWiki
Jump to navigationJump to search



The Grandstream GXW4104 is a 4 port FXO device. If you have a GXW4108 which is a 8 port FXO device, it can be configured exactly the same way.

These instructions are not 100% complete but I have managed to get this to function with Asterisk. The following configuration will pass all inbound calls on any line to priority 1001 to context from-Grandstream. The settings are customised as much as possible for Australia.


Configuring the GXW410x

FXO Lines


  • User ID the username that will be used to authenticate to Asterisk
  • Sip Server p1 is Profile 1 that will be used
  • Destination Port: Obvious I hope.

The format is ch1-4:<value>;
This means channel or line 1 through to 4. You can mix and match the setting if required.




Channels


I'm not 100% certain these are correct. Hopefully someone can shed some light. So you can cut and past:

  • ch1-4:f1=350@-11,f2=440@-11,c=0/0;
  • ch1-4:f1=440@-11,f2=480@-11,c=200/400;
  • ch1-4:f1=480@-11,f2=620@-11,c=50/50;
  • ch1-4:f1=480@-11,f2=620@-11,c=25/25;



Profile 1

Enter the IP or FQDN of your Asterisk Server.

Configuring Asterisk

sip.conf

;Outbound Calls
[gxw410x]
type=peer
context=from-grandstream
host=172.16.11.2
insecure=port
dtmfmode=rfc2833
;Inbound Calls
[1001]
type=friend
secret=1001
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=from-grandstream

extensions.conf

;Inbound Calls
[from-grandstream]
exten => 1001,1,Playback(tt-monkeys)
exten => 1001,2,Playback(goodbye)
exten => 1001,3,HangUp
;Outbound Calls
exten => _XX.,1,Dial(SIP/${EXTEN}@gxw410x,30)