[asterisk-users] Help with iax.conf {tesco|freshtel} 1.6
Brian
brel.astersik100129 at copperproductions.co.uk
Mon Feb 8 03:24:22 CST 2010
I have something going on that I don't fully understand after a weekend
of looking for answers.
I have an iax account with Tesco that works flawlessly with the Zoiper
client - but is giving me trouble with inbound calls in Asterisk 1.6.
After some playing I have ended up with an iax.conf file that looks like
this:
[general]
calltokenoptional = 77.75.0.0/255.255.248.0
maxcallnumbers = 16382
port=4569
bandwidth=low
disallow=all
allow=alaw
allow=ulaw
allow=gsm
jitterbuffer=yes
tos=lowdelay
qualify=80
register => 012XXXXXXXX:PASSWORD at gateway.tescointernetphone.com
[012XXXXXXXX]
type=friend
requirecalltoken=no
context=from-iax
host=gateway.tescointernetphone.com
auth=rsa
username=012XXXXXXXX
secret=PASSWORD
qualify=yes
For testing I've tried various options in extensions.conf, but for the
time being have settled with:
exten => 012XXXXXXXX,1,NoOp(--- AIX-INBOUND-TESCO DEBUG ---)
exten => 012XXXXXXXX,2,Wait(10)
exten => 012XXXXXXXX,3,hangup
Looking at iax2 show peers I have:
Name/Username Host Mask Port
Status
012XXXXXXXX/012 77.75.0.135 (S) 255.255.255.255 4569 OK
(56 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
If I make an INBOUND call to the pstn number associated with this iax
provider, with debugging on I see the call, but it never goes to the
matching extension - it just rings out until I hang up:
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
NEW
Timestamp: 00013ms SCall: 00219 DCall: 00000 [77.75.0.135:4569]
VERSION : 2
CALLED NUMBER : 012XXXXXXXX
CODEC_PREFS : (ilbc|g729|alaw|ulaw|gsm)
CALLING NUMBER : Unavailable
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Unavailable
LANGUAGE : en
FORMAT : 256
CAPABILITY : 58638
ADSICPE : 2
DATE TIME : 2010-02-08 09:04:54
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
AUTHREQ
Timestamp: 00019ms SCall: 00655 DCall: 00219 [77.75.0.135:4569]
AUTHMETHODS : 4
CHALLENGE : \x31\x31\munged
USERNAME : 012XXXXXXXX
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass:
ACK
Timestamp: 00019ms SCall: 00219 DCall: 00655 [77.75.0.135:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
REGREQ
Timestamp: 00003ms SCall: 02774 DCall: 00000 [77.75.0.135:4569]
USERNAME : 012XXXXXXXX
REFRESH : 60
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
REGACK
Timestamp: 00013ms SCall: 00091 DCall: 02774 [77.75.0.135:4569]
USERNAME : 012XXXXXXXX
DATE TIME : 2010-02-08 09:05:00
REFRESH : 60
APPARENT ADDRES : IPV4 x.x.x.x:4569
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass:
ACK
Timestamp: 00013ms SCall: 02774 DCall: 00091 [77.75.0.135:4569]
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass:
HANGUP
Timestamp: 08647ms SCall: 00219 DCall: 00655 [77.75.0.135:4569]
CAUSE CODE : 0
However, if I add this to the bottom of iax.conf:
[guest]
type=user
context=from-iax
It works ->
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
NEW
Timestamp: 00018ms SCall: 00423 DCall: 00000 [77.75.0.135:4569]
VERSION : 2
CALLED NUMBER : 012XXXXXXXX
CODEC_PREFS : (ilbc|g729|alaw|ulaw|gsm)
CALLING NUMBER : Unavailable
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Unavailable
LANGUAGE : en
FORMAT : 256
CAPABILITY : 58638
ADSICPE : 2
DATE TIME : 2010-02-08 09:18:20
-- Accepting UNAUTHENTICATED call from 77.75.0.135:
> requested format = g729,
> requested prefs = (ilbc|g729|alaw|ulaw|gsm),
> actual format = alaw,
> host prefs = (alaw|ulaw|gsm),
> priority = mine
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
ACCEPT
Timestamp: 00016ms SCall: 03340 DCall: 00423 [77.75.0.135:4569]
FORMAT : 8
stinger2*CLI>
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass:
ACK
Timestamp: 00016ms SCall: 00423 DCall: 03340 [77.75.0.135:4569]
-- Executing [012XXXXXXXX at from-iax:1] NoOp("IAX2/012XXXXXXXX-3340",
"--- AIX-INBOUND-TESCO DEBUG ---" ) in new stack
== Begin MixMonitor Recording IAX2/01256510343-3340
-- Executing [01256510343 at from-iax:3] Wait("IAX2/01256510343-3340",
"1") in new stack
-- Executing [01256510343 at from-iax:4] Dial("IAX2/01256510343-3340",
"SIP/5050,55,tr") in new stack
{snip}
I am guessing this is either an issue with this:
Accepting UNAUTHENTICATED call from 77.75.0.135:
Or is normal and I'm missing something here????
More information about the asterisk-users
mailing list