Setting Up eVOX FXO and eVOX PBX

To setup connection from eVOX PBX and eVOX FXO (4 or 8 port)

1)Create SIP trunk
Outbound setting

Inbound Setting

Registration : Don’t Need

At eVOX FXO Gateway
SIP Server (Fill up primary SIP Server with eVOX PBX IP)

Port (create port)
— Do not need to fill up login Extension
— Fill up OffHook , the extension in eVOX to pass the extension to

Call & Routing
— IP Trunk ( create a trunk to eVOX PBX IP)
— Tel -> IP/Tel Routing (add )
— Call to (IP trunk that created previously , do not point to SIP Server)

— Enabled — Send Original CID when Call from PSTN

eVOX PBX connecting to E1-GW

To interconnect e1 Gateway (or any SIPGW) to eVOX-PBX (or other PBX , like FreePBX, concept is the same):

There is two method:
First Method :
E1-GW sign in to IPPBX.  To use this method, create an Dummy Extension at IPPBX, and let the E1GW to sign in to IPPBX.  Then Create a SIP trunk for IPPBX to route outbound call via E1GW.
To receive call, create DID number as Extension in IPPBX, then follow-me to route to respective destination (* Take note, to do in this way, Inbound route will not work)
** Disadvantage of this method is , all incoming call, the caller’s callerid will not show in IPPhone (or destination extension).  All incoming call’s caller id will show as the Extension of E1-Gw sign to IPPBX. (As if that extension receive call and pass to other local extension)

Second method :
This method are more complicated to setup, there is no need to register of extension from e1-gw to ippbx, call are pass by inbound route, and via trusted sip trunk .

1) at eVOX PBX

A) create sip trunk :
Outgoing Setting

PEER Detail:
 host=  # IP-ADDRESS-OF-E1-GW
 insecure=very        # port,invite {latest version of asterisk}

Incoming Setting

USER Context : E1_GW_in
USER Detail : 
 insecure=very       # port,invite {latest version of asterisk}
 host= # IP-ADDRESS-OF-E1-GW

Registration : NO-NEED

B) Then, create inbound route for DID to route to specific Extension.

2)Setting at E1 Gateway
– Create SIP Trunk without sign in to eVOX PBX
– If sign in to eVOX PBX, then all inbound call will appear the signed in Ext number (as discuss in Method 1 above)
– Take note of “Register to Remote” -NO

Asterisk Call Pickup

To Pickup call that know the extension –
Just press ** + ringging ext

To Pickup call that do know know the extension, callgroup and pickup group will be use –

Following is clarification of callgroup and pickup group-
CallGroup – Category of a inbound call to specific extension. For example, Sales Department has callgroup 1 ; while Technical Department has callgroup 2

PickupGroup – Pickupgroup at extension is define which callgroup an inbound call can the extension can pickup. For example, the senario above, an extension that has pickupgroup 1, can only pickup call destinated to extension Sales Department, while pickupgroup 2 can only pickup call to extension Technical Department. While extension with PickupGroup 1,2 can pickup call destinate to both Sales and Technical Department.

Thus, usually, Receptionist have pickup group 1,2 ; while collegue in Technical Department have pickupgroup 2 and collegue in Sales Department has pickup group 1. And it give senario of Receptionist can pickup call from both department , which each individual department collegue can only pick up call from within same department only.

Pickup call with this method , by default is dial *8 , this default value can be change at FreePBX’s “Feature Codes” under Core Section.

Asterisk-FreePBX On Demand Call Recording

This is how to trigger On-Demand Call Recording, which means middle of conversations, activate the call recordings-

A. “In FreePBX, 1 – Ensure Feature Code “In-Call Asterisk Toggle Call Recording” is enabled and set to *1.

B On the General Settings page, add “wW” to “Asterisk Dial command options” making its value “trwW”. Also, add “wW” to “Asterisk Outbound Dial command options.” Hover over the labels for a full description of these options.

C On the extension, make sure “Record Incoming” and “Record Outgoing” are set to “On Demand”.”

FreePBX Showing DB Error

Following is the error screen –

If you all the while no problem on FreePBX recording, and out of sudden not able to retrieve the  recording and shows “DB Error: Unknow error” , this mostly due to DB table corruptions, this can be fix using following –

mysql -h localhost -u asteriskuser -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>  USE asteriskcdrdb
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> optimize table cdr;

Done. You try again and it should work.