Voiptalk IAX2 incomming issue

Hi there i have spend many many hours / days on this and im sure its so simple but i just donw have the knowledge to fix it!

I have got my outgoing trunk working, i can make calls with that and its fine, my problem is incomming. I had the IAX2 security issue with call tokens so i have added the line to the iax conf files which has fixed that.

My setup is IAX2 trunk from voiptalk.org.

outbound caller id: 0203xxxxxxx
never over ride caller ID: ticked

outgoing settings
host=iax5.voiptalk.org
secret=xxxxxx
type=peer
username=742xxxx

Incoming settings

user context: 0203xxxxxxx

context=from-pstn
type=friend
username=0203xxxxxxx

Looking at my IAX2 debug in the cli this is what i get

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00006ms SCall: 01552 DCall: 00000 [77.240.48.141:4570]
VERSION : 2
CALLED NUMBER :
CODEC_PREFS : (alaw|ulaw|gsm|ilbc|lpc10|speex|adpcm|slin|g729|g723|g726aal2|g726)
CALLING NUMBER : 07590xxxxxx (my mobile number)
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : 07590xxxxxx (my mobile number)
LANGUAGE : en
USERNAME : 742xxxx (IAX account number)
FORMAT : 8
CAPABILITY : 61439
ADSICPE : 2
DATE TIME : 2011-04-10 00:36:08

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00017ms SCall: 03911 DCall: 01552 [77.240.48.141:4570]
AUTHMETHODS : 3
CHALLENGE : 74767488
USERNAME : 742xxxx

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00017ms SCall: 01552 DCall: 03911 [77.240.48.141:4570]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: HANGUP
Timestamp: 00058ms SCall: 01552 DCall: 03911 [77.240.48.141:4570]
CAUSE CODE : 0

Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00058ms SCall: 03911 DCall: 01552 [77.240.48.141:4570]

any help or pointers would be fantastic!

Are you using FreepBX? Download the module IAX settings and configure properly. Or use the iax2 custom conf file to setup and make test.

In your debug you receive the Challenge for authenticate but you never send it or need more verbose to see it.

i am actually using trixbox, when you say verbose i assume you mean asterisk -vvvvr etc? what level of verbosity do i need to set it to for the information you require?

Try with 7, and check if trixbox can download the iax2 settings too.

hi

in incomming setting try these

user context : some name

details
username=username
secret=password
fromuser=username
host=ipaddress of provider
disallow=all
allow=all
insecure=very
context=from-pstn

in register field : username:password@hostipaddress/incommingDIDno

Hi there, what do you mean if it can download the IAX2 settings?

I have built another TB 2.8 server from fresh and got a softphone to test. this is what i have when i set verbose to 12

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00015ms SCall: 02035 DCall: 00000 [217.14.138.131:4570]
VERSION : 2
CALLED NUMBER :
CODEC_PREFS : (alaw|ulaw|gsm|ilbc|lpc10|speex|adpcm|slin|g729|g723|g726aal2|g726)
CALLING NUMBER : 07590xxxxxx
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : 0759xxxxxxx
LANGUAGE : en
USERNAME : 7422468
FORMAT : 8
CAPABILITY : 61439
ADSICPE : 2
DATE TIME : 2011-04-13 15:33:18

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00015ms SCall: 02035 DCall: 00001 [217.14.138.131:4570]

and when i call from my mobile i just get a beep beep beep and then it hangs up.

Interestingly, if i put
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382

in iax_general_custom.conf i get it asking for AUTH which is what i was having on my other TB. I will test the settings that you suggested and let you know

Hi i have tried all of that and still no luck :cry:

I refer to the iax2 settings module for freepbx. I remember Trixbox use a custom freepbx so if you can download the module you can configure from web too.

And show us your output when you activate the iax2 set debug.

activate:

core set verbose 10
core set debug 10
iax2 set debug on

And relaod iax2 module and show us the output

Thanks for the info, i have done it and this is what i have got

Connected to Asterisk 1.6.0.26-FONCORE-r78 currently running on trixbox1 (pid = 4649)
Verbosity is at least 10
Core debug is at least 10
trixbox1CLI> iax2 reload
== Parsing ‘/etc/asterisk/iax.conf’: == Found
== Parsing ‘/etc/asterisk/iax_general_additional.conf’: == Found
== Parsing ‘/etc/asterisk/iax_general_custom.conf’: == Found
== Parsing ‘/etc/asterisk/iax_registrations_custom.conf’: == Found
== Parsing ‘/etc/asterisk/iax_registrations.conf’: == Found
== Parsing ‘/etc/asterisk/iax_custom.conf’: == Found
== Parsing ‘/etc/asterisk/iax_additional.conf’: == Found
== Parsing ‘/etc/asterisk/iax_custom_post.conf’: == Found
== Parsing ‘/etc/asterisk/users.conf’: == Found
> doing dnsmgr_lookup for ‘iax5.voiptalk.org
== Loaded firmware 'iaxy.bin’
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00009ms SCall: 01428 DCall: 00000 [77.240.48.141:4570]
VERSION : 2
CALLED NUMBER :
CODEC_PREFS : (alaw|ulaw|gsm|ilbc|lpc10|speex|adpcm|slin|g729|g723|g726aal2|g726)
CALLING NUMBER : 07590xxxxxx
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : 07590xxxxxx
LANGUAGE : en
USERNAME : 742xxxx
FORMAT : 8
CAPABILITY : 61439
ADSICPE : 2
DATE TIME : 2011-04-13 19:53:50
trixbox1
CLI>
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00009ms SCall: 01428 DCall: 00001 [77.240.48.141:4570]

what i dont get is the link from the provider to my TB is working as i can see it comming in, is it just not processing it or is it failing to pass it on? i am a n00b at this so its a bit frustrating i cant fix it!

after trying some things out i added calltokenoptional=0.0.0.0/0.0.0.0 to the iax.conf, and then i get this

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00015ms SCall: 10709 DCall: 00000 [77.240.60.33:4569]
VERSION : 2
CALLED NUMBER :
CODEC_PREFS : (alaw|ulaw|gsm|ilbc|lpc10|speex|adpcm|slin|g729|g723|g726aal2|g726)
CALLING NUMBER : 07590xxxxx
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : 07590xxxxx
LANGUAGE : en
USERNAME : 742xxxxx
FORMAT : 8
CAPABILITY : 61439
ADSICPE : 2
DATE TIME : 2011-04-13 21:45:12

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00004ms SCall: 00784 DCall: 10709 [77.240.60.33:4569]
AUTHMETHODS : 3
CHALLENGE : 711441903
USERNAME : 742xxxxx

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00004ms SCall: 10709 DCall: 00784 [77.240.60.33:4569]
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: HANGUP
Timestamp: 00059ms SCall: 10709 DCall: 00784 [77.240.60.33:4569]
CAUSE CODE : 0

Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00059ms SCall: 00784 DCall: 10709 [77.240.60.33:4569]

it seems to e asking for authorisation, and then it hangs up.

Do you have the requierecalltoken=no.

yes i have that, and removed calltokenoptional=0.0.0.0/0.0.0.0, still get the same

trixbox1CLI> core set debug 10
Core debug was 0 and is now 10
trixbox1
CLI> core set verbose 10
Verbosity was 3 and is now 10
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00011ms SCall: 08519 DCall: 00000 [77.240.60.33:4569]
VERSION : 2
CALLED NUMBER :
CODEC_PREFS : (alaw|ulaw|gsm|ilbc|lpc10|speex|adpcm|slin|g729|g723|g726aal2|g726)
CALLING NUMBER : 07590xxxxxx
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : 07590xxxxxx
LANGUAGE : en
USERNAME : 742xxxx
FORMAT : 8
CAPABILITY : 61439
ADSICPE : 2
DATE TIME : 2011-04-14 08:30:26
trixbox1*CLI>
Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00011ms SCall: 08519 DCall: 00001 [77.240.60.33:4569]

The ports are behind firewall? Check that

hi there, yes it is. i have forwarded all the ports i should, but for IAX2 i only need UDP 4569, i assume if i didnt have this then the call wouldnt even reach TB

anyone? i waas just thinking when i add the allow 0.0.0.0/0.0.0.0 it then has an extra bit in the CLI that has an action of AUTHREQ (which i presume means authentication required) can i add username nad password in there? i dont know why this is so difficult, if anybody else has used voiptalk / telaplient and got it working it would be really useful!

HI when I connect to remote server with IAX I always set this parameters:

in general section:
calltokenoptional=0.0.0.0/0.0.0.0
maxcallnumbers=16381

in the peer section:
requierecalltoken=no
And set the defaultuser/username correctly.

But you may ask to your provider the right configuration.