Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

viernes, 30 de julio de 2021

FreePBX changing Asterisk version

 


Saltar al final de los metadatos
Ir al inicio de los metadatos

The FreePBX Distro has some built in features to allow you to change the Major Asterisk version you are using.

For example the 6.12.65 release track supports Asterisk 1.8, 11, 12 and 13

To change which Major Asterisk release you are using type;

asterisk-version-switch

 

You will then be prompted to pick which Asterisk Version you would like to switch to

Once the switch has been completed you will be informed which Version you are running and that Asterisk is restarting.

FreePBX will then perform a reload and re-write all the configuration files based on the version of Asterisk you switch to.

You can verify the running version of Asterisk at the bash prompt with:

#  asterisk -x "core show version"
Asterisk 13.9.1 built by mockbuild @ jenkins2.schmoozecom.net on a x86_64 running Linux on 2016-05-13 20:33:39 UTC

If the old Asterisk version is still shown, you can restart with:

fwconsole restart

The final step is to reload the system dial plan:

fwconsole reload

viernes, 23 de julio de 2021

block calls based on a blacklist file

 exten => _X.,1,NoOp(${CALLERID(num)}-${EXTEN})

same=>n,Set(BAN=${SHELL(cat /home/centos/spam.conf  | grep -w -F ${CALLERID(num)} | wc -l)})

same=>n,ExecIf($[${BAN}>0]?hangup())

same=>n,Noop(***${BAN}***)




*content of  /home/centos/spam.conf **

188222
22222
33333

lunes, 28 de junio de 2021

FreePBX yumwrapper error

 I encountered the same thing after automatic module upgrades. I had two files located in: /dev/shm/yumwrapper/ I deleted those two files and things were happy again.

I don’t mean to offend, but I don’t know your level of Linux skill. Maybe this will help:
After logging into the server’s console (command line) enter the following two commands:

cd /dev/shm/yumwrapper/

(This will “change directory” into the directory noted in the error message.)

ls  

(That’s a lowercase letter L and this command will list any files in this directory.)

If there are any files listed, you need to delete them using the rm (remove) command. You could enter:

rm *

fwconsole restart

viernes, 18 de junio de 2021

fix asterisk libasteriskssl.so.1 error

locate files


ldd /usr/sbin/asterisk


then copy then 

 cp /usr/lib64/libasteriskpj.so.2  /lib/x86_64-linux-gnu/


cp /lib/x86_64-linux-gnu/libasteriskssl.so.1 /lib/x86_64-linux-gnu/


ldconfig


reboot

lunes, 19 de abril de 2021

Asterisk Privacy: id header

 


[from-internal-custom]

exten=>_+9./101,1,Noop(*******************************************)

same=>n,SIPAddHeader(Privacy: id)

same=>n,goto(from-internal,+${EXTEN:2},1)

same=>n,hangup()

CALLERID

jueves, 4 de marzo de 2021

asterisk incrementing

[audio-admin]

  exten=>_x.,1,Answer()

  same=>n,Noop( ******* ${DB(test/count)} ***)

  same=>n,GotoIf($[${DB(test/count)} >4]?del)

  same=>n,GotoIf($[${DB(test/count)} >0]?inc)

  same =>n,Set(DB(test/count)=1)

  same=>n,Set(COUNT=${DB(test/count)})

  same => n,SayNumber(${COUNT})

  same=>n,hangup()


 same => n(inc),Set(DB(test/count)=$[${DB(test/count)} + 1])

   same=>n,Set(COUNT=${DB(test/count)})

  same => n,SayNumber(${COUNT})

      same=>n,hangup()



same=>n(del),Set(del=${DB_DELETE(test/count)})

same=>n,playback(im-sorry)

same=>n,hangup()