# IAX Trunk Allstar to FreePBX

**URL:** <https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830>\
**Category:** AllStarLink\
**Created:** [January 4, 2023, 12:54am UTC](https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830 "2023-01-04T00:54:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kg4orq](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kg4orq](https://community.allstarlink.org/u/kg4orq)\
**Post date:** [January 4, 2023, 12:54am UTC](https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830/1 "2023-01-04T00:54:56Z")

</div>

Has anyone actually successfully got a IAX trunk working Allstar Node to FreePBX? I have tried everything here and none have worked.

---

<div class="post-metadata">

**Author:** ![Mike](https://community.allstarlink.org/user_avatar/community.allstarlink.org/mike/32/1569_2.png) [@Mike](https://community.allstarlink.org/u/Mike)\
**Post date:** [January 4, 2023, 11:12pm UTC](https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830/2 "2023-01-04T23:12:10Z")

</div>

I have not done this with versions of freepbx of the last 8 years,  
but I have done it more than once.

The issues you have could be many,  
so, lets look at them one at a time.

Can you post your iax.conf for both systems. MASK PASSWORDS

As I remember it, freepbx actually uses msql db for storing settings. But it still prints them to the files.  
My question would be if a modern freepbx system will read a edited file and absorb changes into the msql db.

In any case, if I can see the files, it would be a up to date of the actual settings.

You might also mention what you intend to dial at the other box. While one is obvious, the radio extensions, so what is it you want to do from ASL box at freepbx box ?

---

<div class="post-metadata">

**Author:** ![k4sip](https://community.allstarlink.org/user_avatar/community.allstarlink.org/k4sip/32/1275_2.png) [@k4sip](https://community.allstarlink.org/u/k4sip)\
**Post date:** [January 9, 2023, 11:26pm UTC](https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830/3 "2023-01-09T23:26:25Z")

</div>

Just want to mention there is this post where we’ve already gone over it some:

> [@AllStar Link SIP Trunk in FreePBX](https://community.allstarlink.org/t/allstar-link-sip-trunk-in-freepbx/11750):
>
> I have a raspberry pi running FreePBX/Asterisk with a VOIP mesh network. The internal extensions and Google voice trunk are working properly. I have an outgoing dial plan configured so that 70 (should go to interactive menu), 7xxxx or 7xxxxx (xxxx and xxxxx are node numbers) will dial the AllStar Link SIP trunk. The outgoing calls will ring the AllStar trunk and often, but not always, the call connects. If it connects, it usually does not have received audio. If there is audio, then when I enter…

And this article is mentioned in the post, which one of the members was able to use instead of the examples I had given:

> **[How to set up an IAX2 trunk in FreePBX](https://mangolassi.it/topic/18700/how-to-set-up-an-iax2-trunk-in-freepbx)**
>
> If you have more than one Asterisk based PBX that you want to have talk to each other, the best solution is to use an IAX2 trunk. IAX stands for Inter-Asteri...

Hope this helps

---

<div class="post-metadata">

**Author:** ![kf5dey](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/k/3ec8ea/32.png) [@kf5dey](https://community.allstarlink.org/u/kf5dey)\
**Post date:** [February 5, 2026, 1:46am UTC](https://community.allstarlink.org/t/iax-trunk-allstar-to-freepbx/19830/4 "2026-02-05T01:46:35Z")

</div>

In case anyone ends up here with the same problem. Here is my solution (based on the last two links in the last post above me)

I am running IncrediblePBX (2027-D) on one Pi, and an Allstar node on a different Pi.

> On the Allstar node I have this entry in iax.conf
> 
> [**pbx\_to\_asl**]; from pbx\_to\_allstar sip trunk in Incredible PBX  
> type=friend  
> username= **asl\_to\_pbx**  
> secret=[password]  
> context=radio-control  
> host=[incredible pbx IP address]  
> disallow=all  
> allow=ulaw  
> callerid="[something]"
> 
> In Incredible PBX new trunk entry
> 
> Trunk Name- pbx\_to\_allstar (this name doesn’t matter)
> 
> Caller ID- [my node number]
> 
> –Dialed number rules - match pattern [my node number]
> 
> –iax settings
> 
> -–outgoing
> 
> Trunk Name- **asl\_to\_pbx** (this name matters)
> 
> PEER Details-
> 
> host=[ip address of Allstar node]
> 
> username= **pbx\_to\_asl** ; note this is the entry name in iax.conf in the allstar node
> 
> secret=[password]
> 
> type=peer ; this might be wrong…but it seems to work for now
> 
> context=radio-control ; entry in allstar extensions.conf
> 
> allow=all
> 
> * * *
> 
> * * *
> 
> –inbound
> 
> nothing

So big key to my setup is the **Incredible PBX outgoing trunk** name of _asl\_to\_pbx_ with username of _pbx\_to\_asl_ connects to the **allstar iax.conf** entry of _[pbx\_to\_asl]_ with username of _asl\_to\_pbx_.

I had cryptic notes on this when I tried to rebuild my PBX after upgrading…so I only just now got it working again.

Hope this helps someone

You can use any pair you want, just realize how one points to the other.

And no I have no idea how any of this works…

Mike
