SOLVED New to FusionPBX - Multi-tenant outbound caller ID

Status
Not open for further replies.

TVTDatos

New Member
Jul 6, 2020
5
0
1
44
Hello everyone!

New to the Forum and new to FusionPBX.

I want to config multi-tenant pbxs, all with same gateway but with different inbound numbers and outbound caller ID per domain.

As im very new to FusionPBX and freeswitch (coming from Elastix/FreePBX asterisks).

I've already setup the gateway and routed an inbound number to a recently created domains extension. I've also created the extensions for that domain and registered one with Zoiper.

Is there a way to setup caller ID per-domain as upper level then per-extension?

I've configure the outbound caller ID in the extension Im working on and created an outbound rule for 9 digit numbers to use the gateway that connect to my main SIP server.

For now, I can receive inbound calls from outside fusionpbx to the routed number but I cant make outbound calls.

This is a snipped of the log:

fa7c9d31-601b-4a45-b402-67571a36c4c9 EXECUTE [depth=0] sofia/internal/101@cv-tvt.tvt.red log(WARNING [inbound routes] 404 not found 172.20.20.5)
fa7c9d31-601b-4a45-b402-67571a36c4c9 2020-07-09 13:17:25.192868 [WARNING] mod_dptools.c:1866 [inbound routes] 404 not found 172.20.20.5

Looks like is not checking outbound, just inbound.

As Im really new to this software, Im not sure what kind of info attach here so please, excuse me.

Kind Regards,
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
Your outbound calls are probably failing because your ACL is done incorrectly. The ACL should normally only have your carrier IP's

To set a domain wide caller ID, you can edit the "domain-variables" dial plan and add your caller id info. (example below sets number to 2125551212)
actionseteffective_caller_id_number=2125551212
 
  • Like
Reactions: TVTDatos

TVTDatos

New Member
Jul 6, 2020
5
0
1
44
Thanks for you answer. I have my carrier (which is really me) in the ACL. Other way I couldnt setup the gateway/trunk.

Where do I set the domain specific variables?

Sorry if they are stupid questions.
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
In the Gui go to Dialplan>Dialplan manager. "domain_variables" should be one of the top few dial plans.
 
  • Like
Reactions: TVTDatos

TVTDatos

New Member
Jul 6, 2020
5
0
1
44
Awesome. I fixed the ACL (I was using /24 instead /32 for our main sip server)

Now im trying to set the outbound caller id per domain, and set it like you said:

1594375689627.png

I tried also after the export, but no luck. It keeps sending 101 as caller ID, which is not allowed in our main SIP server.

Oh, tried setting outbound_caller_id=XXXXXXXX too without luck (that was a shoot to the air...)
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
Double check your call log to see if the new dial plan entry is being evaluated. This can be seen in freeswitch log or in the detailed CDR entry.

You probably need to flush the cache. Status>SIP Status>flush cache
 
  • Like
Reactions: TVTDatos

TVTDatos

New Member
Jul 6, 2020
5
0
1
44
Dude you are awesome for pointing me out how to debug that.

Just 2 little things.

Somehow, in my fusionpbx I have 2 `set` actions

1594451216352.png

The first one, even when it was appearing in the logs, was doing nothing. I tried the second one and it worked like a charm. A bug, maybe?

I've also changed effective_caller_id_number to outbound_caller_id_number.

With effective_ the calls goes out but as Anonymous. With outbound_ it goes out with the correct number.
 

markjcrane

Active Member
Staff member
Jul 22, 2018
448
162
43
49
I used some command to get the list of applications from FreeSWITCH so the duplicate is in their code. We could work on the code to remove the duplicate that comes from FreeSWITCH this I consider a low priority there are more important things to get done.
 

TVTDatos

New Member
Jul 6, 2020
5
0
1
44
Thanks Mark for your reply.

Im happy knowing its not just me as that means I didnt messed my install. Do you want me to post the bug somewhere?

Only I hope is not forget that I have to use the second one or I will be doing loops again checking why is not working :D
 
Status
Not open for further replies.