Extension 403 "No matching peer found"

I’m having an awful problem that I cannot track down, I’m running Asterisk 1.8.7.1 running on freepbx (x64 edition).

When I go to the web GUI and make an extension (1000), I cannot register as it after applying settings. My phone reports a 403 unauthorized, that is odd…

I sit in the console and see the configs get reprocessed, but can’t find a user:

freepbxCLI> sip show users
Username Secret Accountcode Def.Context ACL ForcerPort
freepbx
CLI>

My configuration barely differs from the default:

Extension: 1000
Display Name: (My Name)
Secret: aa1000

So I check my configs:

[[email protected] asterisk]# grep -ni “1000” *
indications.conf:16:callwaiting = 440/300,0/10000
rtp.conf:10:rtpstart=10000
sip.conf:64:;1000 defined in your system you start by creating a line 1000 in this
[[email protected] asterisk]#

Ack, where is my extension?!

What is in sip_additional.conf?

[[email protected] asterisk]# cat sip_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;

[[email protected] asterisk]# ls -lh sip_additional.conf
-rw-rw-r-- 1 asterisk asterisk 418 Nov 29 21:13 sip_additional.conf
[[email protected] asterisk]#


Didn’t screw up the permissions or anything weird like that. Are we not supposed to use the 64-bit edition or something and it has bugs?


SQL dump too:

mysql> SELECT * FROM extensions;
±--------------------±----------±---------±--------------------±---------------------------±----------------------±------+
| context | extension | priority | application | args | descr | flags |
±--------------------±----------±---------±--------------------±---------------------------±----------------------±------+
| outrt-001-9_outside | _9. | 1 | Macro | dialout-trunk,1,${EXTEN:1} | NULL | 0 |
| outrt-001-9_outside | _9. | 2 | Macro | outisbusy | No available circuits | 0 |
| outbound-allroutes | include | 1 | outrt-001-9_outside | | | 2 |
±--------------------±----------±---------±--------------------±---------------------------±----------------------±------+
3 rows in set (0.00 sec)

mysql> SELECT * FROM sip;
±-----±------------±----------------±------+
| id | keyword | data | flags |
±-----±------------±----------------±------+
| 1000 | record_out | On-Demand | 28 |
| 1000 | record_in | On-Demand | 27 |
| 1000 | callerid | device <1000> | 26 |
| 1000 | account | 1000 | 25 |
| 1000 | permit | 0.0.0.0/0.0.0.0 | 24 |
| 1000 | deny | 0.0.0.0/0.0.0.0 | 23 |
| 1000 | mailbox | [email protected] | 22 |
| 1000 | accountcode | | 21 |
| 1000 | dial | SIP/1000 | 20 |
| 1000 | allow | | 19 |
| 1000 | disallow | | 18 |
| 1000 | pickupgroup | | 17 |
| 1000 | callgroup | | 16 |
| 1000 | encryption | no | 15 |
| 1000 | transport | udp | 14 |
| 1000 | qualifyfreq | 60 | 13 |
| 1000 | qualify | yes | 12 |
| 1000 | port | 5060 | 11 |
| 1000 | nat | no | 10 |
| 1000 | type | friend | 9 |
| 1000 | sendrpid | no | 8 |
| 1000 | trustrpid | yes | 7 |
| 1000 | host | dynamic | 6 |
| 1000 | context | from-internal | 5 |
| 1000 | canreinvite | no | 4 |
| 1000 | dtmfmode | rfc2833 | 3 |
| 1000 | secret | aa1000 | 2 |
±-----±------------±----------------±------+
27 rows in set (0.02 sec)

mysql>

Someone else is reporting this issue also, this is the 64 bit distro?

You installed from scratch?

Any way you can forward SSH port and let me have a look at the box this afternoon?

Scott

That is correct, from the ISO located here:

http://downloads.freepbxdistro.org/ISO/FreePBX-Distro-Net-64bit-1.87.210.57.iso

However, the box is behind our Firewall (no port forwarding into our network), and I don’t have access to move it anywhere where it can be outside of our firewall, however it IS on a VM (VMWare, proof of concept for the company)… I can drop the VMDK on my server and let you download it if you have an environment to work on that in…

I don’t have time to do that, I am going to load up a local copy and see if I can replicate.

I just need SSH port forwarded and I have a static IP. Or do you have an SSL VPN? We could even do a desktop share session.

Since two people have reported this I really want to get the best information I can back to the developers.

I did some digging in the source, found the update routine, ran it, got this back:


array(29) { [0]=> string(70) “found language dir fr for directory, not installed on system, skipping” [1]=> string(102) “PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326” [2]=> string(102) “PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326” [3]=> string(43) “Added to globals: ASTETCDIR = /etc/asterisk” [4]=> string(55) “Added to globals: ASTMODDIR = /usr/lib/asterisk/modules” [5]=> string(50) “Added to globals: ASTVARLIBDIR = /var/lib/asterisk” [6]=> string(55) “Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin” [7]=> string(51) “Added to globals: ASTSPOOLDIR = /var/spool/asterisk” [8]=> string(47) “Added to globals: ASTRUNDIR = /var/run/asterisk” [9]=> string(47) “Added to globals: ASTLOGDIR = /var/log/asterisk” [10]=> string(36) “Added to globals: CWINUSEBUSY = true” [11]=> string(36) “Added to globals: AMPMGRUSER = admin” [12]=> string(37) “Added to globals: AMPMGRPASS = amp111” [13]=> string(37) “Added to globals: AMPDBENGINE = mysql” [14]=> string(39) “Added to globals: AMPDBHOST = localhost” [15]=> string(38) “Added to globals: AMPDBNAME = asterisk” [16]=> string(41) “Added to globals: AMPDBUSER = freepbxuser” [17]=> string(42) “Added to globals: AMPDBPASS = YVdyLfWyTaIy” [18]=> string(45) “Added to globals: VMX_CONTEXT = from-internal” [19]=> string(29) “Added to globals: VMX_PRI = 1” [20]=> string(40) “Added to globals: VMX_TIMEDEST_CONTEXT =” [21]=> string(41) “Added to globals: VMX_TIMEDEST_EXT = dovm” [22]=> string(38) “Added to globals: VMX_TIMEDEST_PRI = 1” [23]=> string(40) “Added to globals: VMX_LOOPDEST_CONTEXT =” [24]=> string(41) “Added to globals: VMX_LOOPDEST_EXT = dovm” [25]=> string(38) “Added to globals: VMX_LOOPDEST_PRI = 1” [26]=> string(30) “Added to globals: MIXMON_DIR =” [27]=> string(31) “Added to globals: MIXMON_POST =” [28]=> string(72) “Cannot create/overwrite config file: isymphony/op_buttons_additional.cfg” }

Did some more digging, found the script it runs to get config:


[[email protected] admin]# /var/lib/asterisk/bin/retrieve_conf
found language dir fr for directory, not installed on system, skipping
PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326
PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = freepbxuser
Added to globals: AMPDBPASS = YVdyLfWyTaIy
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
Cannot create/overwrite config file: isymphony/op_buttons_additional.cfg

Weird… isymphony exists in modules… so I do this:


[[email protected] admin]# cd modules
[[email protected] modules]# /var/lib/asterisk/bin/retrieve_conf
found language dir fr for directory, not installed on system, skipping
PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326
PHP Notice: Undefined offset: 8192 in /var/www/html/admin/libraries/utility.functions.php on line 326
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = freepbxuser
Added to globals: AMPDBPASS = YVdyLfWyTaIy
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
Notice: no Queues defined
Notice: no Conferences defined
Notice: no sip trunks defined
Notice: no iax trunks defined
Notice: no AMP Users defined
Please update your modules and reload Asterisk by browsing to your server.


And my sip_additional.conf now has this:


[[email protected] asterisk]# cat sip_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;

[1000]
deny=0.0.0.0/0.0.0.0
secret=aa1000
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/1000
[email protected]
permit=0.0.0.0/0.0.0.0
callerid=device <1000>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic

Yay! But… why is the admin control panel doing this? If anyone finds out before me that would be nice, I’m going to try to dig into this…

Should the admin control panel chdir into modules? If so, it’s not… If it isn’t, why is retrieve_conf assuming it’s in modules?

Oh and SkykingOH, thanks for your time attempting to help, this is an odd issue. I’m sure you’ll know the answer now that I have all the pieces to the problem (or we’ll be able to get this to the devs and fix whatever is wrong with FreePBX and iSymphony).

Of course, still can’t log in with the phone because I didn’t fix everything:

Created isymphony under /var/html/admin for a temporary band-aid fix, chmod it to asterisk:asterisk, save my settings, user shows up under “sip show users” command now.

Now we’re up and running. :slight_smile:

Is this a bug with isymphony, or a bug with FreePBX? Should a bug report be submitted with FreePBX because their system comes with isymphony? How are there only two of us with this issue?

I’m sitting on trac debating about submitting this… but I guess I’ll wait for SkykingOH’s opinion on this.

Bump, wondering if this should be reported and who to…