Outbound route base on Extensions

Status
Not open for further replies.

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Just create your outbound route and make sure the order is the first in the list. At the top of the outbound route add the condition like in the image:

outboundrouteextensioncondition.jpg

If you want a group of extensions, use the | so for example: 101|102|103 etc
 
  • Like
Reactions: ccordero

AIC2000

Member
Feb 15, 2018
162
3
18
35
That's a cool feature. Does it support ranges? Or just the pipe character?
 

Maani

Member
Nov 12, 2017
34
1
8
53
There is one feature in user Directory may be useful.
from freeswitch confluence:

User-Specific Gateways
XML:
<user id="user1">
  <params>
    <param name="password" value="1"/>
  </params>
  <variables>
    <variable name="register-gateway" value="user1out"/>
  </variables>
  <gateways>
    <gateway name="user1out">
      <param name="username" value="4347382173"/>
      <param name="password" value="1"/>
      <param name="proxy" value="sip.example.com"/>
      <param name="register" value="false"/>
    </gateway>
  </gateways>
</user>
The <register-gateway> variable can be set to the name of a specific gateway, a comma delimited list of multiple gateways, or "all". Setting it to one or more gateways will register the named gateway(s) when the <user> registers with FreeSWITCH.(whether they're in the <user>'s <gateways> or some other <user>'s <gateways> or anywhere). Setting the variable to "all" will register all of the particular <user>'s gateways.
 
Last edited:

Mike Loiterman

New Member
Jan 23, 2018
23
1
3
48
There is one feature in user Directory may be useful.
from freeswitch confluence:

User-Specific Gateways
XML:
<user id="user1">
  <params>
    <param name="password" value="1"/>
  </params>
  <variables>
    <variable name="register-gateway" value="user1out"/>
  </variables>
  <gateways>
    <gateway name="user1out">
      <param name="username" value="4347382173"/>
      <param name="password" value="1"/>
      <param name="proxy" value="sip.example.com"/>
      <param name="register" value="false"/>
    </gateway>
  </gateways>
</user>
The <register-gateway> variable can be set to the name of a specific gateway, a comma delimited list of multiple gateways, or "all". Setting it to one or more gateways will register the named gateway(s) when the <user> registers with FreeSWITCH.(whether they're in the <user>'s <gateways> or some other <user>'s <gateways> or anywhere). Setting the variable to "all" will register all of the particular <user>'s gateways.

This looks great. How can it be implemented without compromising integrity of FusionPBX sand future upgradability?
 
  • Like
Reactions: AIC2000

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Why do you guys think this would be useful, ie a gateway for one extension?? It still has no diaplan to use it?
 

AIC2000

Member
Feb 15, 2018
162
3
18
35
I figured this was for if you have 10 extensions, and you wanted 201-209 to be able to dial out on a specific gateway, and ext. 301 wasn't allowed to dial out (because it was a public / receive only phone) then you'd use something like this?

FreePBX has this:
https://www.freepbx.org/extension-routing/
 

AIC2000

Member
Feb 15, 2018
162
3
18
35
No idea, I am behind supporting this as a feature, no idea how to implement it though!
 

Maani

Member
Nov 12, 2017
34
1
8
53
There is one feature in user Directory may be useful.
from freeswitch confluence:

User-Specific Gateways
XML:
<user id="user1">
  <params>
    <param name="password" value="1"/>
  </params>
  <variables>
    <variable name="register-gateway" value="user1out"/>
  </variables>
  <gateways>
    <gateway name="user1out">
      <param name="username" value="4347382173"/>
      <param name="password" value="1"/>
      <param name="proxy" value="sip.example.com"/>
      <param name="register" value="false"/>
    </gateway>
  </gateways>
</user>
The <register-gateway> variable can be set to the name of a specific gateway, a comma delimited list of multiple gateways, or "all". Setting it to one or more gateways will register the named gateway(s) when the <user> registers with FreeSWITCH.(whether they're in the <user>'s <gateways> or some other <user>'s <gateways> or anywhere). Setting the variable to "all" will register all of the particular <user>'s gateways.
It is possible to use one line generic dialplan for all extensions:
<action application="bridge" data="sofia/ gateway/{register-gateway}/$1 />
 

Mike Loiterman

New Member
Jan 23, 2018
23
1
3
48
It is possible to use one line generic dialplan for all extensions:
<action application="bridge" data="sofia/ gateway/{register-gateway}/$1 />

But how do you set:

<variable name="register-gateway" value="user1out"/>

from within the GUI? Fusion doesn't have any way to add this, as far as I can tell.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
I just don't think this is a regular PBX feature. I actually do not see its place at all, everything it seems you are trying to achieve can via done via the dialplan anyway.
 
Status
Not open for further replies.