[asterisk-users] possible bug in Asterisk 16

2019-11-05 Thread Fourhundred Thecat
Hello, I am experiencing weird problem in Asterisk 16.2, possibly a bug. Same thing works fine in Asterisk 11. Here is the situation: I have 2 extensions on 2 phones. 4 extensions in total. phone 1: 8882 8382 phone 2: 8884 8384 And I have 2 SIP trunks for outgoing calls. I want to call

Re: [asterisk-users] possible bug in Asterisk 16

2019-11-06 Thread Fourhundred Thecat
On 06/11/2019 10.51, Tony Mountifield wrote: > > If you did this instead, it should work: > > exten => _0./_888[24],1,Verbose(0,EXTERNAL CALL) > same => n,Macro(record) > same => n,Set(CALLERID(num)=044111) > exten => _0./044111,n,DIAL(SIP/044111/${EXTEN}) > same =>

[asterisk-users] problem with logger

2019-11-15 Thread Fourhundred Thecat
Hello, I am logging directly into file and also to syslog. Here is snippet from my /etc/asterisk/logger.conf: messages => notice,warning,error,verbose syslog.local0 => notice,warning,error,verbose But the logs look different: VERBOSE[7609][C-0013] pbx.c: NOTICE[3042] chan_sip.c:

Re: [asterisk-users] issues with Asterisk CLI

2019-10-24 Thread Fourhundred Thecat
On 23/10/2019 12.33, Joshua C. Colp wrote: > >> Does Asterisk use the readline library? Does it use /etc/inputrc ? >> Can the behavior described above be configured ? > > It uses the editline library and all usage of it is within asterisk.c[1]. > There is no configuration ability as far as I

[asterisk-users] different logs in messages vs syslog

2019-10-20 Thread Fourhundred Thecat
Hello, I am logging into messages and also to syslog. Here is my /etc/asterisk/logger.conf: messages => notice,warning,error,verbose syslog.local0 => notice,warning,error,verbose But the logs look different: [2019-10-20 12:02:06] VERBOSE[7609][C-0013] pbx.c: Executing

[asterisk-users] issues with Asterisk CLI

2019-10-22 Thread Fourhundred Thecat
Hello, I have Asterisk 16.2 on Debian. In the Asterisk CLI, I would like to change 2 things: 1) change the keybindings for commandline editing (what in bash is called "readline" editing of the command line) The CLI is missing some very useful keybindings, and even worse, has misconfigured

[asterisk-users] email notification on missed call

2019-10-29 Thread Fourhundred Thecat
Hello, what is the best way to implement email notification on missed call ? So far, I have been using a solution that I hacked together. I create a hangup-handler, inside which I check for "${DIALSTATUS}" and use System(): System(/bin/echo ... | /usr/bin/mail ) I have pasted the block

[asterisk-users] setting up ODBC for cdr logging into MariaDB

2019-10-11 Thread Fourhundred Thecat
Hello, I am trying to set up cdr logging into MariaDB through ODBC. I have installed unixodbc unixodbc-dev and now I am struggling with configuring /etc/odbcinst.ini All the examples online use non-existent libraries, ie: [MySQL] Description = MySQL ODBC MyODBC Driver Driver =

Re: [asterisk-users] setting up ODBC for cdr logging into MariaDB

2019-10-12 Thread Fourhundred Thecat
On 12/10/2019 11.06, Doug Lytle wrote: > On 10/11/19 10:12 PM, Fourhundred Thecat wrote: >> Hello, >> >> I am trying to set up cdr logging into MariaDB through ODBC. >> >> I have installed unixodbc unixodbc-dev and now I am struggling with >> configuring /

[asterisk-users] delete voicemail after email has been sent (with recording attached)

2020-09-26 Thread Fourhundred Thecat
Hello, I am sending email notification when new voicemail is received, with the voicemail message attached. Therefore, once this email is sent, I don't want to keep the original voicemail message on the asterisk server, as the user does not need to call in to listen to the message. Once the

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 15:59, Antony Stone wrote: On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: "%Cn[;n] - Change terminal foreground (and optional background) color to specified A full list of colors may be found in include/asterisk/term.h" So, try: export ASTERISK_PR

[asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
Hello, how can I change the color of the asterisk prompt to red ? I read in the wiki that I can use %Cn[;n] https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration But what does this mean ? There is no example how to actually use it. where do I put it? What syntax is that

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 19:26, Jeff LaCoursiere wrote: Hi, I really don't know why yours doesn't work.  Perhaps you can tell us what your terminal emulator is, what you are running it on, etc. Whatever it is, it isn't properly interpreting the escape codes for xterm-256color.  You could possibly try

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 16:24, Antony Stone wrote: On Sunday 31 May 2020 at 16:03:07, Fourhundred Thecat wrote: export ASTERISK_PROMPT="%C31[%H]: " I get this prompt (voip is my hostname): [1;31m[voip]: [1;0m In that case I suspect you're using a terminal which doesn't support colou

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 15:59, Antony Stone wrote: > On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: > > So, try: > > export ASTERISK_PROMPT="%C31[%H]: " does this work for you? Did you test it on your side? It color prompt works for anybody, could you p

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 18:39, Ira wrote: > > I typed this at the terminal prompt: export ASTERISK_PROMPT="%C31[%H]: " > > Typing at the same place: echo $TERM returns xterm > > And now I have colored prompts at the Asterisk command line, so I can > assure you it can work. Kind of cool, 14 years using

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 16:25, Jeff LaCoursiere wrote: I'm pretty sure that means your are using a non-color capable terminal, or your termtype variable is incorrect.  What are you using for a terminal emulator? my terminal supports colors, I am using colored prompt in bash/zsh already. I made a

Re: [asterisk-users] CLI color prompt

2020-05-31 Thread Fourhundred Thecat
> On 2020-05-31 16:59, Telium Technical Support wrote: > That means that Asterisk is not echoing the escape character (27) to your > terminal. > > Try different escape formats (octal, slash prefix, etc) can somebody please provide working example ? What exactly to I have to export? --

Re: [asterisk-users] CLI color prompt

2020-06-01 Thread Fourhundred Thecat
> On 2020-06-01 10:07, Michael Maier wrote: Same problem here (asterisk 16.x / CentOS 7). # echo $TERM xterm-256color I am using asterisk 16.x as well, on Debian Buster. => CLI prompt looks the same as described by the OP: [1;31m[myhostname]: But to make it even more strange: colored

Re: [asterisk-users] problem with logger: syslog vs. file

2020-06-02 Thread Fourhundred Thecat
> On 2019-11-16 03:29, Fourhundred Thecat wrote: Hello, I am logging directly into file and also to syslog. Here is snippet from my /etc/asterisk/logger.conf: messages => notice,warning,error,verbose syslog.local0 => notice,warning,error,verbose But the logs look different:

Re: [asterisk-users] CDR mysql: timeout when remote database unavailable

2020-06-10 Thread Fourhundred Thecat
> On 2020-06-08 16:37, Sean Bright wrote: > > In the case of cdr_mysql, the connect timeout is configurable by putting > the following in cdr_mysql.conf: > > [global] > timeout = 5 ; Set connect timeout to 5 seconds OK, so i changed the timeout to 2 sec, but it does not have the desired effect. I

Re: [asterisk-users] problem with logger: syslog vs. file

2020-06-03 Thread Fourhundred Thecat
> On 2020-06-03 12:18, Tony Mountifield wrote: In article <88f96e46-e6bb-a7ef-bebb-5588ef6cd...@gmx.ch>, However, the conversation would then be: should both logging types include line number and function? should both logging types omit them? should it be a configuration option in logger.conf

[asterisk-users] CDR mysql: timeout when remote database unavailable

2020-06-06 Thread Fourhundred Thecat
Hello, I am using CDR mysql to log to remote server: in modules.conf, I preload the modules: [modules] preload => cdr_mysql.so preload => app_mysql.so and in cdr_mysql.conf, I have all the details defined (hostname, dbname, table, password, user, port). In a situation when I start asterisk,

Re: [asterisk-users] problem with logger: syslog vs. file

2020-06-03 Thread Fourhundred Thecat
> On 2020-06-03 17:21, Steve Edwards wrote: How about:     syslog.local0   = error,verbose,warning no debugging detail.     syslog.local0   = debug,error,verbose,warning include debugging detail. currently, the above has no effect on logging. As

Re: [asterisk-users] problem with logger: syslog vs. file

2020-06-02 Thread Fourhundred Thecat
> On 2020-06-02 17:48, Tony Mountifield wrote: In article <94191802-6c9c-bdab-615b-001786a2a...@gmx.ch>, Fourhundred Thecat <400the...@gmx.ch> wrote: > On 2019-11-16 03:29, Fourhundred Thecat wrote: case LOGTYPE_SYSLOG: snprintf(buf, size, "%s

Re: [asterisk-users] CDR mysql: timeout when remote database unavailable

2020-06-07 Thread Fourhundred Thecat
> On 2020-06-06 10:38, Antony Stone wrote: On Saturday 06 June 2020 at 09:18:11, Fourhundred Thecat wrote: In a situation when I start asterisk, and the remote database is unreachable, asterisk waits for several minutes before it actually starts (before it loads sip module, etc). And w

[asterisk-users] how to separate calls in the log

2021-01-05 Thread Fourhundred Thecat
Hello, how can I separate individual calls in my asterisk log? I noticed that a call always starts with following line: VERBOSE[C-000c]: Using SIP RTP CoS mark 5 How reliable is this as a "separator"? It seems it appears twice during every call. And, what does this line mean anyway?

Re: [asterisk-users] Retransmission timeout reached

2021-01-13 Thread Fourhundred Thecat
> On 2021-01-13 15:40, Dovid Bender wrote: Check to see if you are being sent INVITES from random IP's. If the attackers don't have their scripts set up correctly they don't respond correctly to your responses which Asterisk does not like. that was exactly what was happening thank you, --

[asterisk-users] Retransmission timeout reached

2021-01-13 Thread Fourhundred Thecat
Hello, I am suddenly having my log flooded by these warnings: WARNING: Retransmission timeout reached on transmission 1372443000-1325687561-974574282 for seqno 1 (Critical Response) WARNING: Retransmission timeout reached on transmission 283912657-2003707522-1284343849 for seqno 1 (Critical

[asterisk-users] limit frequency of: Peer is now Reachable/UNREACHABLE

2021-09-15 Thread Fourhundred Thecat
Hello, is there any way to configure, how often these warnings are reported? 04:48:33 NOTICE: Peer '8822' is now UNREACHABLE! Last qualify: 30 04:49:02 NOTICE: Peer '8822' is now Reachable. (29ms / 2000ms) 04:51:03 NOTICE: Peer '8822' is now UNREACHABLE! Last qualify: 35 04:51:32

[asterisk-users] macro for recording calls

2021-08-10 Thread Fourhundred Thecat
Hello, I have defined macro for recording: [macro-record] exten => s,1,Set(FILE=${CDR(src)}-${CDR(dst)}.wav) same => n,MixMonitor(/tmp/${FILE},b,) same => n,MacroExit and use it in my dialplan as such: exten => 1234,1,Macro(record) same =>

[asterisk-users] verbose function format

2021-10-15 Thread Fourhundred Thecat
Hello, when I use the "verbose" function, ie: exten => _,1,Verbose(0,INTERNAL CALL: ${CDR(src)} is calling ${EXTEN}) then, in the logs the line looks like this: VERBOSE[C-0001]: INTERNAL CALL: is calling (ECHO TEST) why is there additional [C-0001] after the

[asterisk-users] voicemail message not deleted

2021-07-25 Thread Fourhundred Thecat
Hello, I have this in my voicemail.conf: attach=yes delete=yes I do get an email when new voicemail is received, and I do get the voicemail message as attachment. However, the original message is not deleted from the sevber. How do I delete the message, after it has been sent per email

[asterisk-users] Internal SSL error (Underlying BIO error: Broken pipe)

2022-01-25 Thread Fourhundred Thecat
Hello, I am trying to understand what these messages mean: ERROR: Problem setting up ssl connection: error:0005:lib(0):func(0):DH lib, Underlying BIO error: Connection reset by peer ERROR: Unable to set up ssl connection with peer '167.94.146.58:55590' ERROR: SSL_shutdown() failed:

[asterisk-users] Codec opus returned invalid number of samples

2022-12-03 Thread Fourhundred Thecat
Hello, I am getting these warnings in the logs when using linphone client: WARNING: Codec opus returned invalid number of samples these are probably harmless warnings (the call works fine), but it just floods the logs unnecessarily any way to fix this problem, or suppress the warnings? --

[asterisk-users] cdr_sqlite3

2023-03-04 Thread Fourhundred Thecat
Hello, I am using cdr_sqlite3_custom and the file is automatically saved as: /var/log/asterisk/master.db how can I change the location ? If this is not possible to change in the config file, where in the source code would I change that? I am using asterisk 16. thanks, --

Re: [asterisk-users] couldn't allocate a port for RTP instance

2023-04-14 Thread Fourhundred Thecat
> On 2023-04-14 11:06, Joshua C. Colp wrote: On Fri, Apr 14, 2023 at 5:44 AM Fourhundred Thecat <400the...@gmx.ch <mailto:400the...@gmx.ch>> wrote: Hello, my logs are flooded with: WARNING: The 'stasis/m:cdr:aggregator-0005' task processor queue reached

Re: [asterisk-users] couldn't allocate a port for RTP instance

2023-04-14 Thread Fourhundred Thecat
> On 2023-04-14 10:43, Fourhundred Thecat wrote: Hello, my logs are flooded with: WARNING: The 'stasis/m:cdr:aggregator-0005' task processor queue reached 5000 scheduled tasks again. and then, when call came, I got this: ERROR: Oh dear... we couldn't allocate a port for RTP insta

[asterisk-users] couldn't allocate a port for RTP instance

2023-04-14 Thread Fourhundred Thecat
Hello, my logs are flooded with: WARNING: The 'stasis/m:cdr:aggregator-0005' task processor queue reached 5000 scheduled tasks again. and then, when call came, I got this: ERROR: Oh dear... we couldn't allocate a port for RTP instance '0x6e1e680fd670' WARNING: Unable to cancel schedule

Re: [asterisk-users] cdr_sqlite3

2023-03-28 Thread Fourhundred Thecat
> On 2023-03-28 16:15, Sean Bright wrote: Something like the following: https://gist.github.com/seanbright/f8331df57aacdd06b6d391dfec2f59c6 thank you Sean that works beautifully -- _ -- Bandwidth and Colocation Provided

Re: [asterisk-users] cdr_sqlite3

2023-03-28 Thread Fourhundred Thecat
> On 2023-03-04 23:11, Sean Bright wrote: > > cdr/cdr_sqlite3_custom.c line 311 Hello, I asked here recently how to change the location where "cdr_sqlite3_custom" stores the sqlite database. The default is location is "astlogdir". I need to change this location without affecting the rest of

[asterisk-users] log custom variable in cdr

2023-04-05 Thread Fourhundred Thecat
Hello, in my extensions.conf, I have a custom macro which I use at the beginning of incoming call, and then I turn on cdr recording: exten => 123456789,1,Macro(record) ... same => n,Set(CDR_PROP(disable)=0) ... the macro is defined later, and sets one filename variable:

[asterisk-users] asterisk sees private IP address of a device behind NAT

2023-07-11 Thread Fourhundred Thecat
Hello, my asterisk is working fine, I am just confused why, on the server I see private IP address of an endpoint: WARNING: Retransmission timeout reached on transmission 0_252301488@10.1.3.8 for seqno 2 (Critical Response) the IP 10.1.3.8 is a phone behind NAT. Does it mean something is

[asterisk-users] Function DENOISE not registered

2023-05-25 Thread Fourhundred Thecat
Hello, when I call my conference, I see this error in my logs: ERROR: Function DENOISE not registered here is snippet from extensions.conf ... same => n,Set(CONFBRIDGE(user,announce_join_leave)=yes) same => n,Set(CONFBRIDGE(bridge,record_conference)=yes) same =>

Re: [asterisk-users] Function DENOISE not registered

2023-05-27 Thread Fourhundred Thecat
> On 2023-05-26 09:34, Doug Lytle wrote: On 5/26/23 01:15, Fourhundred Thecat wrote: how do I fix this? What do I have to do to "register" denoise ? confbridge.conf states: "Requires func_speex to be built and installed." thank you. loading func_speex.so mo