Author Topic: Asterisk on 10.04 with IAX  (Read 11884 times)

Foxi352

  • Veteran
  • ***
  • Posts: 52
    • View Profile
Re: Asterisk on 10.04 with IAX
« Reply #15 on: September 10, 2012, 10:32:15 am »
You can check with:
 mysql -u root asterisk -e "select id,name,username,type,requirecalltoken,context,host  from iax_devices;"

Normally you don't have to reload, but you can nevertheless execute "iax2 reload" in asterisk console.

Serge

fastie81

  • Veteran
  • ***
  • Posts: 136
  • SSDD
    • View Profile
Re: Asterisk on 10.04 with IAX
« Reply #16 on: September 10, 2012, 08:26:49 pm »
Hi Serge

Ok I gave it another go, but got the same results. This is what I did
Ran this first
dcerouter_1030932:/home/fastie81# mysql -u root asterisk -e "update iax_devices set requirecalltoken='no';"

No errors, then I ran this
dcerouter_1030932:/home/fastie81# mysql -u root asterisk -e "select id,name,username,type,requirecalltoken,context,host  from iax_devices;"
+----+-----------+-----------+------+------------------+------------+-----------------+
| id | name      | username  | type | requirecalltoken | context    | host            |
+----+-----------+-----------+------+------------------+------------+-----------------+
|  1 | {MyNymber} | {My Number} | peer | no               | from-trunk | iax.2talk.co.nz |
+----+-----------+-----------+------+------------------+------------+-----------------+

Then went in asterisk and did a ias2 show peers and it was still there

dcerouter*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
{Mynumber}/04384  202.180.76.166  (S)  255.255.255.255  4569          UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]

So I did an iax2 reload and a show peers again, I m seeing an error here so not sure if this is my problem.
dcerouter*CLI> iax2 reload
[Sep 11 06:17:19] ERROR[27857]: res_config_mysql.c:1611 mysql_reconnect: MySQL RealTime: Ping failed (2006).  Trying an explicit reconnect.
[Sep 11 06:17:19] NOTICE[27857]: chan_iax2.c:13107 set_config: Ignoring bindport on reload
[Sep 11 06:17:19] NOTICE[27857]: chan_iax2.c:13168 set_config: Ignoring bindaddr on reload
[Sep 11 06:17:19] NOTICE[27857]: iax2-provision.c:551 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
dcerouter*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
0 iax2 peers [0 online, 0 offline, 0 unmonitored]

Then I made and out bound call and I got my iax to show up again
dcerouter*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
{My number}/04384  202.180.76.166  (S)  255.255.255.255  4569          UNKNOWN
1 iax2 peers [0 online, 1 offline, 0 unmonitored]

When I call in this is what shows up
[Sep 11 06:18:18] ERROR[2224]: chan_iax2.c:4938 handle_call_token: Call rejected, CallToken Support required. If unexpected, resolve by placing address 202.180.76.166 in the calltokenoptional list or setting user 043845842 requirecalltoken=no


Thanks again for looking at this.
C