freepbx update...

Discussion in 'General' started by roque.m, Mar 27, 2008.

  1. roque.m

    Joined:
    Mar 18, 2008
    Messages:
    25
    Likes Received:
    0
    Hi there... I don't know if someone is having the same problem, after doing the update
    in freepbx no calls is possible between extensions... I found this at freepbx...

    http://freepbx.org/forum/freepbx/beta-p ... -voicemail

    after adding (normdial) in extension.conf it worked for me ...

    exten => s,n(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

    I hope it helps someone...

    bye
     
  2. lek

    lek Guest

    Thanks for this info roque.
     
  3. chrisbryant

    Joined:
    Apr 25, 2008
    Messages:
    8
    Likes Received:
    0
    Thanks for the info, this helped me as well! I couldn't dial between extensions internally, but everything else was working fine. Here are the detailed steps in case it helps anyone as well:

    1.) open this file (using nano or vi) /etc/asterisk.elastix/extensions.conf and go to this line (line #69 for me:)

    exten => s,10,Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

    now change it to the following (just adding in "(normdial)" after the "s,10":)
    exten => s,10(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null

    2.) For me there are two separate extensions.conf files. The other one is at /etc/asterisk/extensions.conf I'm not sure which config file is used, so I edited both of them to be safe, you may also need to do the same edit that file as well.

    3.) Restart Asterisk (run as root or use sudo:)
    /etc/init.d/asterisk restart


    That's it, you should be finished and dialing between extensions should now work.

    Thanks,
    Chris
     
  4. nothings_found

    Joined:
    Nov 5, 2007
    Messages:
    72
    Likes Received:
    0
    Actually the best way to fix this is to do it correctly. You are supposed to have sin links from your /etc/asterisk/.... to /var/www/html/admin/modules/core/etc/

    If you syn link those files It will make sure that updates to FreePBX will not break your system due to files not being updated with the correct context etc..

    For Example:

    Code:
    [root@voip asterisk]# ls -la
    total 884
    drwxrwxr-x  2 asterisk asterisk  4096 Apr 24 10:39 .
    drwxr-xr-x 74 root     root      4096 Apr 26 04:02 ..
    -rwxrwxr-x  1 asterisk asterisk 22290 Mar 30 19:54 a2billing.conf
    -rw-rw-rw-  1 asterisk asterisk     2 Mar 30 19:54 additional_a2billing_iax.conf
    -rw-rw-rw-  1 asterisk asterisk     2 Mar 30 19:54 additional_a2billing_sip.conf
    -rw-rw-r--  1 asterisk asterisk   140 Apr  2 09:57 adsi.conf
    -rw-rw-r--  1 asterisk asterisk   840 Apr  2 09:57 adtranvofr.conf
    -rw-rw-r--  1 asterisk asterisk  2724 Apr  2 09:57 agents.conf
    -rw-rw-r--  1 asterisk asterisk  2227 Apr  2 09:57 alarmreceiver.conf
    -rw-rw-r--  1 asterisk asterisk  2675 Apr  2 09:57 alsa.conf
    -rw-rw-r--  1 asterisk asterisk   767 Apr  2 09:57 amd.conf
    -rw-rw-r--  1 asterisk asterisk  8523 Dec  8 11:11 applications.conf
    -rw-rw-r--  1 asterisk asterisk  3260 Apr  2 09:57 asterisk.adsi
    -rw-rw-r--  1 asterisk asterisk   331 Dec  8 11:11 asterisk.conf
    -rw-rw-r--  1 asterisk asterisk  1906 Apr  2 09:57 asterisk.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk   360 Apr  5 19:01 cbmysql.conf
    -rw-rw-r--  1 asterisk asterisk  7322 Apr  2 09:57 cdr.conf
    -rw-rw-r--  1 asterisk asterisk   573 Apr  2 09:57 cdr_custom.conf
    -rw-rw-r--  1 asterisk asterisk    59 Apr  2 09:57 cdr_manager.conf
    -rw-rw-r--  1 asterisk asterisk   712 Dec  8 11:11 cdr_mysql.conf
    -rw-rw-r--  1 asterisk asterisk   221 Apr  2 09:57 cdr_odbc.conf
    -rw-rw-r--  1 asterisk asterisk   204 Apr  2 09:57 cdr_pgsql.conf
    -rw-rw-r--  1 asterisk asterisk   171 Apr  2 09:57 cdr_tds.conf
    -rw-rw-r--  1 asterisk asterisk  1655 Apr  2 09:57 codecs.conf
    -rw-rw----  1 asterisk asterisk    20 Apr 24 10:37 disa-1.conf
    -rw-rw-r--  1 asterisk asterisk   190 Apr  2 09:57 dnsmgr.conf
    -rw-rw-r--  1 asterisk asterisk  7744 Apr  2 09:57 dundi.conf
    -rw-rw-r--  1 asterisk asterisk    50 Mar 17  2005 enum.conf
    -rw-rw-r--  1 asterisk asterisk  1506 Apr  2 09:57 extconfig.conf
    -rw-rw-rw-  1 asterisk asterisk   122 Mar 30 19:54 extensions_a2billing.conf
    -rw-rw-r--  1 asterisk asterisk 76078 Apr 24 10:37 extensions_additional.conf
    -rw-rw-r--  1 asterisk asterisk 12230 Apr  2 09:57 extensions.ael
    lrwxrwxrwx  1 asterisk asterisk    52 Mar  6 21:03 extensions.conf -> /var/www/html/admin/modules/core/etc/extensions.conf
    -rw-rw-r--  1 asterisk asterisk 69155 Oct 18  2007 extensions.conf.orig
    -rw-rw-r--  1 asterisk asterisk 22516 Apr  2 09:57 extensions.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk   679 Apr 14 22:36 extensions_custom.conf
    -rw-rw-r--  1 asterisk asterisk  1077 Mar 24  2005 extensions_custom.conf.sample
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 extensions_override_freepbx.conf
    -rw-rw-r--  1 asterisk asterisk   119 Apr 24 10:37 features_applicationmap_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:59 features_applicationmap_custom.conf
    lrwxrwxrwx  1 asterisk asterisk    50 Mar  6 21:02 features.conf -> /var/www/html/admin/modules/core/etc/features.conf
    -rw-rw-r--  1 asterisk asterisk   524 Dec 19  2006 features.conf.0
    -rw-rw-r--  1 asterisk asterisk  5301 Apr  2 09:57 features.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk   167 Apr 24 10:37 features_featuremap_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:59 features_featuremap_custom.conf
    -rw-rw-r--  1 asterisk asterisk   186 Apr 24 10:37 features_general_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 features_general_custom.conf
    -rw-rw-r--  1 asterisk asterisk   929 Apr  2 09:57 festival.conf
    -rw-rw-r--  1 asterisk asterisk  3755 Apr  2 09:57 followme.conf
    -rw-rw-r--  1 asterisk asterisk  1519 Apr  2 09:57 func_odbc.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 globals_custom.conf
    -rw-rw-r--  1 asterisk asterisk   479 Apr  2 09:57 gtalk.conf
    -rw-rw-r--  1 asterisk asterisk  7304 Apr  2 09:57 h323.conf
    -rw-rw-r--  1 asterisk asterisk   989 Apr  2 09:57 http.conf
    -rw-rw-r--  1 asterisk asterisk   646 Apr 24 10:37 iax_additional.conf
    lrwxrwxrwx  1 asterisk asterisk    45 Mar  6 21:02 iax.conf -> /var/www/html/admin/modules/core/etc/iax.conf
    -rw-rw-r--  1 asterisk asterisk   361 Sep 15  2007 iax.conf.orig
    -rw-rw-r--  1 asterisk asterisk 14715 Apr  2 09:57 iax.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 iax_custom.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 21:04 iax_custom_post.conf
    -rw-rw-r--  1 asterisk asterisk   220 Apr 24 10:37 iax_general_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 iax_general_custom.conf
    -rw-rw-r--  1 asterisk asterisk  2354 Apr  2 09:57 iaxprov.conf
    -rw-rw-r--  1 asterisk asterisk   119 Apr 24 10:37 iax_registrations.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 iax_registrations_custom.conf
    -rw-rw-r--  1 asterisk asterisk 14404 Apr 24 10:37 indications.conf
    -rw-rw-r--  1 asterisk asterisk   729 Apr  2 09:57 jabber.conf
    -rw-rw-r--  1 asterisk asterisk   101 Apr 24 10:37 localprefixes.conf
    -rw-rw-r--  1 asterisk asterisk   844 Oct 13  2004 logger.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 manager_additional.conf
    -rw-rw-r--  1 asterisk asterisk   339 Dec  8 11:11 manager.conf
    -rw-rw-r--  1 asterisk asterisk  1132 Mar  7 09:56 manager_custom.conf
    -rw-rw-r--  1 asterisk asterisk   189 Apr 24 10:37 meetme_additional.conf
    -rw-rw-r--  1 asterisk asterisk    40 Oct 13  2004 meetme.conf
    -rw-rw-r--  1 asterisk asterisk  4105 Apr  2 09:57 mgcp.conf
    -rw-rw-r--  1 asterisk asterisk  9493 Apr  2 09:57 misdn.conf
    -rw-rw-r--  1 asterisk asterisk  1774 Oct 13  2004 modem.conf
    -rw-rw-r--  1 asterisk asterisk  1536 Dec  8 11:11 modules.conf
    -rw-rw-r--  1 asterisk asterisk   980 Mar 14 22:46 modules.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk    91 Mar 10 11:37 musiconhold_additional.conf
    -rw-rw-r--  1 asterisk asterisk   208 Sep 15  2006 musiconhold.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 musiconhold_custom.conf
    -rw-rw-r--  1 asterisk asterisk  1261 Apr  2 09:57 muted.conf
    -rw-rw-r--  1 asterisk asterisk  1961 Apr  2 09:57 osp.conf
    -rw-rw-r--  1 asterisk asterisk  3594 Apr  2 09:57 oss.conf
    -rw-rw----  1 asterisk asterisk   132 Mar  6 20:56 parking_additional.inc
    -rw-rw-r--  1 asterisk asterisk  1418 Oct 13  2004 phone.conf
    -rw-rw-r--  1 asterisk asterisk    90 Oct 13  2004 phpagi.conf
    -rw-rw-r--  1 asterisk asterisk    81 Apr  2 09:57 privacy.conf
    -rw-rw-r--  1 asterisk asterisk   483 Apr 24 10:37 queues_additional.conf
    -rw-rw-r--  1 asterisk asterisk   522 Aug  6  2007 queues.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 queues_custom.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 queues_custom_general.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 queues_general_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 queues_post_custom.conf
    -rw-rw-r--  1 asterisk asterisk   436 Dec  8 11:11 res_mysql.conf
    -rw-rw-r--  1 asterisk asterisk  1288 Apr  2 09:57 res_odbc.conf
    -rw-rw-r--  1 asterisk asterisk   367 Apr  2 09:57 res_pgsql.conf
    -rw-rw-r--  1 asterisk asterisk   244 Apr  2 09:57 res_snmp.conf
    -rw-rw-r--  1 asterisk asterisk  7652 Apr  2 09:57 rpt.conf
    -rw-rw-r--  1 asterisk asterisk   124 Apr 26  2006 rtp.conf
    -rw-rw-r--  1 asterisk asterisk  6893 Apr  2 09:57 say.conf
    -rw-rw-r--  1 asterisk asterisk  1732 Apr 24 10:37 sip_additional.conf
    lrwxrwxrwx  1 asterisk asterisk    45 Mar  6 21:02 sip.conf -> /var/www/html/admin/modules/core/etc/sip.conf
    -rw-rw-r--  1 asterisk asterisk  1352 Aug  9  2007 sip.conf.orig
    -rw-rw-r--  1 asterisk asterisk 31403 Apr  2 09:57 sip.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk   501 Apr 25 08:59 sip_custom.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 21:04 sip_custom_post.conf
    -rw-rw-r--  1 asterisk asterisk   331 Apr 24 10:37 sip_general_additional.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 sip_general_custom.conf
    -rw-rw-r--  1 asterisk asterisk   118 Apr 22 20:33 sip_nat.conf
    -rw-rw-r--  1 asterisk asterisk   317 Apr  2 09:57 sip_notify.conf
    -rw-rw-r--  1 asterisk asterisk   231 Apr 24 10:37 sip_registrations.conf
    -rw-rw-r--  1 asterisk asterisk     0 Mar  6 20:56 sip_registrations_custom.conf
    -rw-rw-r--  1 asterisk asterisk  3654 Apr  2 09:57 skinny.conf
    -rw-rw-r--  1 asterisk asterisk  6691 Apr  2 09:57 sla.conf
    -rw-rw-r--  1 asterisk asterisk  2665 Apr  2 09:57 smdi.conf
    -rw-rw-r--  1 asterisk asterisk  1384 Apr  2 09:57 telcordia-1.adsi
    -rw-rw-r--  1 asterisk asterisk   598 Apr  2 09:57 udptl.conf
    -rw-rw-r--  1 asterisk asterisk   496 Apr  2 09:57 unicall.conf
    -rw-rw-r--  1 asterisk asterisk  1804 Apr  2 09:57 users.conf
    -rw-rw-r--  1 asterisk asterisk   396 Apr 17 01:10 vm_email.inc
    -rw-rw-r--  1 asterisk asterisk   863 Apr 17 01:10 vm_general.inc
    -rw-rw-r--  1 asterisk asterisk   459 Apr 17 01:10 voicemail.conf
    -rw-rw-r--  1 asterisk asterisk    67 Oct 13  2004 voicemail.conf.template
    -rw-rw-r--  1 asterisk asterisk  2772 Apr  2 09:57 vpb.conf
    -rw-rw-r--  1 asterisk asterisk   401 Apr 24 10:37 zapata_additional.conf
    -rw-rw-r--  1 asterisk asterisk   886 Apr 14 10:55 zapata-auto.conf
    -rw-rw-r--  1 asterisk asterisk   886 Apr 14 10:55 zapata-auto.conf.bak
    -rw-rw-r--  1 asterisk asterisk  1284 Apr 12 15:29 zapata-channels.conf
    -rw-rw-r--  1 asterisk asterisk  1273 Mar 28 20:28 zapata-channels.conf.bak
    -rw-rw-r--  1 asterisk asterisk  1097 Apr 13 18:49 zapata.conf
    -rw-rw-r--  1 asterisk asterisk   975 Mar 13 20:15 zapata.conf.bak
    -rw-rw-r--  1 asterisk asterisk 23873 Apr  2 09:57 zapata.conf.rpmnew
    -rw-rw-r--  1 asterisk asterisk   699 May 10  2005 zapata.conf.template
    

    Also you need to make sure your agi files also link to the free-pbx version.

    Code:
    [root@voip agi-bin]# ls -la
    total 420
    drwxrwxr-x  3 asterisk asterisk  4096 Apr 28 17:06 .
    drwxrwxr-x 11 asterisk asterisk  4096 Apr  2 09:56 ..
    -rwxrwxr-x  1 asterisk asterisk 43831 Jul  4  2007 a2billing.php
    -rwxrwxr-x  1 asterisk asterisk  1742 Apr  2 09:56 agi-test.agi
    lrwxrwxrwx  1 root     root        55 Apr 28 17:05 checksound.agi -> /var/www/html/admin/modules/core/agi-bin/checksound.agi
    -rwxr-xr--  1 asterisk asterisk  1872 Apr 24 10:37 checksound.agi.orig.no.link
    lrwxrwxrwx  1 root     root        56 Apr 28 17:03 dialparties.agi -> /var/www/html/admin/modules/core/agi-bin/dialparties.agi
    -rwxr-xr--  1 asterisk asterisk 26278 Apr 24 10:37 dialparties.agi.orig.no.link
    lrwxrwxrwx  1 root     root        50 Apr 28 17:05 directory -> /var/www/html/admin/modules/core/agi-bin/directory
    -rwxr-xr--  1 asterisk asterisk 13321 Apr 24 10:37 directory.orig.no.link
    -rwxrwxr-x  1 asterisk asterisk  9410 Apr  2 09:57 eagi-sphinx-test
    -rwxrwxr-x  1 asterisk asterisk  8413 Apr  2 09:57 eagi-test
    lrwxrwxrwx  1 root     root        55 Apr 28 17:06 enumlookup.agi -> /var/www/html/admin/modules/core/agi-bin/enumlookup.agi
    -rwxr-xr--  1 asterisk asterisk  3617 Apr 24 10:37 enumlookup.agi.orig.no.link
    -rwxrwxr-x  1 asterisk asterisk   703 Jan  5  2007 festival-script.pl
    -rwxrwxr-x  1 asterisk asterisk   784 Jan  5  2007 festival-weather-script.pl
    lrwxrwxrwx  1 root     root        55 Apr 28 17:06 fixlocalprefix -> /var/www/html/admin/modules/core/agi-bin/fixlocalprefix
    -rwxr-xr--  1 asterisk asterisk  7704 Apr 24 10:37 fixlocalprefix.orig.no.link
    -rwxrwxr-x  1 asterisk asterisk 28770 Oct 20  2006 imap.agi
    -rwxrwxr-x  1 asterisk asterisk 14530 Apr  2 09:56 jukebox.agi
    drwxrwxr-x  7 asterisk asterisk  4096 Apr  5 12:39 libs_a2billing
    lrwxrwxrwx  1 root     root        61 Apr 28 17:06 list-item-remove.php -> /var/www/html/admin/modules/core/agi-bin/list-item-remove.php
    -rwxr-xr--  1 asterisk asterisk  1263 Apr 24 10:37 list-item-remove.php.orig.no.link
    -rwxrwxr-x  1 asterisk asterisk  3659 Jan  5  2007 nv-weather.php
    -rwxr-xr--  1 asterisk asterisk 10220 Apr 24 10:37 pbdirectory
    -rwxr-xr--  1 asterisk asterisk 26638 Apr 24 10:37 phpagi-asmanager.php
    -rwxr-xr--  1 asterisk asterisk 65766 Apr 24 10:37 phpagi.php
    lrwxrwxrwx  1 root     root        55 Apr 28 17:06 recordingcheck -> /var/www/html/admin/modules/core/agi-bin/recordingcheck
    -rwxr-xr--  1 asterisk asterisk  3953 Apr 24 10:37 recordingcheck.orig.no.link
    lrwxrwxrwx  1 root     root        59 Apr 28 17:06 user_login_out.agi -> /var/www/html/admin/modules/core/agi-bin/user_login_out.agi
    -rwxr-xr--  1 asterisk asterisk  9969 Apr 24 10:37 user_login_out.agi.orig.no.link
    -rwxrwxr-x  1 asterisk asterisk  3991 Jan  5  2007 wakeconfirm.agi
    -rwxrwxr-x  1 asterisk asterisk 20875 Jan  5  2007 wakeup.php
    -rwxrwxr-x  1 asterisk asterisk  1248 Jan  5  2007 weather.agi
    
     
  5. chrisbryant

    Joined:
    Apr 25, 2008
    Messages:
    8
    Likes Received:
    0
    Thanks for the additional info! I checked and my install doesn't have as many the same ones symlinked, just extensions.conf.orig, features.conf, and zoip.conf. None of the agi files in /var/lib/asterisk/agi-bin/ are symlined either.

    Isn't this something that Elastix should be doing or setup to handle? Maybe I should check and file a bug if it isn't listed.
     
  6. N7OKN

    Joined:
    Sep 3, 2007
    Messages:
    13
    Likes Received:
    0
    Can someone please give a step by step guide on how to fix this syn link issue? I'm lost on what syn links are or how to fix it.
     
  7. oneobserver

    Joined:
    Jun 2, 2008
    Messages:
    64
    Likes Received:
    0
    I wrote a script that compiles all the things that have been said to fix this and it appears to work correctly. Put the following in a script, make it executable and run it:

    #!/bin/sh
    mkdir /var/www/html/recordings
    mkdir /var/www/html/_asterisk
    chown -R asterisk:asterisk /var/www/html/recordings /var/www/html/_asterisk

    mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.old
    mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.old
    mv /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.old
    mv /var/lib/asterisk/bin/fax-process.pl /var/lib/asterisk/bin/fax-process.pl.old
    /var/lib/asterisk/bin/retrieve_conf

    amportal restart

    -=-=-= End Script
     
  8. N7OKN

    Joined:
    Sep 3, 2007
    Messages:
    13
    Likes Received:
    0
    Thank you for the script. I ran it and most of it returned no errors, the last few lines coughed up a hairball:

    [root@elastix ~]# #!/bin/sh
    [root@elastix ~]# mkdir /var/www/html/recordings

    mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.old
    mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.old
    mv /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.old
    mv /var/lib/asterisk/bin/fax-process.pl /var/lib/asterisk/bin/fax-process.pl.old
    /var/lib/asterisk/bin/retrieve_conf
    mkdir: cannot create directory `/var/www/html/recordings': File exists
    [root@elastix ~]# mkdir /var/www/html/_asterisk
    mkdir: cannot create directory `/var/www/html/_asterisk': File exists
    [root@elastix ~]# chown -R asterisk:asterisk /var/www/html/recordings /var/www/html/_asterisk
    [root@elastix ~]#
    [root@elastix ~]# mv /etc/asterisk/sip.conf /etc/asterisk/sip.conf.old
    [root@elastix ~]# mv /etc/asterisk/iax.conf /etc/asterisk/iax.conf.old
    [root@elastix ~]# mv /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.old
    [root@elastix ~]# mv /var/lib/asterisk/bin/fax-process.pl /var/lib/asterisk/bin/fax-process.pl.old
    [root@elastix ~]# /var/lib/asterisk/bin/retrieve_conf

    Checking for PEAR DB..OK
    Checking for PEAR Console::Getopt..OK
    Checking for /etc/amportal.conf ..OK
    Bootstrapping /etc/amportal.conf ..OK
    Parsing /etc/amportal.conf ..OK
    Parsing /etc/asterisk/asterisk.conf ..OK
    Connecting to database..OK
    Connecting to Asterisk manager interface..OK
    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 = elastix456
    Use of uninitialized value in string eq at /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.pl line 415.
    no crontab for root
    no crontab for root
    [ERROR] Error code 0: trying to create empty file /etc/asterisk/iax_custom_post.conf
    [ERROR] Error code 0: trying to create empty file /etc/asterisk/sip_custom_post.conf
    Please update your modules and reload Asterisk by browsing to your server.
    [root@elastix ~]#
    [root@elastix ~]# amportal restart
     
  9. N7OKN

    Joined:
    Sep 3, 2007
    Messages:
    13
    Likes Received:
    0
    Well it seems to have solved the immediate problem anyway. I did however edit the extensions.conf file as previously described but I don't know which action fixed the problem.

    Thank you Elastix community!
     
  10. N7OKN

    Joined:
    Sep 3, 2007
    Messages:
    13
    Likes Received:
    0
    Well all this has seemed to create an unusual error:
    Whenever I type amportal restart, I cannot use any extensions or trunks. All I get is congestion when I try to dial anything. Only a reboot solves the problem. The "red bar" click seems to be OK though.
     
  11. N7OKN

    Joined:
    Sep 3, 2007
    Messages:
    13
    Likes Received:
    0
    From n7okn
    One more bit of info... I checked the extensions.conf file, and the dialplans have changed. The numbering of the lines have changed. Here is a sample of before and after running the script:



    Before:

    exten => s,1,GotoIf($["${MOHCLASS}" = ""]?dial)
    exten => s,2,SetMusicOnHold(${MOHCLASS})
    exten => s,3(dial),AGI(dialparties.agi)
    exten => s,4,NoOp(Returned from dialparties with no extensions to call and DIALSTATUS: ${DIALSTATUS})

    exten => s,10(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null
    exten => s,11,Set(DIALSTATUS=${IF($["${DIALSTATUS_CW}"!="" ]?${DIALSTATUS_CW}:${DIALSTATUS})})

    exten => s,20,NoOp(Returned from dialparties with hunt groups to dial )
    exten => s,21,Set(HuntLoop=0)
    exten => s,22,GotoIf($[${HuntMembers} >= 1]?30 ) ; if this is from rg-group, don't strip prefix
    exten => s,23,NoOp(Returning there are no members left in the hunt group to ring)

    exten => s,30,Set(HuntMember=HuntMember${HuntLoop})
    exten => s,31,GotoIf($[$["${CALLTRACE_HUNT}" != "" ] & $["${RingGroupMethod}" = "hunt" ]]?32:35 ) ; Set CAll Trace for Hunt member we are going to call
    exten => s,32,Set(CT_EXTEN=${CUT(ARG3,,$[${HuntLoop} + 1])})
    exten => s,33,Set(DB(CALLTRACE/${CT_EXTEN})=${CALLTRACE_HUNT})
    exten => s,34,Goto(s,42)



    After:
    exten => s,1,GotoIf($["${MOHCLASS}" = ""]?dial)
    exten => s,n,SetMusicOnHold(${MOHCLASS})
    exten => s,n(dial),AGI(dialparties.agi)
    exten => s,n,NoOp(Returned from dialparties with no extensions to call and DIALSTATUS: ${DIALSTATUS})

    exten => s,n+2(normdial),Dial(${ds}) ; dialparties will set the priority to 10 if $ds is not null
    exten => s,n,Set(DIALSTATUS=${IF($["${DIALSTATUS_CW}"!="" ]?${DIALSTATUS_CW}:${DIALSTATUS})})

    exten => s,20(huntdial),NoOp(Returned from dialparties with hunt groups to dial )
    exten => s,n,Set(HuntLoop=0)
    exten => s,n(a22),GotoIf($[${HuntMembers} >= 1]?a30) ; if this is from rg-group, don't strip prefix
    exten => s,n,NoOp(Returning there are no members left in the hunt group to ring)



    Is this something I need to fix or is my problem unrelated? The only other thing I did was to successfully set up incomming fax.
     
  12. lek

    lek Guest

    Hello Folks!,

    The changes posted by oneobserver will be included in Elastix 1.1
     
  13. accesip

    Joined:
    May 16, 2007
    Messages:
    113
    Likes Received:
    0
    Hi N7OKN,
    I followed same instruction and get same problem: all extentions was unreachable. I've done a reboot, now all works!

    FreePBX says nothing
    Great

    Brice
     
  14. p_lindheimer

    Joined:
    Jun 7, 2008
    Messages:
    1
    Likes Received:
    0
    Let me set the record straight. Elastix had mistakingly put hard copies of files like extensions.conf, sip.conf, iax.conf and several others that are automatically symlinked. If a hard copy exists, then the symlink will not overwrite it. This is on purpose, in case you want to do your own mods. If you have this issue, it will be reported in the notification panel. Those notifications are there for a reason, if you don't understand one it probably means something is wrong. In the past, the notification panel only referenced one file at a time, so if you fixed one, you would then see the error for the next. That will be fixed in an upcoming updated to framework.
    As far as the earlier comment that the files in /var/lib/asterisk/agi-bin should be symlinked, that is not correct. (I wish it was). Those are copied from the module and not symlinked because of some strange issues that were occurring some time ago if they were symlinked. (Some systems failed). If you don't want them copied, you would write protect them.
    Lastly - the script that was suggested that calls retrieve_conf and some of the other solutions, be careful. If you are running as root you may cause more problems.
    The correct way to fix all these issues is to delete (or rename) the file that is being referenced in the notification panel, then press 'Apply Configuration Changes' and the symlink will be done. Then check the notification panel again for any other problem files.

    Regards,
    Philippe Lindheimer
    FreePBX Project Leader
     

Share This Page