IAX registration (ast 1.4 -> ast 11) not working - calltoken

I’m setting up a new AsteriskNow 11 (Asterisk ver 11.1.2) box but am having no luck getting an older 1.4 box to register to it via IAX.

11.1.2 box logs:

ERROR[2611] chan_iax2.c: Call rejected, CallToken Support required. If unexpected, resolve by placing address x.x.x.x in the calltokenoptional list or setting user xxxxx requirecalltoken=no

I’ve seen the various posts on how to fix this and have followed the advice. Namely, I added custom config to the FreePBX IAX Settings which caused these lines to be added to iax_general_additional.conf:

calltokenoptional=0.0.0.0/0.0.0.0
maxcallnumbers=16382

I’ve also tried adding this to the trunk definition:

requirecalltoken=no

but the problem persists! I’ve reloaded and restarted asterisk after making the changes.

What am I missing? Help!

Trunk definition (asterisk 11 side):

[xxxx]
disallow=all
host=dynamic
type=friend
qualify=yes
trunk=yes
context=from-internal
allow=g729
username=xxxx
secret=xxxxxxxxxxxxxxxx
dtmfmode=auto
requirecalltoken=no

iax_general_additional.conf (as generated by freepbx):

mailboxdetail=yes
tos=ef
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
calltokenoptional=0.0.0.0/0.0.0.0
maxcallnumbers=16382
codecpriority=host
delayreject=yes
jitterbuffer=yes
maxjitterinterps=10
resyncthreshold=1000
maxjitterbuffer=200
forcejitterbuffer=no
minregexpire=60
maxregexpire=3600

hello!have you got solution since the time you post it??
i am facing the same problem can someone help me please!!

From the documentation (iax.conf.sample):

[quote]; Call token validation can be set as optional for a single IP address or IP
; address range by using the ‘calltokenoptional’ option. ‘calltokenoptional’ is
; only a global option.
[/quote]

[quote]; requirecalltoken may only be used in peer/user/friend definitions,
; not in the global scope.
[/quote]

You will have to ask on freepbx.org/forums/ as if and how to add it in those places on FreePBX, although you could try using in one of its custom files, whre is a meta symbol and the other characters are literal.

ok thanks david55.i will do it

ok thank you i will do it.