Need Step-by-Step Help Configuring Vodafone VoIP Trunk – Always Getting 403

Hi everyone,

I’m quite new to FreePBX and I’ve been trying to configure my Vodafone VoIP line following countless guides online, but I keep getting a 403 Forbidden error when trying to register my softphone.

Here are my VoIP settings (partially masked for security):

Personal VoIP Settings:

  • Username: +3908********
  • Password: ***************
  • SIP Outbound Proxy: Voip3.fixed.vodafone.it

Generic VoIP Service Parameters:

  • SIP Domain: ims.vodafone.it
  • SIP Port: 5060
  • Voice Codecs (priority order): G.711 A-law, G.711 u-law, G.729
  • Fax/POS Codecs: G.711 A-law, T.38

I would greatly appreciate a step-by-step guide on how to:

  1. Configure the Vodafone trunk correctly.
  2. Set up outbound routes for external calls.
  3. Set up inbound routes to receive calls.
  4. Configure a local internal extension (e.g., 101) to use with a softphone.

I’ve tried several tutorials, but I can’t get the trunk to register properly, and the softphone always shows 403 Forbidden.

Thank you very much for your help!

Best regards,
Giorgio

You can set up pjsip extension 101 with all settings left at defaults.
In the softphone, the SIP password must match the value of Secret for extension 101.
Test the extension by dialing *43 (echo test).

For the trunk:

Username: +3908*******
Password: *************
SIP Server: ims.vodafone.it
SIP Server Port: 5060
Outbound Proxy: sip:voip3.fixed.vodafone.it\;lr\;hide
From User: (same as Username)
From Domain: ims.vodafone.it

Leave all other trunk settings at defaults.
For initial testing, you can set a catch-all Inbound Route (DID Number and CallerID Number both left at ANY) pointing to extension 101. Likewise, set up a dummy Outbound Route with match pattern
X.
and selecting the Vodafone trunk.

Hi,
I’m still struggling with getting my Vodafone Italy VoIP line to register correctly with FreePBX.
Today, I get 404 or Rejected in pjsip show registrations. I respected your configuration. With pjsip set logger on, I can see my REGISTER going out to ims.vodafone.it:5060, but the response from Vodafone is either 403 or 404.

What I Need Help With

  1. Is my trunk configuration correct for Vodafone Italy (ims.vodafone.it + outbound proxy voip3.fixed.vodafone.it)?
  2. Do I need special settings for Contact User / Identify By / Match in FreePBX?
  3. Could the Raspberry Pi/FreePBX setup be missing some NAT/SIP tweaks specific to Vodafone?
  4. A working example of a pjsip.conf section for Vodafone Italy would be very helpful.

Thank you very much for your time and support :folded_hands:

Best regards,
Giorgio

Are you saying that the same config sometimes results in 403 and sometimes 404? That would be very strange.

Possibly,

will help.

You probably need

Auth Username: +3908********@ims.vodafone.it

If you still can’t register, post the output from pjsip logger for an attempted registration. Mask your username, public IP and anything else you consider personal, but make it clear what each redacted value represents.

I think I’ve identified the issue: the Vodafone Station is registering its built-in VoIP service to the SIP server before FreePBX does. As a result, FreePBX cannot register the trunk and cannot make or receive calls. It seems the SIP account provided by Vodafone is being “locked” by the Vodafone Station.

Is there any way to prevent the Vodafone Station from automatically registering its VoIP, or to release the SIP registration so that FreePBX can use the number? On the Vodafone Station interface, I cannot find an option to disable the telephony.

I’m actually surprised that you were even able to obtain the credentials needed to access the Vodafone SIP infrastructure. Typically when PSTN migrates to SIP, the customer only gets access to SIP through the provider’s equipment. Typically the credentials are held on the hub in a way that is inaccessible to the customer.

Normally, people would have to forego their telephone provider’s VoIP infrostructure and use the underlying IP infrastructure to access a third party VoIP service.

Thank you for your message. Actually, thanks to AGCOM Resolution 179/07/CONS (which establishes the “right to a generic modem”), I am legally entitled to use a generic modem and therefore Vodafone is obliged by law to provide all the necessary SIP credentials.

On an exciting note, I now have the VoIP magically working through FreePBX for both incoming and outgoing calls. That said, I’ve noticed that sometimes it works perfectly, and sometimes it stops working, even though I haven’t changed anything.

The only relevant action this morning was that I contacted Vodafone, and they scheduled a phone appointment with a technician for tomorrow. So I don’t believe Vodafone has made any changes today. Do you have any ideas?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.