Multiple trunks from the same TSP

jlalande

New Member
Joined
Mar 18, 2009
Messages
18
Reaction score
0
I have been using Asterisk for a couple of years and moved from SAIL/SARK to PiaF about a year ago. What I need to know shows why I have had problems all along the way.

I am using Inphonex for telephony service and I have several virtual numbers, the majority having a different DID. It is very straight forward to create a single trunk, but when it comes to the second one, there are a couple of details that are not so clear.

I think my main bit of confusion is in the trunk's PEER Details. Inphonex specifies that those details should be:

username=xxxxxxx (Replace xxxxxxx with your virtual number)
type=peer
secret=my-password
host=sip.inphonex.com
fromuser=xxxxxxx
fromdomain=sip.inphonex.com
context=from-inphonex
canreinvite=no

My question is, where does this context=from-inphonex come from? Is 'from-inphonex' defined somewhere or is this the definition? In subsequent trunks that have different virtual numbers, do I continue to use 'from-inphonex' as the context?

It seems like TSP's are good at specifying the first trunk, but if you have multiple trunks, I can't find anything.

Any thoughts illuminating this would be very helpful.

John
 
I don't think the from-inphonex make any difference if there is no customized code [from-inphonex] associated with. You can make a custom-context with a name from-inphonex. That custom-context may specify specific trunk/route to be used.
You can add many trunks as you like. But if you want to specify which trunk to be used by which extension, you need some custom-context.
 
Now granted I'm fairly new to PIAF. But in most of my trunks(I use several some from the same provider) it has
Code:
context=from-trunk
as the context. I have two Sipgate trunks and one Voipbuster(Yeah I know they suck) trunk.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,409
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top