Technical Advice

Setting Up an AudioCodes MP1xx FXS With Asterisk

This will be the last in the AudioCodes setup series. A quick and dirty configuration for a vanilla Asterisk setup. AudioCodes uses the network address 10.1.10.10 for FXS and 10.1.10.11 for FXO gateways. Setup your network accordingly to access the default address.

Asterisk Setup:

The Asterisk setup is easy. Just create standard type=friend extensions for as many phone extensions as you would like to create in sip.conf. A typical basic entry would look like below.

[1001]
type=friend
context=local ; Context for incoming calls for this user
host=dynamic ; This peer register with us
dtmfmode=inband ; Choices are inband, rfc2833, or info
username=1001
secret=1234
disallow=all
allow=ulaw ; dtmfmode=inband only works with ulaw or alaw!
;progressinband=no ; Polycom phones don’t work properly with “never”

Create dialplan entries in extensions.conf
exten => 1001,1,Dial(SIP/1001|25)

AudioCodes Setup:

Connect the gateway to a network switch and connect a computer to the same
switch. Then configure the IP address of the computer to 10.1.10.XXX (anything but 10 or 11). Then run your web browser and point it to http://10.1.10.10 and login using

Default IP address: 10.1.10.10
Default username: Admin
Default password: Admin

Click -> “Quick Setup” and change the following:

IP Address => IP address of the AudioCodes 124
Subnet Mask => Set to the correct netmask for your local network
Default Gateway Address => Gateway IP address for your LAN
Working With Proxy => Yes
Proxy IP Address => IP address of the Asterisk server
Enable Registration => Set to “Enable”

Restart the gateway and log back in using the new IP address.

Protocol Management -> Protocol Definition -> Proxy & Registration
Registrar IP Address => Set to the IP address of the Asterisk server
Registration Time => 60
Subscription Mode => Per Endpoint
Authentication Mode => Per Endpoint

Go to Protocol Management -> Protocol Definition -> DTMF & Dialing
Max Digits In Phone Num -> Make it a large number like 32 digits

Go to Protocol Management -> Protocol Definition -> Coders
Add coders as needed You need to set at least G.711U-law

Go to Protocol Management -> Endpoint Settings -> Authentication
Set SIP username and password for each port to match your settings in sip.conf

Go to Protocol Management -> Endpoint Phone Numbers
Enter an extension (phone) number for every used channel to match entries in sip.conf

AudioCodes FXS gateway is ready. Worked here YMMV.

Garrett Smith

Garrett is the former VoIP Supply CMO.

View Comments

  • hello

    i have to audio code ip address

    can u suggest me how the configuration is possible with asterisk so that i can monitor/record call

    regard

    chetan

  • Hi Kevin , i configure my audio codec whit a IP public (190.12. XXX . XXX) , but I try connect for web but show me a error

    Unauthorized
    Correct authorization is required for this area. Either your browser does not perform authorization, or your authorization has failed. RomPager server by Digest Access Authentication, which is not supported by your browser.

    Return to last page

  • does not work. I can not get the thing to got ext 9000 to port 1 9001 port2. The only way it works is set to ascending and of course that will not work. the docs for this unit sucks. I am sure it will work nicely if I could get it to work right. the whole point of getting this was to have it work with 2 fax machines and two modems. if it is randomly picking ports then it is useless.

  • Hello. I have the MP-124 FXS model and i'm getting One Way Audio problems

    Do you know anything about that?

Share
Published by
Garrett Smith

Recent Posts

Watch Now: 2025 January VoIP News Update

https://youtu.be/vx5t7gt3ceg?si=U-7WW9NylVkoKyXu We're so excited to bring you the first episode of the VoIP News Update…

24 hours ago

Fanvil Link Mobile Application Walkthrough Video

https://youtu.be/4fdqGYd2Zns?si=wBffhTwHe-6mYOtS The long-awaited and exciting Fanvil Link Mobile Application is here! Now, like never before,…

6 days ago

How To: Create the Perfect Match for Hybrid Workplaces with Microsoft Teams & VoIP Technology

Hybrid work in the U.S. has boomed since 2020, with 53% of remote-capable employees now…

1 week ago

CyberData Terminus Cloud Control Webinar | January 2025

https://youtu.be/z4w7Typ_Shc CyberData Terminus Cloud Control is here! Thanks to advanced innovation at CyberData, customers can…

2 weeks ago

Watch Now: 2024 December VoIP News Update

https://youtu.be/vV0BDOCGiKs?si=jFrelg8-ddbcLhTC In the December VoIP News Update, two exciting developments in the VoIP space were…

1 month ago

Fanvil H5 Hotel Phone Product Feature & How to SIP Register to 3CX | VoIP Supply

https://youtu.be/UHKuBq0Pvuk?si=zS3KlwIkJz2-6vaq At VoIP Supply, we’re always excited to explore new solutions for businesses and industries,…

2 months ago