In one trunk, out another.

Status
Not open for further replies.

bgoodin@newportutilities

Premier Customer
Joined
Apr 27, 2023
Messages
5
Reaction score
0
Hello everyone.

I would like to know if there is a way to tandem 2 trunks. We have an asterisk system that places outbound calls via sip trunks to our Mitel system. Then Mitel passes the call out our sip trunks. This is for notification to the customer. I have 3cx talking to the Asterisk system and any inbound calls do go to Asterisk when selected from the auto-attendant. Within the asterisk system, if they press a certain number it makes a call out to a pay by phone system. If I set up an extension within 3cx to dial that number it will work. The issue is the asterisk system needs to make outbound calls to the customer. This can be up to 12 customers at one time until it completes a list. The list could be in the hundreds. Anyone have any ideas on how to make this work? Thanks.

...Boyd
 
I am not exactly sure what the call flow is here. Can you present it in a logical way that shows what you are trying to achieve?
 
It sounds as if you might want to try connecting the Asterisk to 3CX using a Bridge trunk, which, while no longer supported (connecting to a non-3CX PBX), may still work. Using a bridge trunk allows calls to be routed based on digits sent, rather than using caller ID, or DID information.

While the original 3CX page describing how to set this up, has been removed, a copy still exists....

https://web.archive.org/web/20161213151353/http://www.3cx.com/docs/bridging-asterisk-pbx/

It might be of some help.
 
Last edited:
  • Like
Reactions: Evolute IT
I have set it up as a bridge between the asterisk ivr and 3cx. Issue is on inbound calls the callerid from the original caller is not presented on the terminating end. Call comes in, 3cx attendant answers, they press a number to get to the ivr, but just the extension of the bridge is shown for the caller id within the asterisk system. The asterisk IVR gathers information from our CIS system database based on the callerid.

I also setup a sip trunk between 3cx and asterisk and when it is routed out that, then the asterisk IVR gets the callerid. When they are within the Asterisk ivr, and press a number to have the IVR call out to make a payment by phone, using the sip trunk call will not succeed. Route it out the bridge and the call is successful but the original callerid is not presented to the answering system. Again the answering system uses the callerid to access information within the database to get account information.

Our current Mitel system uses sip trunks to talk to the Asterisk IVR and if the IVR needs to call out, Mitel allows it to grab a channel on our sip trunks or PRI and passes the original callerid along the way. Guess I am trying to duplicate the same thing with the 3cx system.

So call comes in. 3cx attendant answers.
customer selects the IVR option. 3cx passes it to IVR via internal sip trunks. (This is working)
Customer is in IVR selects "Pay by phone" option
IVR uses bridge to place call out to a 1800# (this works)
Call is placed using our primary SIP trunk provider. (this works)
1800# answers but callerid is the primary number assigned by our provider.
1800# cannot lookup account information due to callerid not being in the database, so caller has to enter account info or phone number manually. (this is the process we want to eliminate).

I have tried different settings in the outbound portion of the sip trunks but nothing changes. Hope this helps.
 
Getting the desired caller ID was an ongoing problem, when bridging 3CX to another PBX, which is probably one of the reasons it is no longer, officially, supported.
 
I have set it up as a bridge between the asterisk ivr and 3cx. Issue is on inbound calls the callerid from the original caller is not presented on the terminating end. Call comes in, 3cx attendant answers, they press a number to get to the ivr, but just the extension of the bridge is shown for the caller id within the asterisk system. The asterisk IVR gathers information from our CIS system database based on the callerid.

I also setup a sip trunk between 3cx and asterisk and when it is routed out that, then the asterisk IVR gets the callerid. When they are within the Asterisk ivr, and press a number to have the IVR call out to make a payment by phone, using the sip trunk call will not succeed. Route it out the bridge and the call is successful but the original callerid is not presented to the answering system. Again the answering system uses the callerid to access information within the database to get account information.

Our current Mitel system uses sip trunks to talk to the Asterisk IVR and if the IVR needs to call out, Mitel allows it to grab a channel on our sip trunks or PRI and passes the original callerid along the way. Guess I am trying to duplicate the same thing with the 3cx system.

So call comes in. 3cx attendant answers.
customer selects the IVR option. 3cx passes it to IVR via internal sip trunks. (This is working)
Customer is in IVR selects "Pay by phone" option
IVR uses bridge to place call out to a 1800# (this works)
Call is placed using our primary SIP trunk provider. (this works)
1800# answers but callerid is the primary number assigned by our provider.
1800# cannot lookup account information due to callerid not being in the database, so caller has to enter account info or phone number manually. (this is the process we want to eliminate).

I have tried different settings in the outbound portion of the sip trunks but nothing changes. Hope this helps.

We have a pretty similar setup. We had a local Asterisk box connecting to our main sip trunk provider on a dedicated ETH port provided by the provider. Then we had a 3CX box managing extensions, IVR etc. Worked flawlessly. But it was time to upgrade the Asterisk box, and we went with 3cx to get a fully "supported" solution.

But the "outbound caller ID" configured on the master 3cx extension config doesnt seem to pass over the 3cx-to-3cx bridge. So outbound caller ID is now broken on a fully 3cx setup where it used to work on an a 3cx-to-asterisk setup.

Still hoping someone can point out how to get that working.
My call flow would be: extension -> 3CX1 -> BRIDGE -> 3CX2 -> Telco

Same problem as yours. Telco doesn't get outbound call ID configured on 3CX1.

Unfortunately I cannot just remove 3CX2 as it is the trunk gateway for 3CX1. And 3CX1 cannot connect to the trunks directly as its Cloud Hosted. And no, my telco cannot deliver trunks to the cloud :(
 
Getting the desired caller ID was an ongoing problem, when bridging 3CX to another PBX, which is probably one of the reasons it is no longer, officially, supported.
Then why not do trunk bridging? LIke Mitel, where it can allow a call into the pbx and then out another trunk? I know this is a security risk but only used on our internal lan. So call in from provider -> autoattendent -> out internal sip trunk to IVR - > IVR -> 3xc -> 3cx routes it back out the provider sip trunk. All done via sip and no bridging. This would keep the callerid intact. Cannot do that now as 3cx will not allow the call out.

..Boyd
 
What you might attempt, to try to get this working, and I can't say if it is going to be a solution or not, but it is what I would try...
If you have a second trunk group to work with, or a second route (sub-account) to your main provider, route all calls coming from 3CX1 to that trunk group. Ideally, no one else would be using this trunk for outbound calls. This would allow you to "play around " with the outbound trunk parameters without affecting calls placed by extensions from 3CX2. Obviously this should be attempted after hours. You might find a combination that works.

I would also confirm, with the Activity Log, what caller ID is being sent from the fits PBX. You won't be able to pass it on if the second PBX never gets the caller ID you wish to use..
 
Last edited:
Status
Not open for further replies.

Latest Posts

Members Online Now

No members online now.

Forum statistics

Threads
111,831
Messages
589,276
Members
164,660
Latest member
RJenkinsROCK