VICIdial integrations, call by call: where your CRM, an AI voice agent and the browser phone plug in
One VICIdial call from lead to result, and the exact moment your CRM, an AI voice agent and the browser phone each connect to it.

Your sales team lives in a CRM, your manager wants an AI voice agent taking some of the calls, and your agents would rather not install a phone. Each of those connects to VICIdial at a different moment of a call, and most integration trouble comes from hooking the right tool to the wrong moment.
So follow one call from start to finish. A lead arrives, the dialer rings it, an agent or an AI takes it, someone picks a result, and that result has to reach your CRM. Every stop below names the hook VICIdial gives you there, what it can and can't do, and the post that covers it in depth.
flowchart TD
A[CRM or lead vendor] -->|add_lead| B[Lead in a VICIdial list]
B --> C[Dialer rings the lead]
C -->|person answers| D[Agent session and webphone]
C -->|AI line free| J[AI agent as remote agent]
C -->|no agent handled it| H[No Agent Call URL]
D -->|Start Call URL and web form| E[CRM record on screen]
D -->|agent picks a status| F[Dispo Call URL]
F --> G[Service in between]
H --> G
J -->|ai_call.completed| G
G -->|queue and retry| I[CRM]Before the phone rings: the lead and its CRM ID
A CRM that adds leads on its own does it through the Non-agent API, the set of server-side functions your own code calls over the web. Its add_lead function adds a Lead, and update_lead changes one. If you are pushing leads the moment they appear in the CRM, pushing leads from a CRM covers the request and the hopper side.
Two settings tell other systems that a lead arrived. API New Lead URL sends a web request every time add_lead inserts a lead into a list that uses it, and ---DISABLED--- on a list turns it off there (the API New Lead URL explained). On inbound, Add Lead URL is called each time the inbound process creates a lead, and it must start with VAR to carry values like lead_id, phone_number and did_id (the inbound Add Lead URL).
Lead vendors and web forms on VICIfast can post to API Studio instead of your server. You map their fields to yours, choose how duplicates are handled and cap requests per minute (6,000 to start, which is 100 a second). VICIfast then feeds the dialer only as fast as it can take them. If the dialer doesn't answer, VICIfast keeps resending for up to 16 hours, and the vendor never reaches your server, so your firewall stays shut to them.
The decision that shapes every later step
Every result VICIdial sends out carries its own lead_id. Your CRM has never heard of that number. What lets a result find the right CRM record is the CRM's own ID, stored on the lead when it was loaded.
You have three places for it. The Vendor lead code holds 1 to 20 characters and shows as the Vendor ID on the agent screen. source_id holds 1 to 50 characters, and a Custom field holds whatever you define on the list.
Check your CRM's ID length before you pick, and use two fields if you need two IDs, such as a person and a deal.
One catch: add_lead's duplicate checks look at phone_number, alt_phone, title and name, never at vendor_lead_code. Loading the same CRM record twice can make two leads unless one of those checks catches it. Duplicate checking on add_lead shows the options, and the lead fields explained lists what each field holds.
When the call reaches an agent: the phone line and the screen-pop
The browser phone is the agent's line to the dialer
VICIdial needs two logins per agent: the phone, then the user. The agent screen then puts that phone into an Agent session, a conference on the dialer (MEETME by default). Agent Login Kick-all hangs up anything already in that session before the agent joins.
A Webphone is a phone that runs inside the browser instead of on a desk or as an installed app. VICIdial's own VICIphone needs Asterisk 13 or higher on every Asterisk server and real SSL certificates on every server agents log in to (what VICIphone needs, then setting up VICIphone).
VICIfast's webphone registers over a secure WebSocket on port 8089, and the audio goes straight between the agent's browser and the server, encrypted. The server offers Opus, G.722 and G.711 as the Codec, the format the audio is packed in.
Once connected, the phone says In call and stays that way all shift, between customer calls too, because it is the agent's line to the dialer. Agents don't dial, answer or hang up on it; the agent screen does that, and the phone carries the sound.
The setup list lives on the branded webphone page; if a phone won't connect, start with why a webphone won't register. Weighing it against desk phones? See webphone vs hardphone.
The screen-pop: what opens when the call connects
Start Call URL is called every time a call is sent to an agent. The agent never sees it. It carries the same variables as web forms and scripts, it can't be a relative path, and on a manual dial call it goes out when the call is placed. It suits a CRM that wants to log "call started".
The Web form is the page that opens when the agent clicks WEB FORM. A list's Web Form overrides the campaign's. Web Form Two is on by default (Enable Second Webform), and Web Form Three needs Enable Third Webform, which is off by default. Get Call Launch can open the web form by itself when the call arrives, switch to the SCRIPT tab, or open the FORM tab with the list's custom fields.
Put VAR at the very front of a web form address to fill in --A--field--B-- variables, such as --A--vendor_lead_code--B-- or --A--phone_number--B--. Without VAR, VICIdial appends every variable instead, the agent's username and password among them. Script variables explained lists what you can carry, and when the WEBFORM button does nothing covers the usual breakage.
Two limits are the CRM's, not VICIdial's. A screen-pop shows the record only if the agent is already signed in to the CRM in that same browser. And whether a CRM page will show inside the SCRIPT tab's iframe (embedding an iframe) is the CRM's choice, so test it.
VICIdial still carries settings for a built-in Vtiger integration, but that integration is no longer developed as part of VICIdial and is not recommended for new setups.
Inbound calls add one twist. A DID's In-Group Call Handle Method decides which lead the call gets. With CID, every call makes a new lead, so a known caller arrives with no vendor lead code and the screen-pop can only search the CRM by phone number. CIDLOOKUP looks the caller ID up across the whole system first.
During the call and at the disposition: what VICIdial sends out
A few hooks fire while the customer is still on the line. Talk Seconds URLs go out after the agent has talked for set numbers of seconds, and none fire after the customer hangs up. Dead Call Trigger URL is requested when the customer is gone but the agent hasn't hung up. Agent Push Events send events from agent screens to a local script on the web server; a missing or slow address there can stop the system working properly.
The Agent API acts on one logged-in agent's session: external_dial places a call, external_status sets the result, external_pause pauses. It needs an API user that is different from the agent, and the system setting Agent API Active must be 1 (it starts at 0). Non-Agent API vs Agent API explains which to reach for, and building click-to-dial shows the Agent API from a CRM button.
The Dispo Call URL
When the agent picks a Disposition, the result code for the call, VICIdial calls the Dispo Call URL. It carries the web form variables plus four extras: dispo, callback_lead_status, talk_time (actual talk seconds) and term_reason (how the call ended). Put ALT in the field and you get Alternate Dispo Call URLs: several addresses, each with a RANK, a STATUSES filter, a LISTS filter and a MIN LENGTH in seconds. Each URL is limited to 2000 characters, and a slow URL ranked 1 makes every URL after it wait.
Syncing dispositions out of VICIdial and the in-group URLs go deeper. Test every URL on your own server: when one seems silent, the URL Log Report shows every request VICIdial made, and when the Dispo Call URL doesn't fire walks the trace.
Where an AI voice agent plugs in
VICIdial doesn't ship an AI that holds a conversation. It does have the two hooks one needs: the Remote agent, a seat that takes the calls a campaign dials (remote agents explained), and inbound number routing. VICIfast AI agents use both. They are built into the VICIfast server and talk over VICIfast Voice, so there is no third-party platform and no second bill.
In call order, the AI sits exactly where a human agent sits: after the dialer has a person on the line. VICIfast logs it in to the campaign as a remote agent with one line per call it may take. The account starts at 25 AI calls at once across all its agents, with short bursts of 20% above that, and calls over the limit go to the queue you picked. Extra remote-agent lines don't buy more.
What the AI leaves behind is the same kind of data your agents leave. On every call it writes one of your statuses. It also fills the lead fields you choose, books callbacks, marks do-not-call, leaves a one-line summary in the lead's Comments and can transfer into your Ingroup, an inbound queue. That last one is the fronter pattern with a human Closer on the receiving end (the fronter and closer model).
For the CRM, the AI has its own feed. Switch on "Notify your CRM" on the agent and the ai_call.completed Webhook arrives a minute or so after the call, with the VICIdial lead_id, the outcome, the status written on the lead and the answers. Use the lead_id to find the CRM ID on the lead. How to add an AI agent in the first place is covered in the AI agents guide.
When the CRM misses something: unhandled calls, outages and catching up
Calls no agent touched
The Dispo Call URL fires only for calls an agent dispositioned. Calls the system finished on its own get a system status such as DROP, NA (no answer), AB (busy) or AA (answering machine), and only the No Agent Call URL hears about them. A busy predictive campaign finishes far more calls this way than through agents, and each one is a web request if the URL is set to fire for it. Check the URL Log Report on your own server to see which ones it sends.
A CRM that's down mid-shift
VICIdial on its own doesn't hold a queue of results for a CRM that isn't answering; retries are custom work. The usual fix is a small service between the two. It answers VICIdial at once, keeps each result in a queue, holds the CRM sign-in and retries until the CRM takes it.
For catching up after an outage, the Non-Agent API's lead_status_search pulls every lead with a given status on a given call date, up to 2000 per request, and lead_all_info pulls one lead. The URL Log Report shows what VICIdial tried to send and when.
VICIfast's own webhooks already work this way. A 2xx answer within ten seconds counts as delivered; anything else is retried after 1, 5, 15, 60 and 240 minutes, and a 4xx other than 408 or 429 isn't retried. Events are kept 30 days and can be sent again (webhooks guide). That covers VICIfast's events (calls on VICIfast Voice, numbers, wallet, AI calls), not VICIdial's Dispo Call URL, and the call events carry no VICIdial lead or status, so they are not a disposition feed.
When the two systems disagree
Decide per field which system owns it. The dialer knows status, call count and last call; the CRM knows stage, owner and deal. Agreed in advance, a change in the CRM, like a closed deal, can take the lead out of dialing. Lock down the API user that makes these changes (securing the VICIdial API), keep an eye on a CRM that polls too often (CRM polling and API load), and if you are moving servers, rebuild the integrations before the floor goes live.
Frequently asked
- Yes, if the lead carries the CRM's record ID or a search term, the address starts with VAR, and the agent is already signed in to the CRM in the same browser.
- The Agent API acts on one logged-in agent's session (dial, set a status, pause). The Non-Agent API works on leads and reports from the server side. Both need Agent API Active set to 1.
- Not on its own; queuing and retrying writes to a CRM is custom work. A small service in between answers VICIdial at once and retries, and the URL Log Report shows what was sent.
› Can a VICIdial web form open a CRM record without any code?
› Do I need the Agent API or the Non-Agent API?
› Can VICIdial hold call results while my CRM is down?
The service in the middle is where most of the real work lives: matching records, retrying, signing webhooks. If you'd rather not build it yourself, we build the CRM side as a fixed-fee project, quoted in writing within 48 hours of a discovery call.
Related from VICIfast
- VICIdial explained, start to finishWhat it does, how it works, who makes it and what running it takes.
- AI agents for VICIdialVoice bots that take answered calls and write every outcome back to VICIdial.
- Remote agents, AudioSocket or SIP: the optionsWhere an AI plugs into VICIdial, and what has to come back.
- How we build VICIdial clustersA database, dialers and a standby, sized from load we measured on a live floor.
About VICIfast
We run VICIdial servers for call centres, so you don’t have to. You get the dialer set up, secured and kept running — we handle the server, the updates and the backups. Bring your own phone carrier at no markup, or use VICIfast Voice, our own US calling and numbers, from $0.0085 a minute. From $49 a month per server.
Questions? Call +1 636 556 0022 and talk to someone who runs dialers.
Citing this article
VICIfast Engineering. “VICIdial integrations, call by call: where your CRM, an AI voice agent and the browser phone plug in”. VICIfast LLC, December 2, 2026. Retrieved from https://vicifast.com/blog/vicidial-integrations-guide
Have questions?
Related posts
You might be interested in
VICIfast newsletter
Liked this? Get the next one in your inbox.
We ship the kind of stuff you just read - concrete, numbers-first, no drip. One email when a new post goes live. Unsubscribe in one click.
Comments
No comments yet - be the first.



