[asterisk-users] DAHDI fax detection

2018-12-04 Thread Mitch Claborn

Asterisk 16 latest
DAHDI 3.0.0 latest

Excerpt from chan_dahdi.conf is shown below.  I'm trying to enable fax 
detection on inbound calls so that I can take appropriate action in the 
dial plan.  "dahdi show channel 1" shows "Fax Handled: no". Does that 
mean that I don't have it configured correctly?




[channels]
; Span 1: WCTE2/0/1 "WCTE23X (PCI) Card 0 Span 1" (MASTER) ESF/B8ZS RED
group=10,11
context=from-pstn
switchtype = national
signalling = pri_cpe
faxdetect=incoming
faxdetect_timeout=0
faxbuffers => 12,half
channel => 1-23

; Span 2: WCTE2/0/2 "WCTE23X (PCI) Card 0 Span 2" ESF/B8ZS RED
group=10,12
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 25-47


--

Mitch

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] figuring out what happened to a call

2018-12-04 Thread Antony Stone
On Tuesday 04 December 2018 at 16:11:39, hw wrote:

> On 12/01/2018 05:30 PM, Marcelo Terres wrote:
> > Queue_log
> 
> Thanks!
> 
> That's not really it; however, how do I make it so that asterisk writes
> this information right away into a mariadb database instead of into a
> file so that I could actually use it?

Send your queue_log entries to odbc?

It's a setting in extconfig.conf.


Antony.

-- 
A few words to be cautious of between American and English:
 - momentarily
 - suspenders
 - chips
 - pants
 - jelly
 - pavement
 - vest
 - pint (and gallon)
 - pissed


   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Connected line update prevented

2018-12-04 Thread Richard Mudgett
On Tue, Dec 4, 2018 at 9:59 AM Mitch Claborn  wrote:

> I am seeing the following type of error in the console and verbose log.
>
> Connected line update to PJSIP/mlc296- prevented
>
> It is happening after a Dial command [Dial("PJSIP/mlc296-0006",
> "PJSIP/mlcx450,25,IktT")] before the other party answers the phone.
>
> This happens to be dialing from a Digium phone to a soft phone, but I
> also get the message when dialing the other way.
> I am using the latest Asterisk 16 and DPMA.
>
> There doesn't seem to be any damage - everything works OK, but I'd like
> to figure out what this means and fix it or prevent it.
>
> I did find
>
> https://wiki.asterisk.org/wiki/display/DIGIUM/Digium+Phones+and+Connected+Line+Updates
> and applied those changes but it did not help.
>
> Any ideas?
>

That message is not an error.  It is a verbose log stating what it did.  It
is a result
of you telling the Dial application to block the initial connected line
update because
you set Dial's 'I' option flag.

Richard
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk is not seeing my queues in database

2018-12-04 Thread Dominic
yep here is the result:
mysql> SELECT * FROM queues WHERE name = 'cou0002-test'\G
*** 1. row ***
   name: cou0002-test
 musicclass: NULL
   announce: NULL
context: NULL
exitcontext: NULL
membermacro: NULL
membergosub: NULL
defaultrule: NULL
timeout: NULL
  ringinuse: 0
   monitor_type: mixmonitor
 monitor_format:
   queue_youarenext: NULL
 queue_thereare: NULL
 queue_callswaiting: NULL
queue_quantity1: NULL
queue_quantity2: NULL
 queue_holdtime: NULL
  queue_minutes: NULL
   queue_minute: NULL
  queue_seconds: NULL
 queue_thankyou: NULL
   queue_callerannounce: NULL
   queue_reporthold: NULL
 announce_frequency: NULL
 min_announce_frequency: NULL
 announce_round_seconds: NULL
  announce_holdtime: no
  announce_position: no
announce_position_limit: NULL
  periodic_announce: NULL
periodic_announce_frequency: NULL
   random_periodic_announce: NULL
 relative_periodic_announce: NULL
  retry: NULL
 wrapuptime: NULL
extrawrapuptime: NULL
   autofill: 0
  autopause: no
 maxlen: NULL
   servicelevel: NULL
   strategy: ringall
  joinempty: no
 leavewhenempty: no
  eventmemberstatus: NULL
eventwhencalled: NULL
 reportholdtime: NULL
memberdelay: NULL
 weight: NULL
 timeoutrestart: NULL
timeoutpriority: NULL
setinterfacevar: 1
setqueuevar: 1
   setqueueentryvar: 1
accountcode: cou0002
description: test
   archived: 0
  hide_callerid: 0
 autoanswer: 0
   restroomtime: NULL
  lunchtime: NULL
   trainingtime: NULL
meetingtime: NULL
 customtime: NULL
   max_waiting_time: NULL
pauses_time: {"training": {"active": false, "time": 1800},
"coffee": {"active": false, "time": 900}, "restroom": {"active": false,
"time": 300}, "other4": {"active": false, "time": 900}, "lunch": {"active":
false, "time": 1800}, "other1": {"active": false, "time": 900}, "other2":
{"active": false, "time": 900}, "other3": {"active": false, "time": 900},
"custom": {"active": false, "time": 900}, "meeting": {"active": false,
"time": 1800}, "extrawrapup": {"active": false, "time": 30}}
1 row in set (0.00 sec)


On Tue, Dec 4, 2018 at 12:22 PM Mitch Claborn  wrote:

> Maybe post the result from that query here?
>
>
> Mitch
>
> On 12/4/18 10:46 AM, Dominic wrote:
> > I enabled the logs on the mysql database and ran :
> >
> > realtime load queues name cou0002-test
> >
> > in the mysql log I can see that the proper select statement is being
> > executed:
> > 2018-12-04T16:29:27.253094Z   229 Query SET SESSION TRANSACTION
> > ISOLATION LEVEL READ COMMITTED
> > 2018-12-04T16:29:27.254384Z   229 Prepare   SELECT * FROM queues
> > WHERE name = ?
> > 2018-12-04T16:29:27.254902Z   229 Execute   SELECT * FROM queues
> > WHERE name = 'cou0002-test'
> > 2018-12-04T16:29:27.255606Z   229 Close stmt
> >
> > I also ran the query (SELECT * FROM queues WHERE name = 'cou0002-test')
> > on the db and I do get a result.
> >
> >
> > On Tue, Dec 4, 2018 at 9:08 AM Mitch Claborn  > > wrote:
> >
> > Maybe try capturing the queries that are executed on the mysql
> server?
> > That might point you in the right direction.
> >
> > -- show the log file name
> > SHOW VARIABLES LIKE 'general_log%';
> > -- turn logging on and off
> > SET GLOBAL general_log='ON';
> > SET GLOBAL general_log='OFF';
> >
> >
> >
> > Mitch
> >
> > On 12/4/18 7:50 AM, Dominic wrote:
> >  > Hi I am facing an issue where asterisk cannot see the queues that
> > exist
> >  > in my database through realtime. I am using res_odbc and a local
> > mysql
> >  > database.
> >  >
> >  > If I run:
> >  >
> >  > realtime load queues name myqueue
> >  >
> >  > I get "No rows found matching search criteria.", however if I do
> the
> >  > same for a peer:
> >  >
> >  > realtime load sippeers name
> >  >
> >  > Then I get a result. Since my queues table is in the same
> > database as my
> >  > sippeers table, I was expecting consistent result between the two.
> >  >
> >  > I am a bit stuck here on where to look for errors or how I can
> debug
> >  > this issue, I can't see any error messages when I call the 

Re: [asterisk-users] asterisk is not seeing my queues in database

2018-12-04 Thread Mitch Claborn

Maybe post the result from that query here?


Mitch

On 12/4/18 10:46 AM, Dominic wrote:

I enabled the logs on the mysql database and ran :

realtime load queues name cou0002-test

in the mysql log I can see that the proper select statement is being 
executed:
2018-12-04T16:29:27.253094Z   229 Query SET SESSION TRANSACTION 
ISOLATION LEVEL READ COMMITTED
2018-12-04T16:29:27.254384Z   229 Prepare   SELECT * FROM queues 
WHERE name = ?
2018-12-04T16:29:27.254902Z   229 Execute   SELECT * FROM queues 
WHERE name = 'cou0002-test'

2018-12-04T16:29:27.255606Z   229 Close stmt

I also ran the query (SELECT * FROM queues WHERE name = 'cou0002-test') 
on the db and I do get a result.



On Tue, Dec 4, 2018 at 9:08 AM Mitch Claborn > wrote:


Maybe try capturing the queries that are executed on the mysql server?
That might point you in the right direction.

-- show the log file name
SHOW VARIABLES LIKE 'general_log%';
-- turn logging on and off
SET GLOBAL general_log='ON';
SET GLOBAL general_log='OFF';



Mitch

On 12/4/18 7:50 AM, Dominic wrote:
 > Hi I am facing an issue where asterisk cannot see the queues that
exist
 > in my database through realtime. I am using res_odbc and a local
mysql
 > database.
 >
 > If I run:
 >
 > realtime load queues name myqueue
 >
 > I get "No rows found matching search criteria.", however if I do the
 > same for a peer:
 >
 > realtime load sippeers name
 >
 > Then I get a result. Since my queues table is in the same
database as my
 > sippeers table, I was expecting consistent result between the two.
 >
 > I am a bit stuck here on where to look for errors or how I can debug
 > this issue, I can't see any error messages when I call the Queue
 > application besides "queue_exec: Unable to join queue". Also,
this is an
 > almost exact copy of an existing Asterisk, so I'm confident the
table
 > structure is correct but I'm obviously missing something.
 >
 > Any suggestions?
 >

-- 
_

-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at:
https://community.asterisk.org/

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk is not seeing my queues in database

2018-12-04 Thread Dominic
I enabled the logs on the mysql database and ran :

realtime load queues name cou0002-test

in the mysql log I can see that the proper select statement is being
executed:
2018-12-04T16:29:27.253094Z   229 Query SET SESSION TRANSACTION
ISOLATION LEVEL READ COMMITTED
2018-12-04T16:29:27.254384Z   229 Prepare   SELECT * FROM queues WHERE
name = ?
2018-12-04T16:29:27.254902Z   229 Execute   SELECT * FROM queues WHERE
name = 'cou0002-test'
2018-12-04T16:29:27.255606Z   229 Close stmt

I also ran the query (SELECT * FROM queues WHERE name = 'cou0002-test') on
the db and I do get a result.


On Tue, Dec 4, 2018 at 9:08 AM Mitch Claborn  wrote:

> Maybe try capturing the queries that are executed on the mysql server?
> That might point you in the right direction.
>
> -- show the log file name
> SHOW VARIABLES LIKE 'general_log%';
> -- turn logging on and off
> SET GLOBAL general_log='ON';
> SET GLOBAL general_log='OFF';
>
>
>
> Mitch
>
> On 12/4/18 7:50 AM, Dominic wrote:
> > Hi I am facing an issue where asterisk cannot see the queues that exist
> > in my database through realtime. I am using res_odbc and a local mysql
> > database.
> >
> > If I run:
> >
> > realtime load queues name myqueue
> >
> > I get "No rows found matching search criteria.", however if I do the
> > same for a peer:
> >
> > realtime load sippeers name
> >
> > Then I get a result. Since my queues table is in the same database as my
> > sippeers table, I was expecting consistent result between the two.
> >
> > I am a bit stuck here on where to look for errors or how I can debug
> > this issue, I can't see any error messages when I call the Queue
> > application besides "queue_exec: Unable to join queue". Also, this is an
> > almost exact copy of an existing Asterisk, so I'm confident the table
> > structure is correct but I'm obviously missing something.
> >
> > Any suggestions?
> >
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Connected line update prevented

2018-12-04 Thread Mitch Claborn

I am seeing the following type of error in the console and verbose log.

Connected line update to PJSIP/mlc296- prevented

It is happening after a Dial command [Dial("PJSIP/mlc296-0006", 
"PJSIP/mlcx450,25,IktT")] before the other party answers the phone.


This happens to be dialing from a Digium phone to a soft phone, but I 
also get the message when dialing the other way.

I am using the latest Asterisk 16 and DPMA.

There doesn't seem to be any damage - everything works OK, but I'd like 
to figure out what this means and fix it or prevent it.


I did find 
https://wiki.asterisk.org/wiki/display/DIGIUM/Digium+Phones+and+Connected+Line+Updates 
and applied those changes but it did not help.


Any ideas?

--

Mitch

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] figuring out what happened to a call

2018-12-04 Thread hw

On 12/01/2018 05:30 PM, Marcelo Terres wrote:

Queue_log


Thanks!

That's not really it; however, how do I make it so that asterisk writes 
this information right away into a mariadb database instead of into a 
file so that I could actually use it?


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk is not seeing my queues in database

2018-12-04 Thread Mitch Claborn
Maybe try capturing the queries that are executed on the mysql server? 
That might point you in the right direction.


-- show the log file name
SHOW VARIABLES LIKE 'general_log%';
-- turn logging on and off
SET GLOBAL general_log='ON';
SET GLOBAL general_log='OFF';



Mitch

On 12/4/18 7:50 AM, Dominic wrote:
Hi I am facing an issue where asterisk cannot see the queues that exist 
in my database through realtime. I am using res_odbc and a local mysql 
database.


If I run:

realtime load queues name myqueue

I get "No rows found matching search criteria.", however if I do the 
same for a peer:


realtime load sippeers name

Then I get a result. Since my queues table is in the same database as my 
sippeers table, I was expecting consistent result between the two.


I am a bit stuck here on where to look for errors or how I can debug 
this issue, I can't see any error messages when I call the Queue 
application besides "queue_exec: Unable to join queue". Also, this is an 
almost exact copy of an existing Asterisk, so I'm confident the table 
structure is correct but I'm obviously missing something.


Any suggestions?



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] asterisk is not seeing my queues in database

2018-12-04 Thread Dominic
Hi I am facing an issue where asterisk cannot see the queues that exist in
my database through realtime. I am using res_odbc and a local mysql
database.

If I run:

realtime load queues name myqueue

I get "No rows found matching search criteria.", however if I do the same
for a peer:

realtime load sippeers name

Then I get a result. Since my queues table is in the same database as my
sippeers table, I was expecting consistent result between the two.

I am a bit stuck here on where to look for errors or how I can debug this
issue, I can't see any error messages when I call the Queue application
besides "queue_exec: Unable to join queue". Also, this is an almost exact
copy of an existing Asterisk, so I'm confident the table structure is
correct but I'm obviously missing something.

Any suggestions?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users