Guides8 min read

Connect an Israeli Carrier or PBX to a Voice Agent

How to put a voice agent on an Israeli number, on your PBX over SIP (trunk, address or extension) or on your own Telnyx account, and what each route can do.

Written by Simon Digilov

How do you connect a voice agent to a phone line?

Choose by what you have today. With no PBX, or to start on a fresh line, take an Israeli number. With a PBX, connect it over SIP and keep your number. If your numbers are already at Telnyx, you can call from them on your own account.

RouteWhat you needIncoming callsOutbound calls
Israeli number from YapprA Yappr accountYesYes, to +972 numbers
SIP trunk with username and passwordA PBX that can add a trunkYesNo
SIP address onlyA system that can send a call to an addressYesNo
Extension registrationA dedicated extension: server, username, passwordYesYes, once switched on
Your own Telnyx accountActive numbers in your Telnyx accountNo, they stay where they areYes, to +972 numbers

You can mix routes in one workspace. Each SIP endpoint answers with one agent.

Route 1: an Israeli number from Yappr

The short route: on the Numbers page of the dashboard, get an Israeli number and pick the agent that answers it. The agent also calls from that number, one call at a time or in a campaign, in the hours you set.

The monthly plan includes one phone number. Additional numbers, and numbers on pay as you go, are $10 a month each. Outbound calls go to Israeli numbers (+972) only. Incoming calls are accepted from any country.

Route 2: your PBX over SIP

Your PBX stays, and the agent answers some of its calls: after hours, overflow, an option in the voice menu or a queue. There are three kinds of connection; pick by what the PBX can do:

  • It can add a trunk with a username and password: choose this first.
  • It can only dial a SIP address: use a SIP address only.
  • Your provider gave you only an extension account (common with hosted PBXs): register as an extension.

Create it in the dashboard under Numbers → SIP endpoints → Create SIP endpoint, or through the API. Only workspace owners and admins can create one. If a kind is not offered in your workspace, contact support. The phone system integration page sums up what the agent does over this connection.

A SIP trunk with a username and password

Choose Username and password, name it and pick the agent. The password is shown once, so save it right away. If it is lost, issue a new one.

PBX settingValue
SIP serverFrom Israel: sip.telnyx.eu (sip.telnyx.com can be a backup route)
Transport and portTLS on port 5061 (recommended). TCP or UDP on 5060 also work
Username and passwordThe ones from the dashboard
Keeping the path openRegistration or OPTIONS every 30 seconds or less (over UDP behind NAT: OPTIONS)
CodecG.711 first
SRTPOff, or mandatory. "Optional" makes the call fail
Calls at once2 by default, up to 8. One more call hears "busy"

A trunk only takes calls in; it cannot place calls. Whatever number or extension the PBX dials on it reaches the same agent, except emergency numbers: keep those on your regular lines, because they never reach the agent.

If your workspace has incoming calling hours switched on, they apply here too. Firewall rules, TLS certificates and a table per phone system are in the technical guide.

A SIP address only

If your system cannot sign in with a username and password but can send a call to an address, create a SIP address endpoint and route calls to it.

  • The address is the only secret: anyone who has it can reach the agent. Do not publish it or log it.
  • On these calls the agent cannot transfer the caller to a SIP address on your PBX. If you need that, use a trunk or an extension.
  • To change the address, create a new endpoint, move the calls, then delete the old one.

Registering as an extension on a hosted PBX

Some hosted PBXs give no trunk, only an extension account, as for a desk phone. With Register as an extension, Yappr registers to the PBX as that extension, and the agent answers every call you route to it. This kind of extension connection runs today against a hosted Israeli PBX.

  1. Create a dedicated extension with a distinctive name (letters, digits, hyphen or underscore), allowed to dial only the internal destinations the agent transfers to (and Israeli numbers, if you will call out through it).
  2. Allow in your firewall the addresses shown in the connection details, for signalling and audio.
  3. Enter the server, extension, password, transport (UDP is the one tested end to end), region (Middle East is the default) and agent.
  4. Wait a few minutes until the status reads Registered.
  5. Make a test call to the extension, and test a transfer if the agent transfers.

Worth knowing:

  • "Registered" means the PBX accepted the registration, not that routing and transfers work. Test them.
  • Yappr does not store the extension password: it goes to the phone carrier that keeps the registration. When it changes, send the new one.
  • Change settings by editing, not by deleting and re-creating: after a delete, the extension name can stay taken for hours.
  • Up to 5 extensions per workspace, 2 calls at once on each by default and 8 at most. The PBX must offer G.711 µ-law.

Calling out through the extension

The agent can also place calls through your PBX, so customers see your business number. Switch on Make calls through this extension when editing it (enabled per workspace; if it is not available, contact support).

First, on the PBX:

  • Let the extension call Israeli numbers only, with no international or premium calls.
  • Set your business number as its caller ID.
  • Find out how it dials: 05X or 972, and whether it needs an outside-line prefix.

Enter the same details in Yappr: the number your PBX shows, the dial format and the prefix. The minutes count on your PBX's phone plan, and Yappr bills the call as a normal outbound call. After three refusals in a row from the PBX, calling through it pauses until you turn it back on.

Route 3: your own Telnyx account

If your numbers are at Telnyx, you can call from them without porting anything. Verify the Telnyx account to Level 2, create an outbound voice profile that allows Israel (ideally with channel and daily spend limits) and an API key just for Yappr. Then, on the Your carrier tab of the Numbers page, connect the account, choose a Call Control App and add the numbers.

Understand the billing: Telnyx bills you for the line minutes, and Yappr bills the same calls at its phone-call price. Two charges.

This route is outbound only. Calls to those numbers keep going where they go today. To have an agent answer them, route them in Telnyx to a SIP address endpoint. Details in the carrier guide.

Transferring to a person: what works on each route

How the call arrivedHow the agent transfersWorth knowing
SIP trunkTo a SIP address on your PBX (SIP REFER)The PBX must accept transfers, and the target must answer within about 9 seconds
ExtensionA new call through the extension, or the PBX's transfer codeA new call takes a second line and must be answered within about 25 seconds
SIP addressNo transfer to a SIP addressTo transfer within your PBX, use a trunk or an extension
Israeli number from YapprTo a phone number you chooseSet it in the agent's transfer tool

On a trunk, if the transfer fails, the call ends: the agent cannot take the caller back. On an extension the same is true once the new transfer call has gone out. So point transfers at a target that answers quickly, such as an extension that always picks up or a queue, and test before going live.

Test before you go live

  • A test call of at least two minutes that the agent ends, to check your PBX hangs up too.
  • A call with a caller ID, checking that it appears in the call log.
  • A transfer test for every destination.
  • The PBX's channel limit matches the limit set on the endpoint.
  • Emergency numbers are not routed to the agent.
  • If the connection is unavailable, the PBX moves on to its next route.

An answered call uses your workspace's credit like any call to your agents: $0.30 a minute pay as you go, or from your plan. A call refused before it is answered costs nothing. All prices shown exclude 18% VAT.

What to ask your phone provider

The provider's name matters less than what your line allows. Ask:

  1. Can we add an outgoing SIP trunk to an external server, with a username and password?
  2. If not, can we get an extra extension account (server, username, password) that an outside system can register?
  3. Which calls can we route there: after hours, overflow, a menu option or a queue?
  4. Does the PBX accept a transfer request (SIP REFER), or does it have a transfer code?
  5. What caller ID does it send, and in what format?

With the answers you can pick a route and keep the number your customers already know. More on what the agent does on a call: Hebrew voice bot for business.

Frequently Asked Questions

Do we have to port our business number?

Not with a SIP connection: the number stays with your provider and PBX, which sends the agent the calls you choose.

Can the agent place calls through our PBX?

Through a registered extension, once outbound calls are enabled for your workspace. SIP trunks and SIP addresses only take calls in.

How many calls can come from the PBX at once?

Each SIP endpoint takes 2 calls at once by default and up to 8. There is also an account-wide limit, so tell us your expected peak.

Which connection type should we choose?

A trunk with a username and password when your PBX supports it. Extension registration when you only have an extension account. A SIP address when the system can only dial an address.

What does a call through the PBX cost?

Pay as you go: $0.30 a minute. Plan: $997 a month for 4,000 minutes, then $0.25 a minute. A call refused before it is answered is not billed.

Share this article
Simon Digilov

Simon Digilov

Founder of Yappr. Full-stack developer building AI voice agents for Israeli businesses.

Try it yourself

The agent calls you in Hebrew.

Number outside Israel? Type + and your country code, and your details reach our team.

By submitting, you agree that Yappr's AI agent will call you (the call is recorded) and that Yappr may send you messages. You can opt out at any time.