Iax2 trunk. One server can dial others ext, the other can't. Need some help.

garyv
Posts: 148
Member Since:
2006-10-20

I have an iax2 trunk between to trixbox servers. Server A is our main server and has a PRI attached. Server B is a remote office.

Right now, from Server B, I can dial Server A’s ext and they ring through. I can also place outgoing calls through Server A, when dialing from Server B. However I can’t dial Server B’s ext from Server A. I get your call can’t be completed as dialed. I’ve all my hair out trying to get this to work.

Server A has the outbound route set to the iax2 trunk with dial rule 83xx. 83xx is the ext on Server B.

Anyone think of something I have not tried. I just don’t get how one side can work perfect and the other not.

Thank you for your time and help.

Gary V.



SkykingOH
Posts: 8081
Member Since:
2007-12-17
You need to post your trunk

You need to post your trunk configs for anyone to able to help.

--

Scott

aka "Skyking"



paulba
Posts: 6
Member Since:
2007-01-16
Agree with Scott

You really do need to help us help you, however I'm going to hazard a guess that the INBOUND Context of Server-B's Trunk settings is incorrect. On my IAX2 tie-trunk the Inbound Context of my "server-b" is "from-trunk".

Tnx

--

--
Paul B



garyv
Posts: 148
Member Since:
2006-10-20
I copy and paste the below

I copy and paste the below settings and change the IPs and users as needed. The only thing I can think might be wrong, on server a i have custom contexts. the main context for office phones is Officephones. I have other contexts that are more restrictive. Would I need to change, under peer details, the context to Officephones or leave it from-internal? what is the difference between from-internal and from-trunk?

Peer Details:

disallow=all
allow=gsm
jitterbuffer=yes
trunktimestamps=yes
trunk=yes
context=from-internal
host=IP
qualify=yes
secret=1234
type=peer
username=trixbox3user
auth=md5
encryption=aes128

User Context:
trixbox1user

User Details:
context=from-internal
host=IP
secret=1234
type=user



paulba
Posts: 6
Member Since:
2007-01-16
Contexts

From-internal - tells Asterisk to look in the from-internal context, which normally contains all your local extensions
from-trunk - generally looks at DID's

My trunk:
Outgoing Settings

username=username
type=peer
secret=secret
host=IP
disallow=all
allow=g729&g723&g722&alaw&ulaw
qualify=yes

Incoming:

Usercontext - Context

type=user
secret=secret
disallow=all
allow=g729&alaw&ulaw&g723
context=from-trunk

As all of my extensions have their number as a DID, it works..

From the CLI issue an iax2 set debug to see what is happening when you try to make a call..

--

--
Paul B



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.