crwxrwxrwx 1 root dialout 188, 0 Apr 4 17:34 /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 1 Apr 4 17:34 /dev/ttyUSB1
crwxrwxrwx 1 root dialout 188, 2 Apr 4 19:58 /dev/ttyUSB2
crwxrwxrwx 1 root dialout 188, 3 Apr 4 17:44 /dev/ttyUSB3
crwxrwxrwx 1 root dialout 188, 4 Apr 4 19:58 /dev/ttyUSB4
crwxrwxrwx 1 root dialout 188, 6 Apr 4 18:04 /dev/ttyUSB6
crwxrwxrwx 1 root dialout 188, 7 Apr 4 19:58 /dev/ttyUSB7
Chan_dongle
Chan_dongle
freepbx*CLI> module load chan_dongle.so
Loaded chan_dongle.so
== Parsing ‘/etc/asterisk/dongle.conf’: Found
[2018-04-04 19:59:25] NOTICE[24499]: chan_dongle.c:1588 reload_config: [SMARTYOUT] Loaded device
[2018-04-04 19:59:25] NOTICE[24499]: chan_dongle.c:1588 reload_config: [MOBILE1] Loaded device
[2018-04-04 19:59:25] NOTICE[24499]: chan_dongle.c:1588 reload_config: [WORKMOBILE] Loaded device
== Registered channel type ‘Dongle’ (Huawei 3G Dongle Channel Driver)
– [SMARTYOUT] Trying to connect on /dev/ttyUSB2…
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB2’) failed: Permission denied
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB1’) failed: Permission denied
== Registered application ‘DongleStatus’
== Registered application ‘DongleSendSMS’
== Registered application ‘DongleSendUSSD’
== Manager registered action DongleShowDevices
== Manager registered action DongleSendUSSD
== Manager registered action DongleSendSMS
== Manager registered action DongleSendPDU
== Manager registered action DongleSetCCWA
== Manager registered action DongleReset
== Manager registered action DongleRestart
== Manager registered action DongleStop
== Manager registered action DongleStart
== Manager registered action DongleRemove
== Manager registered action DongleReload
Loaded chan_dongle.so => (Huawei 3G Dongle Channel Driver)
– [SMARTYOUT] Dongle has connected, initializing…
– [MOBILE1] Trying to connect on /dev/ttyUSB4…
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB4’) failed: Permission denied
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB3’) failed: Permission denied
– [MOBILE1] Dongle has connected, initializing…
– [WORKMOBILE] Trying to connect on /dev/ttyUSB7…
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB7’) failed: Permission denied
[2018-04-04 19:59:25] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB6’) failed: Permission denied
– [WORKMOBILE] Dongle has connected, initializing…
– [SMARTYOUT] Dongle initialized and ready
– [MOBILE1] Dongle initialized and ready
[2018-04-04 19:59:30] ERROR[24509]: chan_dongle.c:445 do_monitor_phone: [WORKMOBILE] timedout while waiting ‘OK’ in response to ‘AT’
– [WORKMOBILE] Error initializing Dongle
– [WORKMOBILE] Dongle has disconnected
– [WORKMOBILE] Trying to connect on /dev/ttyUSB7…
[2018-04-04 19:59:40] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB7’) failed: Permission denied
[2018-04-04 19:59:40] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB6’) failed: Permission denied
– [WORKMOBILE] Dongle has connected, initializing…
[2018-04-04 19:59:45] ERROR[24528]: chan_dongle.c:445 do_monitor_phone: [WORKMOBILE] timedout while waiting ‘OK’ in response to ‘AT’
– [WORKMOBILE] Error initializing Dongle
– [WORKMOBILE] Dongle has disconnected
– [WORKMOBILE] Trying to connect on /dev/ttyUSB7…
[2018-04-04 19:59:55] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB7’) failed: Permission denied
[2018-04-04 19:59:55] ERROR[24506]: chan_dongle.c:137 lock_create: open(’/var/lock/LCK…ttyUSB6’) failed: Permission denied
– [WORKMOBILE] Dongle has connected, initializing…
Chan_dongle
I would try
usermod -a -G dialout asterisk
Chan_dongle
what do you mean? but user is root! right?
Recording Voice Mail Greeting on virtual extension
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
Software and hardware performance for freepbx
is there a open source software to observe the software and hardware performance of a server pbx freepbx and even number of simultaneous call can support this server
Software and hardware performance for freepbx
Firewall Not working?
It’s possible - I just did a release of firewall to enable TCP rate limiting. Is firewall actually running? If not, what is in /tmp/firewall.log?
TTS Engine Custom - Amazon Polly - 24 languages
Yes. here is the “bureaucracy” you speak of, where you copy and pasted code into an email and expected us to take that copy and pasted code (with HTML style formatting) and then build the module around it. I’m sorry but we do not have time for that. I don’t think (or I can’t think) of any project that will accept code submitted through the body of an HTML email message. I told you we wouldn’t accept this in this format and asked you to submit a pull request and you replied with “excuse me for the inconvenience!”. You then proceeded to create a ticket instead of an email (https://issues.freepbx.org/browse/FREEPBX-14505) with the same copy and pasted HTML message
I don’t think it’s an “inconvenience” to ask for you to make a Pull Request.
TTS Engine Custom - Amazon Polly - 24 languages
And it’s not like we didn’t try. We copied it as plain text, and that stripped out some of the formatting, but then some line wrapping broke other things, and after both of us spending about half an hour on it we gave up.
If you don’t know how to use git, there are plenty of online courses, or, you could even ask us directly in IRC (freepbx-devel or freepbx on freenode) for assistance.
But throwing a pile of half-written code over a wall and then walking away from it isn’t a good way to win friends or influence people 8-(
One time condition multiple phones
I got the followme working. I created a custom extension with the name black hole, made it the only entry in the followme list, set the initial ring time and ring time to 0 and selected memoryhunt as the ring strategy. When followme was on it went immediately to voicemail. With followme off it rings the extension.
However, with the calendar matching turned on and an event scheduled every day from 8-5 it is not switching into followme on that schedule.
Not sure what I’m missing.
TTS Engine Custom - Amazon Polly - 24 languages
One can signup on github. Fork the tts project and edit files inline in the browser. Then submit the code as a Pull Request back to FreePBX.
Find the tts repo on github: https://github.com/FreePBX/tts
Firewall Not working?
Firewall is running.
Firewall Not working?
Can you pastebin the output of ‘iptables-save’ (that’s one word, not two)
Set variable by phone and change recording depending on it
Hello,
we have a small FreePBX 13 installation running for managing our 10 extensions and 3 trunks at our venue.
Sometimes we want to insert an pre-existing recording for incoming calls to inform calling people about a recent cancellation of planned events for the current day. This recording is static, so we just need a way to either insert or remove this message for incoming calls. It would be the easiest way if this could be accomplished from internal phones (selected extensions).
I thought of setting up an “admin-IVR” for operations like “check status” and “set status”.
External customers calling in should get either a default welcome message or this specific cancellation notification, so in either way I would have a recording playing right from the beginning and only need to change WHICH recording to play.
(TL;DR) So the parts I need to achieve are the following:
- adding an option variable stored on the system (single binary option)
- setting (and checking?) this variable from internal (IVR?)
- playing one of two available recordings based on the value of the variable
What would be the best / recommended way to do something like that?
Thanks in advance!
Chan_dongle
still not working
TTS Engine Custom - Amazon Polly - 24 languages
My intention is not to cause confusion, at any moment I waited for Sangoma to do the work for me, I received your response and I asked my humble apologies for sending a supposed code that I was able to accomplish by modifying the TTS engine file, the intention was collaborate, I make it clear that I am not a developer, only a FreePBX user. At some point I had intention to attack you as I felt being exposed with my email here in this topic but I understand. But once I ask my humble apologies for sending the code via email and for not having the expertise to work with git.
TTS Engine Custom - Amazon Polly - 24 languages
Your email that I posted is exactly the same as the publicly visible ticket at https://issues.freepbx.org/browse/FREEPBX-14505
Chan_dongle
user is root group is dialout
TTS Engine Custom - Amazon Polly - 24 languages
On a side note patching this is not the answer. This is 2018, the code has been patched together for 5 years.
This really needs to be refactored to be object orientated and “modular”
Something like:
tts\Modules\Poly\Tts.php
Having a module for each technology.
As it sits now there is no good way to do things like multiple languages or different voices where supported or have API keys when needed.
It also makes sense to have the option to “Generate a static sound” so you are not making an API call every time.
Someone could surely take this on as a project.
I recently did asteriskinfo as a side project if you want to see an example
https://git.freepbx.org/projects/FREEPBX/repos/asteriskinfo/browse?at=refs%2Fheads%2Frelease%2F15.0
The difference here would be wanting views which is why you would use a folder to organize.