JoforceCRM Asterisk Configuration

Joforce Asterisk Integration module - PBXManager Suite requires few configuration that need to be made in Asterisk Sever. The Joforce Asterisk Server can be one or they can be installed in 2 different servers. If the Joforce and Asterisk Server are different location, then MySql need to be open to connect Joforce and Asterisk.

Asterisk side basic configuration

Configure your Asterisk Server to make PBXManager Suite to work properly,

Before configure the asterisk files, Take backup of sip.conf and extensions.conf file in /etc/asterisk folder

[email protected]:/etc/asterisk$ sudo cp sip.conf old-sip.conf

[email protected]:/etc/asterisk$ sudo cp extensions.conf old-extensions.conf

To configure sip.conf:

[email protected]:/etc/asterisk$ vi sip.conf

[general] context=set as your own ex:from-internal

allowguest=yes

allowoverlap=no

bindport=5060

srvlookup=no

dtmfmode=rfc2833

disallow=all

allow=ulaw

allow=alaw

allow=gsm

allow=speex

qualify=yes

rtcachefriends=yes

/ register your sip-provider credential as following/

register => username:[email protected]/domain

Example:

register => 31961:8f6LrYd(@amn.st.ssl7.net

Note: 31961 is your sip credential username

8f6LrYd( is your sip credential password

amn.st.ssl7.net is your provider host/domain name

To configure extensions.conf:

[email protected]: /etc/asterisk$ vi extensions.conf

[general] [globals] ;

[from-internal] /[context] same as like in sip.conf/

switch =>Realtime

To configure manager.conf:

[email protected]: /etc/asterisk$ vi manager.conf

[general] enabled=yes

;webenabled=no

port=5038

bindaddr=0.0.0.0

[username] secret=password

deny=0.0.0.0/0.0.0.0

permit=asterisk_ip/255.255.255.0

permit=joforce_ip/255.255.255.255

permit=127.0.0.1/255.255.255.0

read=all,system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,message

write=all,system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,message

To configure cdr_manager.conf:

[email protected]: /etc/asterisk$ vi cdr_manager.conf

[general] enabled = yes

To configure Res_config_mysql.conf:

[general] dbhost = localhost

dbname = joforce database name

dbuser = mysql username

dbpass = mysql password

dbport = 3306

dbsock = /var/run/mysqld/mysqld.sock

;dbcharset=latin1

;requirements=warn ; or createclose or createchar

To configure Extconfig.conf:

Copy and paste in this conf as following:

[settings] sipusers => mysql,general,joforce_sipconf

sippeers => mysql,general,joforce_sipconf

extensions => mysql,general,joforce_extensionsconf