Trunk Betwenn 2 VICIdials in the same LAN

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Trunk Betwenn 2 VICIdials in the same LAN

Postby dorian88 » Wed Oct 12, 2016 4:27 pm

Hi all, first of all let apologize for my little knowledge about Asterisk and VICIdial, Trunks etc.

I am facing a problem with transferring calls from the logged in the VICIdial Agents (via 3 Way Call) to the Agents softphones who ARE NOT logged in the VICIdial. They just call manually.
What do i need to do? I mean i searched the internet and i found that i have to create a Trunk between them... but does a Trunk still needed when the servers are in the same LAN? Next i have to create an extension that everytime the logged in agent presses the 3 Way Call and D1 (for example "779") the phones of the agent who are not logged in rings. I mean i tried to setup a trunk on the first one and a carrier on the second one but when i press on the Asterisk CLI "sip show peers" i don't see the ip of each other.... and of course the call fails to transfer. Any idea how to do it?

PS: if you want i can send you the configuration on the 1st server and the configuration on the 2 server and also the dialplans.

Thanks in advance.
SRV 1: VICIbox 4.0.3, Ast 1.4 and VICIdial 2.6-393a | Xeon Quad W5560 2.46GHz | 24GB RAM | 2 x 1.2TB Raid 0 |Load Avg. 0.10 0.09 0.08 | G729 Codec | VoIP | OpenSUSE 12.1 ---> Agents With Predictive Dialing On the 2nd server Agents call manually
dorian88
 
Posts: 22
Joined: Mon Nov 10, 2014 8:27 am

Re: Trunk Betwenn 2 VICIdials in the same LAN

Postby ambiorixg12 » Thu Oct 13, 2016 1:07 am

start by creating the trunk between the 2 servers, then you will need to create a context to handle calls from each server, so replace the trunkinbound for your custom context or use trunkinbound if you want to route incoming calls based on vicidial GUI

use sip show peers command to verify if both trunk are rechable between them


[vici_A]
host=VICI_B_IP
type=peer
port=5060
disallow=all
allow=ulaw
allow=alaw
nat=force_rport,comedia
directmedia=no
context=trunkinbound
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
qualify=yes
insecure=port,invite
fromuser=vicidial


[vici_B]
host=VICI_A_IP
type=peer
port=5060
disallow=all
allow=ulaw
allow=alaw
nat=force_rport,comedia
directmedia=no
context=trunkinbound
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
qualify=yes
insecure=port,invite
fromuser=vicidial
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Trunk Betwenn 2 VICIdials in the same LAN

Postby oonyxx » Mon Oct 17, 2016 3:47 am

Ok. i had the same problem a while ago. And this is how i did it:

On the Server who sends the calls via 3 Way Calling (from the Vicidial Agent panel) i created this configuration:
Created a new carrier and a dialplan who rings a specific extention on the receiving server. Here is the configuration:
[transfer]
disallow=all
allow=ulaw,alaw
type=peer
host=[IP of the receiving Server]
dtmfmode=auto
insecure=port,invite
canreinvite=no
nat=yes
context=trunkinbound

Here is the dialplan on the sending server:
exten => _777,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _777,2,Dial(SIP/transfer/777,,tTo)
exten => _777,3,Hangup

Global String: transfer1 = SIP/transfer
-----------------------------------------------------------------------------------------------------------

Now on the receiving server you just have to add a account entry on the exiting carrier, which simply makes the trunk connection with the sending server:
Here is the account entry (add it below your existing one):
[tranfersip]
disallow=all
allow=ulaw,alaw
type=friend
host=[IP of the sending Server]
dtmfmode=auto
canreinvite=no
insecure=port,invite
nat=yes
context=default

and here is the dialplan on the receiving server (you have to set the same extention that you have created on the carrier dialplan on the sending server, which is 777, but with the difference that this exten ring the phones you want):

exten => _777,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _777,2,Dial(SIP/cc154&SIP/cc125,,tTo) [you can add as many extentions of phones as you want]
exten => _777,3,Hangup

HOPE it works on your case too! Cheers!
Server1: Quad Core Xeon 3.0GHz | 24GB Ram | VICIdial 2.6-393a BUILD: 130124-1721 | Asterisk 1.4.44
Server2: Quad Core Xeon 2.8GHz | 8GB Ram | VICIdial 2.12-558a BUILD: 160602-1450 | Asterisk 1.4.44
oonyxx
 
Posts: 5
Joined: Tue Oct 11, 2016 7:16 am


Return to Support

Who is online

Users browsing this forum: fido, Google [Bot] and 120 guests