Asterisk


#1

Outbound


In order to make outbound calls using the Conversant service, you must create an entry in your sip.conf configuration file. This enables your Asterisk server to authenticate with our SIP proxy and successfully make an outbound call.

 sip.conf
 [C-Out]
 allow=ulaw&alaw
 canreinvite=no
 disallow=all
 dtmfmode=rfc2833
 host=domain
 fromdomain=domain
 outboundproxy=proxy
 username=1234567
 fromuser=1234567
 secret=*******
 type=peer

Note: Replace the username and fromuser with your Conversant SIP username. Replace secret with your Conversant SIP password. Replace domain and proxy with the details provided by Conversant.

In addition you will need to modify your dialplan (in extensions.conf) to pass calls to our proxy. An example follows:

 extensions.conf
 [default]
 exten => _XX.,1,Dial,SIP/${EXTEN}@C-Out
 exten => _XX.,2,Hangup

Inbound and Outbound


Your Asterisk server should register with our proxy server so that inbound calls are routed correctly. Add the following details to your sip.conf file (in addition to the changes described above in the Inbound section).

 Register String: 1234567@domain:password@proxy/7654321

Note: Replace 1234567 with your Conversant SIP username. Replace password with your Conversant SIP password. Replace domain with the details provided by Conversant. Replace 7654321 with your DID number. Replace proxy with the details provided by Conversant.

 sip.conf
 context=default  
 type=friend  
 insecure=very  
 host=sip.conversant.co.nz
 dtmfmode=rfc2833

In addition you will need to modify your dialplan (in extensions.conf) to process the inbound call. An example follows:

 extensions.conf
 [default]
 exten => 7654321,1,Dial,ZAP/g1
 exten => 7654321,2,Hangup
 FreePBX/TrixBox
 Outbound

Create a SIP Trunk and complete the outgoing settings section.

 Trunk name: Conversant outbound
 allow=ulaw&alaw
 canreinvite=no
 disallow=all
 dtmfmode=rfc2833
 host=proxy
 fromdomain=domain
 outboundproxy=proxy
 username=1234567
 fromuser=1234567
 secret=*******
 type=peer

Leave Incoming and Register sections blank.
Note: Replace the username and fromuser with your Conversant SIP username. Replace secret with your Conversant SIP password. Replace domain and proxy with the details provided by Conversant.

In addition, create an outbound route to send dialled numbers to Conversant. In the example below dialling 7 and then the number will send the call to Conversant.

 Outbound Routes (an example)
 Route Name: Conversant outbound
 Dial patterns: 7|X.
 Trunk Sequence: SIP/Conversant outbound

Inbound and Outbound


Add the following details to your existing SIP trunk.

 Register String: 1234567@domain:password@proxy/7654321

Note: Replace 1234567 with your Conversant SIP username. Replace password with your Conversant SIP password. Replace domain with the details provided by Conversant. Replace 7654321 with your DID number. Replace proxy with the details provided by Conversant.

Create a SIP trunk for inbound:

 zzz_Conversant_in

 context=from-trunk
 type=friend 
 insecure=very 
 host=sip.conversant.co.nz
 dtmfmode=rfc2833

In addition, create an inbound route to process incoming calls.

 DID Number: 7654321

Note: Replace 7654321 with your DID number. Also choose the appropriate destination for the incoming calls. For example you could choose to call an extension, send the call to voicemail etc.