Inbound call not worked! pls help

Hi everyone,
I have set up two servers linked together with both SIP and IAX turnks, server A is with static ip, and server B has a dynamic ip.

i have created two extensions (SIP and IAX) in server A, and two trunks (SIP and IAX) in server B to link to server A,

outbound calls from Server B to server A works well so far.

However, inbound calls from server A to the extension numbers registered from server B always shows
everyone is busy and congested at this time.

and from the Server B CLI there is nothing happened upon testing, which means it’s not passing to server B at all, and it happened for both IAX and sip trunks.

What i do is (take IAX as an example)

just create two normal extensions in server A with context=from-internal.
[67345791]
type=friend
setvar=REALCALLERIDNUM=67345791
secret=qewk14li089DAfk7
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=4569
notransfer=yes
[email protected]
host=dynamic
disallow=all
dial=IAX2/67345791
context=from-internal
callerid=device <67345791>
allow=g729,ulaw,alaw

then i create the IAX trunk in server B with settings as
-Peer details
allow=g729
context=from-trunk
disallow=all
host=58.185.xxx.xxx (server A static ip)
notransfer=yes
qualify=yes
secret=qewk14li089DAfk7
type=peer
username=67345791

-User context 67345791
-User details
context=from-trunk
host=58.185.xxx.xxx
secret=qewk14li089DAfk7
type=user
username=67345791

-register string
[email protected]

Any one could point me some useful links refer to self-created inbound trunk call or the possible problem i may make?

thanks very much in advance.

My iax.conf of Server A,
[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0
externip=58.185.xxx.xxx
localnet=192.168.1.0/255.255.255.0
tos=lowdelay
bandwidth=medium
disallow=all
allow=g726
allow=g723
allow=g729
allow=ulaw
allow=alaw
delayreject=yes
jitterbuffer=yes;just below the codecs
forcejitterbuffer=yes
dropcount=3 ; means 1.5% of frames dropped
qualify=yes
trunk=yes
notransfer=yes

[guest]
type=user
context=from-trunk

#include iax_registrations_custom.conf
#include iax_registrations.conf
#include iax_custom.conf
#include iax_additional.conf

And my iax.conf in server B (with dynamic ip)
[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0
externhost=xxxx.dyndns.org
localnet=192.168.0.0/255.255.255.0
qualify=yes

tos=lowdelay
disallow=all
allow=g729
allow=ulaw
allow=alaw
allow=slinear
allow=g723
mailboxdetail=yes
jitterbuffer=yes;just below the codecs
dropcount=4
maxjitterbuffer=500
maxexcessbuffer=100
;maxregexpire=1400
notransfer=yes
trunk=yes
#include iax_registrations_custom.conf
#include iax_registrations.conf
#include iax_custom.conf
#include iax_additional.conf

johnny

Use inbound routes module in freepbx … Make a inbound route for number 67345791 and in serverb change register string to

67345791:[email protected]/67345791

This should solve your problem i hope .