I::VOZ Provider trunk "retailAccountPBX" in FreePBX v17

30 views
Skip to first unread message

Angelo Paolo Coronel

unread,
Jun 26, 2025, 1:51:48 PM6/26/25
to ivozprovider-users

I'm using I::VOZ Provider as a vSBC, located on the (fictitious) network 208.67.222.103 (vsbc.openanswer.com) with no LAN access!
And on the LAN, I have 10.100.20.103 (pbx.openanswer.com), and inside a fully closed VoIP Peering network, I have FreePBX 17 at 10.100.20.104.
So, here's the deal — I need to create a trunk for an account: retailAccountPBX01

I used this page:
🔗 https://irontec.github.io/ivozprovider/es/administration_portal/client/retail/retail_accounts.html
But I tried using the GUI. No success!

Can someone please give me the “Highway to Hell” (AC/DC style, to calm down 😅) on how to do this through FreePBX backend, or using the Web GUI?

And am I on the right track?


What I want to do is simply this:

What kind of calls can be routed through a Retail Account?
Unlike "Friends", Retail Accounts have some simplifications and limitations:

  • Retail Accounts only route their assigned DDIs

  • Retail Accounts can only make outbound calls to Carriers

  • Retail Accounts only receive external calls from DDI Providers


Asterisk as a Retail Account

On the other side of a Retail Account, any type of SIP entity can exist.
This section takes as an example an Asterisk PBX using the SIP channel driver that wants to connect to IvozProvider.


Account Registration

If the system cannot be accessed directly, Asterisk must register with the platform (just like a terminal would).

The configuration would be as follows:


PEER for the account:

[retailAccountPBX01] 
type=peer 
context=FROM-IVOZ 
disallow=all 
allow=alaw 
defaultuser=retailAccountPBX01 
secret=retailAccountPBX01 
fromuser=retailAccountPBX01 
fromdomain=pbx.openanswer.com 
insecure=port,invite 
sendrpid=pai 
directmedia=no

Sorry, but I’ve never used FreePBX, and the challenge is specifically to use FreePBX — so if anyone can let me know which backend files I need to edit, I’d be grateful.

Sincerely,
CoronelAP


Angelo Paolo Coronel

unread,
Jun 26, 2025, 3:14:02 PM6/26/25
to ivozprovider-users
Ok, I understand that this configuration is for chan_sip.so. And I made an adaptation for chan_pjsip.so. But not even using pjsip.*.custom.conf or pjsip.*.custom_post.conf. I uploaded the configuration in FreePBX. I'm going to make a post in the FreePBX group to see if anyone there can give me a light at the end of the tunnel. Here's my #include pjsip_custom_post.conf file.

; Registro da conta
[retailAccountPBX01](+type=registration)
transport=transport-udp
outbound_auth=retailAccountPBX01-auth
server_uri=sip:pbx.openanswer.com
client_uri=sip:retailAcc...@pbx.openanswer.com
retry_interval=60

; Auth para envio de chamadas
[retailAccountPBX01-auth](+type=auth)
auth_type=userpass
username=retailAccountPBX01
password=r3t41l4cc0untPBX*1

; Definição do endpoint
[retailAccountPBX01](+type=endpoint)
aors=retailAccountPBX01
auth=retailAccountPBX01-auth
context=FROM-IVOZ
disallow=all
allow=alaw
direct_media=no
send_rpid=pai
from_user=retailAccountPBX01
from_domain=pbx.openanswer.com
dtmf_mode=rfc4733

; AOR (Address of Record)
[retailAccountPBX01](+type=aor)
max_contacts=1

Angelo Paolo Coronel

unread,
Jun 26, 2025, 7:03:02 PM6/26/25
to ivozprovider-users
Thank you all very much for the support. I received fantastic help from a member of the FreePBX Brasil Community, KowalskyLinux. The guy was extremely helpful! Now everything is working — calls are being successfully originated and received via FreePBX and IVOZ.

What still needs to be fixed?
 
  • The ITSP is receiving the internal IP address of the FreePBX (10.100.20.231) instead of the external one (208.67.222.232 – fictional). Because of that, there is no audio on either leg of the call.
Thank you all very much, that’s all for today! I’ll write a document describing this scenario and will share it here. However, since I'm not very good with English, it will be in Spanish!

Bueno che, me voy tirando... ¡Un fuerte abrazo pa' todos los compadres! ¡Nos estamos viendo, y que no se corte!
(Alright folks, I’m heading out… A big hug to all my buddies! We’ll be seeing each other, and let’s keep in touch!)  

Airsay

unread,
Jun 27, 2025, 2:18:24 AM6/27/25
to ivozprovider-users
Have you set the External IP Address on FreePBX?

In FreePBX, go to Settings > Asterisk SIP SettingsType the FreePBX Public IP in the External Address field. Make sure to specify your local network(s) in the Local Networks field, as well. 
Reply all
Reply to author
Forward
0 new messages