Page 1 of 1

External Transfer to Freepbx on Press 1

PostPosted: Thu Jun 23, 2016 2:12 am
by elondoninc
Hello everyone,
I have a cluster setup using vicibox alongside a freepbx server in which the reps make and receieve calls on for ease of use i have elected to connect Vici to freepbx in which case someone press's 1 they're then routed to freepbx for the call to be answered. To do this i have

Done the following:
I. To configure Peer Connection between Vicidial and Elastix
a. Create a new Phone extension in Vicidial
b. Use Phone extension credentials from Vicidial and Create Trunk on Elastix using those credentials. Also make sure that Registry settings on Elastix point to and Inbound DID or the catch all (Default) route

II. Setup Vicidial Voiceblast
a. Create Campaign with Routing Extension set to 8366 (Survey).
b. Create Inbound Call Menu and setup the corresponding key press to route to the proper destination. To route to Elastix Select destination phone and select the Phone Extension used to Peer Vicidial and Elastix.
c. Under Survey Campaign tab. Set the survey to route the calls to Call Menu.
d. Create User to be used by Remote agent. Make sure to use Integer Numbers only on UserID or Username , e.g. 8961 or 5897
e. Create Remote agent and Use the newly created username / user id and setup the campaign to use the Survey campaign


When the phone goes to transfer we receieve invalid extension even though the extension is valid on the freepbx system we also see no activity on the freepbx system when this is initiated please see attached for the trunk from elastix to vici
Code: Select all
username=92341
type=friend
secret=testing123
qualify=yes
port=5060
insecure=port,invite
host=172.16.40.202
dtmfmode=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw&alaw


Please see error
Code: Select all
 -- <SIP/SIPDOTUS1-0004d93d>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Jun 22 23:57:42]     -- Channel 'SIP/SIPDOTUS1-0004d93d' sent to invalid extension: context,exten,priority=default,919992341,1
[Jun 22 23:57:42]     -- Executing [i@default:1] Playback("SIP/SIPDOTUS1-0004d93d", "invalid") in new stack
[Jun 22 23:57:42]     -- <SIP/SIPDOTUS1-0004d93d> Playing 'invalid.gsm' (language 'en')
[Jun 22 23:57:45]   == Spawn extension (default, i, 1) exited non-zero on 'SIP/SIPDOTUS1-0004d93d'

any recommendation or help getting this resolved would be greatly appreciated! :mrgreen:

Re: External Transfer to Freepbx on Press 1

PostPosted: Thu Jun 23, 2016 1:53 pm
by williamconley
I see your context=from-internal in your account settings in FreePBX, but the error shows 'default,919992341,1' which means that the account settings you are showing us are not the ones being used by the FreePBX system during the transferred call.

FreePBX does not have a "default" context. That's a Vicidial context. You probably want to use from-trunk or from-internal. This may require finding the real account being used.

You may also want to send the calls to a Remote Agent instead of the call menu. and of course the remote agent in question would send the call to FreePBX. At that point, you can have one remote agent per FreePBX user (individual tracking, handy) or send to a Queue in FreePBX instead, less tracking in Vicidial but perhaps simpler in FreePBX.

I'd also consider using the "one remote agent per user" concept if you wanted to give the agents the ability to turn their own remote agent on/off and perhaps even go back and change the status of certain leads to "sale" or put notes in Vicidial. There is a special remote agent login for doing this in Vicidial.