[Asterisk-Users] Can't get incoming calls with IAX trunks(FWD&Teliax)

Joshua Colp joshnet at nbnet.nb.ca
Sat Apr 30 07:04:57 MST 2005


Hello,

They are being rejected because the extensions (your DIDs) do not exist in
the context from-pstn. How did I know? I read the error ;)

- Joshua Colp.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Patrick M.
Gray, Jr.
Sent: Saturday, April 30, 2005 11:03 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Can't get incoming calls with IAX
trunks(FWD&Teliax)

It looks like it registers:

asterisk1*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
208.139.204.228:4569  me  	    my.external.ip:1546        60
Registered
65.39.205.121:4569    me          my.external.ip:1546        60  Registered

But the logs (I didn't know that trick, or at least didn't have enough v's
when looking at the CLI) show incoming calls are being rejected:

Fwd inbound:
Apr 30 09:55:06 NOTICE[1439]: Rejected connect attempt from 65.39.205.121,
request '632254 at from-pstn' does not exist

Teliax inbound:
Apr 30 09:55:34 NOTICE[1439]: Rejected connect attempt from 208.139.204.228,
request '9145551212 at from-pstn' does not exist

I followed the FWD and Teliax instructions exactly, but clearly I'm missing
something.

Here is my iax_additional.conf:

register=me:very at iax2.fwdnet.net
register=me:very at voip.teliax.com

[fwd]
username=me
type=peer
secret=very
host=iax2.fwdnet.net
dtmf=inband
allow=ulaw

[iaxfwd]
type=user
inkeys=freeworlddialup
disallow=all
context=from-pstn
auth=rsa
allow=ulaw

[teliax]
username=me
type=friend
secret=very
host=voip.teliax.com
disallow=all
context=from-pstn
auth=md5
allow=gsm


I have a from-pstn context in extensions.conf as well:

[from-trunk]							; just an
alias since VoIP shouldn't be called PSTN
include => from-pstn

[from-pstn]
include => from-pstn-custom			; create this context in
extensions_custom.conf to include customizations
include => ext-did
include => from-pstn-timecheck 		; this has to be included otherwise
it overrides ext-did

[from-pstn-timecheck]
exten => .,1,Goto(s,1)		; catch-all matching for calls that have DID
info (if a DID route hasn't matched them)
exten => s,1,GotoIf($[${IN_OVERRIDE} =
forcereghours]?from-pstn-reghours,s,1:)
exten => s,2,GotoIf($[${IN_OVERRIDE} =
forceafthours]?from-pstn-afthours,s,1:)
exten => s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours,s,1:)
exten => s,4,Goto(from-pstn-afthours,s,1)

[from-pstn-reghours]
exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-reghours-nofax,s,1:2)
; if fax detection is disabled, then jump to from-pstn-nofax - else continue
exten => s,2,Answer	
exten => s,3,Wait(1)
exten => s,4,SetVar(intype=${INCOMING})
exten => s,5,Cut(intype=intype,-,1) 
exten => s,6,GotoIf($[${intype} = EXT]?7:9)		; If INCOMING starts
with EXT, then assume its an extension
exten => s,7,Wait(3)
;wait 3 more second to make sure this isn't a fax before dialing someone
exten => s,8,Goto(ext-local,${INCOMING:4},1)
exten => s,9,GotoIf($[${intype} = GRP]?10:12) 	; If INCOMING starts with
GRP, then assume its a ring group
exten => s,10,Wait(3)
exten => s,11,Goto(ext-group,${INCOMING:4},1)
exten => s,12,GotoIf($[${intype} = QUE]?13:15)
exten => s,13,Wait(3)
exten => s,14,Goto(ext-queues,${INCOMING:4},1)
exten => s,15,Goto(${INCOMING},s,1) 			; not EXT or GR1 -
it's an auto attendant
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => h,1,Hangup


Thanks so much for any help!  I've been stumped by this one and feel like
I'm missing some piece of the puzzle.

Thanks again!

Pat

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dan Levine
Sent: Saturday, 30 April, 2005 00:29
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Can't get incoming calls with IAX trunks
(FWD&Teliax)

Are you sure it's registering?

----- 
Dan Levine 
CYTEXONE | Your Technology Specialists 
t: 877.CYTEXONE x 810 
l: 212.477.0990 x 810 
e: dan at cytexone.com 
http://www.cytexone.com 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Patrick
Gray, Jr.
Sent: Saturday, April 30, 2005 12:04 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Can't get incoming calls with IAX trunks (FWD
&Teliax)

I have Asterisk at Home 0.9 running, and everything seems
to work well EXCEPT incoming calls.

I have an FWD and Teliax trunk (both using IAX), and a
Cisco 7960 SIP phone connected to Asterisk. 
Everything tests fine:

-	Can call from softphone to Cisco and vice versa
-	Asterisk inbound simulation works like a champ
-	Voicemail works fine
-	Outbound calls to both trunks works fine

However, when I call into my system on the FWD or
Teliax trunks, nothing happens.  Nothing appears on
the asterisk console so I'm not even sure where to
start.  I'm suspecting network problems, but don't
know what to look for.  My asterisk box sits on my
LAN, behind an IPCop-based NAT router.  I've forwarded
port 4569 UDP and TCP to the asterisk box, but still
no joy.  I've googled and checked voip-info, but
everything that mentions NAT as a potential problem
points to IAX as the solution.  Trunk-wise, I'm pure
IAX (only SIP is the 7960, and it's on the same
network as the asterisk box).

I'm pretty new to asterisk, so if you can dumb down
any debugging advice I'd appreciate it.

Thanks a ton!

Pat

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list