Asterisk connects with VX through multi-site

If you want to connect asterisk with VX, you can refer to this file.

Here it is the related information(asterisk and VX are in the same LAN):

 1

Below is our purpose:

1. 7XXX can call the extension 6XXX, and 7XXX can call out through the first dialing rule of VX.

2. 6XXX can call the extension 7XXX, and 6XXX can call out through IP trunk of asterisk.

The detailed steps are:

Firstly, let us configure the VX.

1. please input the related information in multi-site like this.

3

Because the sip port of asterisk is 2468, we need to add it behind the IP address.

2. let us create the dial plan.

2

when any number starting with 56 from asterisk reaches VX, it will go out through the first rule at default.

 

Secondly, let us configure asterisk.

1. we need to input the related information in the file sip.conf.

[VX]
host=192.168.1.192
qualify=yes
type=peer
context=VX
[grace]
type=peer
host=dynamic
secret=123456
context=serverB
qualify=yes
nat=yes
directmedia=no
disallow=all
allow=ulaw
allow=alaw
dtmfmode=auto

;here we create one extension grace as example.

2. let us input the related information in the file extesnion.conf.

[serverB]
exten => _7X.,1,Dial(SIP/${EXTEN}@VX)
exten => _56X.,1,Dial(SIP/${EXTEN}@VX)

;when the extenion dials 7+any number or 56+any number, the call will be transferred to VX. 

[VX]
exten => 6001,1,Dial(SIP/grace)
exten => _57X.,1,Dial(SIP/${EXTEN:2}@VOIPACCOUNT)

;After the call from VX meets with IP address and port,  it will use the context VX to dail any number.

;6001 will make the extension grace ring; 57+any number will be deleted 57 and be sent to VOIPACCOUNT.

No comments yet.

Leave a Reply