Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all 225826 articles
Browse latest View live

CLI way of getting bulk handler information

$
0
0

The phones I am only worried about are the internal phones. Since we are a school district, 911 calling from the classroom is a big safety concern.

I have to manually Bulk Handler Export, Extension and ClearyIP Device. Which will give me

Extension: I am getting Extension, Name and Account code (which I use to input the location of the phone, ie room 1)
ClearyIP Device: will give me Extension and Mac address

I have a nightly process that does the below.

  1. I am parsing all my network switch for the mac address tables to determine which mac-address (not just phones, I am gathering everything) is plugged into what port on the switch. Storing historical data in the event a device goes offline (dies, unplugs, etc)
  2. SSH into the Freepbx box and run asterisk -rx ‘pjsip show endpoints’, which will give me an extension and what IP it has registered.

Then when a user calls and says “My phone doesn’t work”, 90% of the time a reboot will fix the phone. I will run my script that will look up at the extension of the user, which will show the mac address (from ClearyIP Device table). Then it will find where the mac address is plugged into port ## on switch AB. It will then no power the port and repower the port on the switch. Then will rerun step 2, to see if that extension is registered again. (I also can be proactive and look for offline phones and give it a reboot to see if they come back up)

The manual part of the Bulk Handler is what I am trying to solve. Since other people on my team use this script, I do not update the Bulk Handler information to often. So if a tech replaces a phone due to damage or adds a phone. The script will not be able to find any information on it, since the new\replaced mac address is missining. If I can added “Bulk Handler export” part into my nightly script it will take the manual process out of this.

Hope that makes sense.


Backup and Restore from FreePBX12 to 15

$
0
0

We have newly integrated a FreePBX System of ver.15, and we have to copy all the settings from the current system to the new one. The problem is the version of the current system is 12. It seems difficult to restore the backup file we created from ver.12 to ver. 15. Could you kindly advise how we could do this?

"Function get_magic_quotes_gpc() is deprecated" when installing freepbx on gentoo

$
0
0

Installing FreePBX on Gentoo

Linux newpbx 5.4.97-gentoo-x86_64 #1 SMP Mon Mar 22 11:38:24 +05 2021 x86_64 Intel(R) Atom(TM) CPU D2550 @ 1.86GHz GenuineIntel GNU/Linux

Receive:
%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202021-03-26%2017-16-38

# fwconsole reload
Whoops\Exception\ErrorException: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in file /var/www/html/admin/modules/conferences/functions.inc.php on line 131
Stack trace:
  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/conferences/functions.inc.php:131
  2. Whoops\Run->handleError() /var/www/html/admin/bootstrap.php:362
  3. require_once() /var/www/html/admin/bootstrap.php:362
  4. require_once() /etc/freepbx.conf:9
  5. include_once() /var/lib/asterisk/bin/fwconsole:12

Asterisk was installed without problems and works, but with the installation of FreePBX 14 problems. Maybe you should choose 13 or 15 - there will be no such problem? Or build apache2.4.46 or php7.4.15 with other flags?

dev-lang/php apache2 cgi fpm acl bzip2 cli ctype curl embed filter ftp iodbc -libedit libressl mysql mysqli odbc pcntl pdo readline simplexml sockets spell sqlite ssl -threads tidy tokenizer truetype unicode webp xml xmlreader xmlwriter zip zlib jit gd posix iconv sysvipc mhash xpm imap

Responsive Firewall always blocks "good" external users

$
0
0

OK, I had an idea and made changes to the firewall code, but cannot test it because the file is not signed and the firewall won’t start.

Dev team - how are community members supposed to test firewall code?

CLI way of getting bulk handler information

$
0
0

Personally I would spend my efforts to find out why the phones are going off line, bad firmware, bad hardware whatever , out of many hundreds I have in my purview and , mostly remote, and we are speakinh years here,the only ones that have done that needed either a firmware update or a commit to trash .

Upload recorded call via ftp using macro?

$
0
0

Absolutely, but you will need either a modified or new script that does the ftp thing.

No Cdr records

$
0
0

Anmy ‘right solution’ is one that works.

"Function get_magic_quotes_gpc() is deprecated" when installing freepbx on gentoo

$
0
0

I seem to remember that php 7.4 apparently breaks FreePBX on some OS’s. go back to 7.3


Backup and Restore from FreePBX12 to 15

Trunks Not Restored

$
0
0

I was bitten by the same bug, running core 15.0.12.51 on both source and destination systems.

So I did
fwconsole ma downloadinstall core --tag 15.0.12.53
on the destination system only, retried the restore, success!

OK, so did the bug get ‘restored’ in Core 15.0.12.55 ? Or, is it a subtle problem that was only partially fixed?

Run a cron job to get the user agent list and send an email alert

$
0
0

Thanks dicko… :slight_smile:

where should I create this file ?

Run a cron job to get the user agent list and send an email alert

$
0
0

anywhere your crontab user can read and execute it from

EPM, best way to have multiple configurations

$
0
0

I have the commercial EPM. If I wanted a few different configurations for a given model of phone, is it best to setup multiple “Brands” of that phone?

For example, let’s say I want the Line keys programmed differently on a few different sets of phones. What is the best way to do this?

EPM, best way to have multiple configurations

$
0
0

Not brands, Templates - You can set up as many as you want - we do it all the time.

One brand - Multiple templates.

Sangoma Connect Versus Zulu - Which should I purchase?

$
0
0

There seems to be a fair amount of Overlap - I see that Connect uses what I have used before as Nimbus (WLC) and it works well, but I am unfamiliar with the Zulu Cel Phone App - Which is better and why and which should I be selling/installing - Primarily we are looking at the Cel Phone App, but we do have some people wanting Web - is UCP still an option? Or has that been replaced by Zulu or Connect?

Inquiring minds…


Sangoma Connect Versus Zulu - Which should I purchase?

$
0
0

You don’t need to choose, the same license works for both. Connect for mobile and Zulu for desktop.

Sangoma Connect Versus Zulu - Which should I purchase?

$
0
0

Got it - Thanks! I didn’t watch the Web Page for long enough on Zulu - I can see they are the same Cel App.

Problem with Trunks an Outbounding call

$
0
0

Hello, I’m new to this world of Freepbx, I managed to configure Outbound SIP Trunks with OnSIP but when I make a call, this log appears and the call is canceled,I am calling this number +15126471431
PD: Sorry about my English

8428	[2021-04-05 21:40:19] VERBOSE[2695][C-0000002b] netsock2.c: Using SIP VIDEO TOS bits 136	
8429	[2021-04-05 21:40:19] VERBOSE[2695][C-0000002b] netsock2.c: Using SIP VIDEO CoS mark 6	
8430	[2021-04-05 21:40:19] VERBOSE[2695][C-0000002b] netsock2.c: Using SIP RTP TOS bits 184	
8431	[2021-04-05 21:40:19] VERBOSE[2695][C-0000002b] netsock2.c: Using SIP RTP CoS mark 5	
8432	[2021-04-05 21:40:19] WARNING[2695][C-0000002b] chan_sip.c: Declining non-primary video stream: video 3234 RTP/AVP 97 102 99 105 96 34	
8433	[2021-04-05 21:40:19] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:1] ResetCDR("SIP/202-00000029", "") in new stack	
8434	[2021-04-05 21:40:19] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:2] NoCDR("SIP/202-00000029", "") in new stack	
8435	[2021-04-05 21:40:19] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:3] Progress("SIP/202-00000029", "") in new stack	
8436	[2021-04-05 21:40:19] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:4] Wait("SIP/202-00000029", "1") in new stack	
8437	[2021-04-05 21:40:20] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:5] Playback("SIP/202-00000029", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack	
8438	[2021-04-05 21:40:20] VERBOSE[27214][C-0000002b] file.c: <SIP/202-00000029> Playing 'silence/1.g722' (language 'en')	
8439	[2021-04-05 21:40:21] VERBOSE[27214][C-0000002b] file.c: <SIP/202-00000029> Playing 'cannot-complete-as-dialed.g722' (language 'en')	
8440	[2021-04-05 21:40:24] VERBOSE[27214][C-0000002b] file.c: <SIP/202-00000029> Playing 'check-number-dial-again.g722' (language 'en')	
8441	[2021-04-05 21:40:26] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:6] Wait("SIP/202-00000029", "1") in new stack	
8442	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [0015126471431@from-internal:7] Congestion("SIP/202-00000029", "20") in new stack	
8443	[2021-04-05 21:40:27] WARNING[27214][C-0000002b] channel.c: Prodding channel 'SIP/202-00000029' failed	
8444	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Spawn extension (from-internal, 0015126471431, 7) exited non-zero on 'SIP/202-00000029'	
8445	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [h@from-internal:1] Macro("SIP/202-00000029", "hangupcall") in new stack	
8446	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/202-00000029", "1?theend") in new stack	
8447	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx_builtins.c: Goto (macro-hangupcall,s,3)	
8448	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/202-00000029", "0?Set(CDR(recordingfile)=)") in new stack	
8449	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [s@macro-hangupcall:4] NoOp("SIP/202-00000029", " montior file= ") in new stack	
8450	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("SIP/202-00000029", "1?skipagi") in new stack	
8451	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx_builtins.c: Goto (macro-hangupcall,s,7)	
8452	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Executing [s@macro-hangupcall:7] Hangup("SIP/202-00000029", "") in new stack	
8453	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/202-00000029' in macro 'hangupcall'	
8454	[2021-04-05 21:40:27] VERBOSE[27214][C-0000002b] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/202-00000029'

This are my dial patterns
Captura%20de%20pantalla%20de%202021-04-05%2018-05-43

Problem with Trunks an Outbounding call

$
0
0

0015126471431 is not matched by any of your dial patterns

Responsive Firewall always blocks "good" external users

$
0
0

I don’t know the proper answer, I just hacked around it when I was doing the certman firewall fixes.

I pointed incron at a bash wrapper script to handle the firewall hooks and passed anything else through to sysadmin_manager.

IIRC, I also had to self sign the module, but standard self-signing didn’t work. I had to copy the signatures from /etc/freepbx.security over the module folder’s sig file or some such nonsense. It’s hazy now and I didn’t make notes.

It was an ugly hack, but was functional enough I was comfortable submitting the PR without waiting for a real answer (or even asking - I guess I should have).

I hope there’s an easier, proper way.

Viewing all 225826 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>