Trying to integrate Voip.ms
# support
j
I could really use some help here. I am trying to connect Vapi with SIP service from Voip.ms. I have a subaccount created on Voip.ms. I setup a SIP trunk with the provider information, and I setup the DID under phone numbers. I see the account as registered on Voip.ms. If I place an outbound call from Vapi, the call completes perfectly. Inbound I am unable to get to work though. On Voip.MS I have tried directing the number in 2 ways: Directly to the registered account. (Results in fast busy) Forwarding to the SIP account 1786577XXXX@sip.vapi.ai (Results in a 'Your call can not be completed at this time') Can someone point me in the direction of what I may be doing wrong here? Thanks in advance. https://cdn.discordapp.com/attachments/1374866812868628561/1374866813082533918/image.png?ex=682f9c00&is=682e4a80&hm=75044cd1a6209c808d192d7a70b3ae938a19f21a6a885162efe67348b281060b& https://cdn.discordapp.com/attachments/1374866812868628561/1374866813828988968/image.png?ex=682f9c00&is=682e4a80&hm=fdc781d00732fe4a71bc434c018114e3ded9e6a264771d89d6e69a76564a69b3& https://cdn.discordapp.com/attachments/1374866812868628561/1374866814181445652/image.png?ex=682f9c00&is=682e4a80&hm=ca97a086dc1df67a2c66cbb20f8964e4bee160f1d0b4f6aef3180a7a65607e1f& https://cdn.discordapp.com/attachments/1374866812868628561/1374866814449877145/image.png?ex=682f9c00&is=682e4a80&hm=28bff18337d72e68be6a91fd60deecce6a37aa0ca931fbe69caa2a1b1b499da9&
v
Try updating your Voip.ms DID routing to forward inbound calls to the full SIP URI format expected by Vapi:
Copy code
1786577XXXX@<your_credential_id>.sip.vapi.ai
Replace
<your_credential_id>
with the actual credential ID from your Vapi SIP trunk setup. Also, ensure that the Vapi signaling IPs (44.229.228.186 and 44.238.177.138) are allowlisted in your Voip.ms account. This should help route inbound calls correctly to your Vapi assistant. [See Vapi SIP trunking docs for details.](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test) Source: - [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#inbound-call-test)
n
@Jason Warm Sounds to me like VoIP.ms sends the call to the wrong number on VAPI. Some systems, specifically those that require
SIP Registration
can sometimes maintain the wrong
SIP Contact
information, and thus, when calling out to the subscriber, will not use the proper
SIP R-URI
to dial with. If you would like, please DM me and we can investigate the issue. I've seen these kind of cases before, and piping the call via Cloudonix resolved the issue in seconds.
j
Thank you, but we are not looking for a middle-man. If we can not get SIP working directly with Vapi, we will use other options.
n
I didn't offer you a middleman - I offered my assistance in analysing why voip.ms doesn't work the right way.
j
I wish I could, but the call never makes it into Vapi it seems. My inbound calls from Voip.MS->Vapi fail. Outbound calls work without a problem. I can see Vapi has registered with Voip.MS on the Voip.MS dashboard. When I look at the CDR records in Voip.MS I see 4 attempts, all with this log. Call logs for UniqueID: XXXXXXX Doing a CNAM lookup Routing to SIP URI: 1786577####@[credential ID].sip.vapi.ai Status is 'Congestion' Failover due to 'Unreachable' status Hangup: Channel is congested
My apologies for the misunderstanding. I am in and out of meetings this morning, but if one of us can't get it figured out, I'd be happy to take you up on that offer later.
a
Can you send me the phone number directly in DM so that I can take a look into it?
r
Hello, I am having the same issue. Were you able to resolve this?
a
Riz could you please provide some more detail about the issue you are encountering with [voip.ms](http://voip.ms) integration?
r
Hello, I added the voip using the SIP settings, it is connected successfully but when i call the number it always leads to a busy signal.
a
You will need to configure another gateway for your SIP trunk separate from the outbound one using the static IP address instead of the resolved name of the domain. I will provide an example of how it should look below:
Copy code
{
  "provider": "byo-sip-trunk",
  "name": "My SIP Trunk",
  "gateways": [
    {
      "ip": "sip.provider.com",
      "port": 5060,
      "outboundEnabled": true,
      "inboundEnabled": false,
      "outboundProtocol": "udp"
    },
    {
      "ip": "203.0.113.10",
      "port": 5060,
      "outboundEnabled": false,
      "inboundEnabled": true
    }
  ]
}
r
Can I use the web gui?
Doesn't work.