# Requirecalltoken problem in an IAX trunk(s)

**URL:** <https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280>\
**Category:** uncategorized\
**Created:** [May 20, 2015, 7:40pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280 "2015-05-20T19:40:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 20, 2015, 7:40pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/1 "2015-05-20T19:40:46Z")

</div>

The system is a FreePBX Distro version 6.12.65-25 I replaced an older asterisk based system that was connected to like systems for some time. They had no problems calling between all three locations until I replaced the one system with a FreePBX system. I have the IAX trunks created and I can call from the Freepbx to the other system and it is fine. When the others call to me they get a busy signal and in the logs I get this:

[2015-05-20 15:34:11] ERROR[2007] chan\_iax2.c: Call rejected, CallToken Support required. If unexpected, resolve by placing address 66.227.255.106 in the calltokenoptional list or setting user baygladwin requirecalltoken=no  
Here is what I have tried:  
added requirecalltoken=no in the Asterisk IAX Setting  
added requirecalltoken=no in the Peer and User details for the trunk

So at this point I do not know where to go. Can anyone help me out here?

Thanks

---

<div class="post-metadata">

**Author:** ![Overkill](https://community.freepbx.org/letter_avatar_proxy/v4/letter/o/9fc29f/32.png) [@Overkill](https://community.freepbx.org/u/Overkill)\
**Post date:** [May 21, 2015, 4:24pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/2 "2015-05-21T16:24:53Z")

</div>

Remove personal details (IP, username).

Also, have you tried placing that IP in the call token optional list?

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 21, 2015, 5:46pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/3 "2015-05-21T17:46:24Z")

</div>

Hi Overkill,

Yeah I messed up on that IP and username. Oh well, I 'll remember next time. Where is the call token option list? I have never heard of that before. I’ll google it and see what I come up with.

Thanks

---

<div class="post-metadata">

**Author:** ![Overkill](https://community.freepbx.org/letter_avatar_proxy/v4/letter/o/9fc29f/32.png) [@Overkill](https://community.freepbx.org/u/Overkill)\
**Post date:** [May 21, 2015, 5:48pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/4 "2015-05-21T17:48:14Z")

</div>

In your IAX config: (from [http://www.voip-info.org/wiki/view/Asterisk+config+iax.conf](http://www.voip-info.org/wiki/view/Asterisk+config+iax.conf))

CallToken Support required

if you get  
Nov 2 15:58:47 ERROR[823]: chan\_iax2.c:4040 handle\_call\_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 192.168.1.1 in the calltokenignore list or setting user iaxhorst requirecalltoken=no  
Since AST-2009-006 there is a check for a call token performed. Older clients (e.g. Asterisk 1.2 before 1.2.35) don’t support call tokens, so there is a parameter  
requirecalltoken=no

per peer or  
calltokenoptional = 192.168.1.0/255.255.255.0

per subnet.

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 21, 2015, 5:57pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/5 "2015-05-21T17:57:18Z")

</div>

So I can put that in the peer / user details? I put requirecalltoken=no and that didn’t work I will try the other entry

Thanks

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 21, 2015, 6:11pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/6 "2015-05-21T18:11:45Z")

</div>

Here is my peer details:

host=kawkawlin  
username=baygladwin  
secret=  
type=peer  
qualify=yes  
calltokenoptional=IP of the distant office

User Details

secret=  
type=user  
context=from-internal  
host=dynamic  
calltokenoptional=Ip of the distant office

I still get the error in the logs. Could the other systems be so old that they won’t work? I think they might be Asterisk 1.4 or 1.6

---

<div class="post-metadata">

**Author:** ![Overkill](https://community.freepbx.org/letter_avatar_proxy/v4/letter/o/9fc29f/32.png) [@Overkill](https://community.freepbx.org/u/Overkill)\
**Post date:** [May 21, 2015, 10:05pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/7 "2015-05-21T22:05:20Z")

</div>

Your system is expecting the call token, and isn’t getting one. In the IAX.conf file you should set calltokenoptional=IP

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 22, 2015, 1:35am UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/8 "2015-05-22T01:35:49Z")

</div>

As soon as I can access the iax.conf file I will put that in. Won’t that get overwritten the next time I create an IAX trunk?

---

<div class="post-metadata">

**Author:** ![Overkill](https://community.freepbx.org/letter_avatar_proxy/v4/letter/o/9fc29f/32.png) [@Overkill](https://community.freepbx.org/u/Overkill)\
**Post date:** [May 22, 2015, 4:52am UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/9 "2015-05-22T04:52:05Z")

</div>

To be honest, I’m not sure. Maybe it can be added with the GUI?

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 22, 2015, 12:22pm UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/10 "2015-05-22T12:22:46Z")

</div>

I have added it everywhere I can think of in the GUI. In the User / Peer Details and in the Advanced IAX settings. Can you think of anywhere else?

---

<div class="post-metadata">

**Author:** ![Overkill](https://community.freepbx.org/letter_avatar_proxy/v4/letter/o/9fc29f/32.png) [@Overkill](https://community.freepbx.org/u/Overkill)\
**Post date:** [May 23, 2015, 6:32am UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/11 "2015-05-23T06:32:42Z")

</div>

I haven’t used IAX before, so no ☹ Maybe a dev or @dicko can weigh in?

---

<div class="post-metadata">

**Author:** ![dicko](https://community.freepbx.org/user_avatar/community.freepbx.org/dicko/32/8712_2.png) [@dicko](https://community.freepbx.org/u/dicko)\
**Post date:** [May 23, 2015, 11:22am UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/12 "2015-05-23T11:22:07Z")

</div>

Juat read and impliment it to suit.

[https://wiki.asterisk.org/wiki/display/AST/IAX2+Security](https://wiki.asterisk.org/wiki/display/AST/IAX2+Security)

---

<div class="post-metadata">

**Author:** ![edlentz](https://community.freepbx.org/letter_avatar_proxy/v4/letter/e/82dd89/32.png) [@edlentz](https://community.freepbx.org/u/edlentz)\
**Post date:** [May 23, 2015, 11:36am UTC](https://community.freepbx.org/t/requirecalltoken-problem-in-an-iax-trunk-s/29280/13 "2015-05-23T11:36:09Z")

</div>

Thanks Overkill & Dicko
