If you look at your config under VOIP/dialplan you should see a bunch of blocks of code entries something like this:
Code:
(1
(pattern(5))
(trunk_index(0))
(fallback_trunk_index(-1))
(remove_digits(1))
(num_digits_to_remove(1))
(min_digits(2))
(max_digits(31))
(call_type(0))
(narrowband(0))
)
I have highlighted this one because it is the one that is used to select the PSTN line.
For mine, I added new code blocks (each one representing a rule in the dial plan) for each of my trunks. In my case, the highest code block number was 15 and the SIP trunk indexes were 1 & 2 so I incremened the number of the code block, pattern (prefix number) and trunk index for each SIP trunk like this:
Code:
conf set voip/dial_plan/16/pattern 6
conf set voip/dial_plan/16/trunk_index 1
conf set voip/dial_plan/16/fallback_trunk_index -1
conf set voip/dial_plan/16/remove_digits 1
conf set voip/dial_plan/16/num_digits_to_remove 1
conf set voip/dial_plan/16/min_digits 3
conf set voip/dial_plan/16/max_digits 31
conf set voip/dial_plan/16/call_type 0
conf set voip/dial_plan/16/narrowband 0
conf set voip/dial_plan/17/pattern 7
conf set voip/dial_plan/17/trunk_index 2
conf set voip/dial_plan/17/fallback_trunk_index -1
conf set voip/dial_plan/17/remove_digits 1
conf set voip/dial_plan/17/num_digits_to_remove 1
conf set voip/dial_plan/17/min_digits 3
conf set voip/dial_plan/17/max_digits 31
conf set voip/dial_plan/17/call_type 0
conf set voip/dial_plan/17/narrowband 0
This allows me to select my outbound connection by dialing a prefix, i.e. 5 for PSTN, 6 for the first SIP trunk and 7 for for the second SIP trunk.
Obviously, I don't know what numbers are used in other Hubs but this works fine for me.
I hope I made this clear enough.
technodevotee