MP-118 and Trixbox Integration Success

jrmann1999
Posts: 3
Member Since:
2007-06-18

After a couple of days tinkering I finally got my Audiocodes MP-118 working with TrixBox 2.2, the most difficult part was the split nature of trixbox trunks. Sometimes a trunk can be both inbound and outbound at the same time, I fail to see the need to constantly separate them into two contexts, at any rate, here's my successful config:

Background: MP-118 is a 4 port FXS and 4 port FXO gateway. I wanted to get the FXO ports to passthrough to Asterisk for Inbound calls, and I wanted all users to be able to dial 9 to get outbound lines for outbound calls. I chose the MP-118 due to some echo and timing issues with Zaptel cards. I'm using a Rhino Ceros chassis as the Trixbox server, mainly because this site will probably upgrade to a PRI in the future.

Goals:
1. Get the 4 FXS ports operational as analog extensions
2. Get the 4 FXO ports working in both inbound and outbound calling scenarios
3. Get the SIP phones(Polycom 501/330) to be able to dial outbound with little to no echo(preferrably the latter).

Untested:
1. Caller ID inbound from the analog lines
2. MWI on the FXS ports

Procedure:
1. Trixbox setup
A. Setup extensions for each FXS port as SIP extensions. They are all setup as generic SIP devices. My only change was to disable voicemail for each of these extensions.
B. Setup Trunks for the group of Outbound lines. I accepted all Trixbox defaults, changing only the number of channels to four(to match my 4 FXO ports). My User Context was my main Phone number(I have a 4 line HUNT from AT&T). All calls can be identified this way.
C. Setup outbound routes. I setup two routes, one for 9+011, this trunk requires a passcode so that international dialing can be restricted. The second route is 9|. to match all calls outbound. Both routes are assigned my new trunk(I named it PSTN).
D. Setup inbound routes. I setup an IVR as the default for all incoming DID all incoming CID(I left everything blank at the top).
E. Everything else was standard trixbox setup, there's too many options to go into here.
2. MP-118 Setup
A. Quick Setup. Working with Proxy: Yes, Proxy IP: **TRIXBOX IP**, Proxy Name: blank, Enable Registration: Yes
B. Protocol Management
i. Protocol Definition->General. Channel Select Mode: Descending
ii. Protocol Definition->Proxy & Registration. Enable Proxy: Use proxy, Proxy IP Address: , Enable Registration: Enable, Registrar IP Address: **TRIXBOX IP**, Password: , Authentication Mode: Per Endpoint
iii. Protocol Definition->Coders. G.729, G.711U, G.711A, G723.1
iv. Protocol Definition->DTMF and Dialing. Max Digits: 32
v. Endpoint Phone Numbers. For each of the FXS ports, put one of the 4 extensions created in Trixbox. For the FXO ports since I have only one Trunk group in Trixbox I put the main number of my HUNT group for all 4 ports.
vi. Endpoint Settings->Authentication. For the FXS ports, put the Extensions you listed in step v.(also the extensions setup in Trixbox). For the FXO ports leave it blank(it will use the phone number from step v.)
vii. Endpoint Settings->Automatic Dialing. This was the last and most difficult part to figure out, for the FXS ports leave them blank(unless you want them to autodial something). For the FXO ports ***PUT THE IP ADDRESS OF THE TRIXBOX***. This is documented nowhere, and I just tried it on a hunch.
viii. Endpoint Settings->Caller ID. For the FXS ports put each Extension as the CLID(or name, if you don't mind updating everytime someone changes extension). for the FXO ports put each analog lines unique number. It will then identify the line the call came in on.
viv. Advanced Applications->FXO Settings. Dialing Mode: One Stage. Time to wait before dialing: 400

That's all I had to do to get it working. The MP-118 is one powerful little box, but damn confusing to setup. If anyone finds issues with what I've done please post as it'll only help me in the long run. Oh, and don't forget to Burn your Config in the MP-118 when you get it done testing, otherwise a power failure will set it back to factory.



DBehl
Posts: 30
Member Since:
2007-07-10
MP-118 FXO-FXS

Hi JRMann,

I have the MP-118 FXO/FXS box and have tried to go through your setup and I am having difficulties.

I have the calls coming into Trixbox to the AA. I select an extension that should call one of the FXS ports. I get a fast busy and the call information below.

What causes the extention (801) to get routed back to the MP-118? Doesn't there need to be some Dial Rule telling Trixbox where 801 is? I have tried entering the Diale Rule on the trunk, and also I tried creating an Outbound Route with a Dial pattern of 8XX to go to the trunk.

Any suggestions are appreciated.

Thanks,

Doug

dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 801 to extension map
-- dialparties.agi: Extension 801 cf is disabled
-- dialparties.agi: Extension 801 do not disturb is disabled
-- dialparties.agi: dbset CALLTRACE/801 to 100
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing Dial("SIP/ac1.malibu.com-09365aa0", "SIP/801||tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing GosubIf("SIP/ac1.malibu.com-09365aa0", "0?docfu|1") in new stack
-- Executing NoOp("SIP/ac1.malibu.com-09365aa0", "Voicemail is novm") in new stack
-- Executing GotoIf("SIP/ac1.malibu.com-09365aa0", "1?s-CHANUNAVAIL|1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing PlayTones("SIP/ac1.malibu.com-09365aa0", "congestion") in new stack
-- Executing Congestion("SIP/ac1.malibu.com-09365aa0", "10") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/ac1.malibu.com-09365aa0' in macro 'exten-vm'
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/ac1.malibu.com-09365aa0'

--

Doug



jrmann1999
Posts: 3
Member Since:
2007-06-18
I haven't tested

I haven't tested Trixbox->FXS ports, sorry. It looks to me however like your 801 extension isn't registered with Asterisk, as it immediately goes into Unavailable. IF you issue sip show peers, does it show 801 as registered?



DBehl
Posts: 30
Member Since:
2007-07-10
Yes it is registered

Name/username Host Dyn Nat ACL Port Status
SipXOut 10.0.0.102 5060 Unmonitored
PSTN 10.0.0.104 5060 Unmonitored
MP114 10.0.0.104 5060 Unmonitored
804/804 10.0.0.104 D N 5060 OK (36 ms)
803/803 10.0.0.104 D N 5060 OK (27 ms)
802/802 10.0.0.104 D N 5060 OK (28 ms)
801/801 10.0.0.104 D N 5060 OK (30 ms)
155 (Unspecified) D N 0 UNKNOWN
154 (Unspecified) D N 0 UNKNOWN
153 (Unspecified) D N 0 UNKNOWN
152 (Unspecified) D N 0 UNKNOWN
151 (Unspecified) D N 0 UNKNOWN
150 (Unspecified) D N 0 UNKNOWN
145 (Unspecified) D N 0 UNKNOWN
125/125 10.0.0.1 D N 6003 OK (57 ms)
110 (Unspecified) D N 0 UNKNOWN
16 sip peers [8 online , 8 offline]

So just so I understand, you do not have the FXS phones able to be called from within Trixbox or call to another extension in Trixbox?

Doug

--

Doug



DBehl
Posts: 30
Member Since:
2007-07-10
Problem resolved.

I had to put entries in the Routing Tables, IP To Hunt Group Rooting Table for each FXO extension to get calls between these phone and all of the Trixbox phones. The Dest Phone extention = ext#, * for Source Phone, * for Source IP, and the hunt group ID pointing to each hunt group assigned in the Endpoint Phone number for that extension.

Thanks for the initial setup.

Doug

--

Doug



Osiris
Posts: 1
Member Since:
2007-09-20
Answer Detection

I sure hope you're still reading these comments :)

First of all thanks for the post, it has helped me greatly in setting up my MP-118 FXO unit. However, I am having a problem that I cannot seem to fix at all, and I am hoping that you might be able to help me fix it.

The problem is with answer supervision/detection. Right now the MP is generating its own ringtone until it gets something from the PSTN. It also changes the state to connected although the PSTN is simply sending the ringtone back. I have tried to set "Reverse polarity" to enable but that only made the MP not report that the line has been connected at all even when the other line does pick up.

Is this something that you have run across? If so, I hope you found a way to fix it and hopefully you will share it with us all here.

Thanks.



jvantslot
Posts: 27
Member Since:
2007-01-30
Having a hard time following

Having a hard time following these instructions...

What are the settings that I need for just the 8-port FXO version?



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.