Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Bug Report

Bug Report

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 94 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    rweaver
    wrote on last edited by
    #1

    If your extensions start with 0 the shell script (autoconfig-users-freepbx.sh) fails because bash interprets leading 0's as octal and you get the following error:

    /usr/local/fop2/autoconfig-users-freepbx.sh: line 11: 06997: value too great for base (error token is "06997")

    You can of course put a leading 10# on the appropriate entities to force it to read them as base 10 but then it strips leading 0. This is kludgey and should probably be written another way instead of just forcing to base 10 since that doesn't really have the desired effect either.

    11c11
    < eval `cat /etc/asterisk/voicemail.conf | grep -v "^\;" | grep "=>" | cut -d, -f1 | sed 's/ //g' | sed  's/\([^=]*\)=>\(.*\)/Fop2Clave[\1]=\2;/g'`
    ---
    > eval `cat /etc/asterisk/voicemail.conf | grep -v "^\;" | grep "=>" | cut -d, -f1 | sed 's/ //g' | sed  's/\([^=]*\)=>\(.*\)/Fop2Clave[10#\1]=\2;/g'`
    30c30
    < echo -n $LINEA | sed 's/EMPTYSECRET/'${Fop2Clave[${MYEXTEN}]}'/g' | sed 's/: /:/g'
    ---
    > echo -n $LINEA | sed 's/EMPTYSECRET/'${Fop2Clave[10#${MYEXTEN}]}'/g' | sed 's/: /:/g'
    
    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Thanks for the report, this is already fixed for the upcoming release using another method. If you need the fixed script please contact me directly as it is quite large and it will probably break if I post it here.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups