Re: [asterisk-users] RS485 Audio device

2016-11-02 Thread Tim S
Before walking down this path, take a moment to think critically: How far
away is the AoR from the attendant station?  Does there need to be local
rescue/fire service access to the communications?  How reliable does the
link need to be?  Will power always be available when the AoR pone is
required to function?

I did a 27mA powered intercom system at a chemical plant a bit over decade
ago, the old analog circuits are dead simple - just a battery (or a double
battery-backed power supply in my case), a current regulator and an audio
bypass cap to make a simple audio loop.

If that's too much hardware, there are still sound-powered phones produced
- very common in mining and maritime.  An SIP phone can be wired into a
sound powered phone circuit, where the preferred usage would be talking via
SIP phone, but if all powered failed the sound-powered devices on the line
would still make a complete audio circuit.

Just a thought...

-Tim

On Wed, Nov 2, 2016 at 1:30 PM, Sylvain Rochet 
wrote:

> Hi,
>
> On Wed, Nov 02, 2016 at 04:21:07PM -0400, Eric Wieling wrote:
> > If cable can be pulled , you have a couple of options.
> >
> > Long Reach Ethernet from Cisco is rated for 5,000 feet. Multi-mode fiber
> > with fiber/ethernet media converters on each end would work and
> electrically
> > isolate the two ends of the cable. Both are way overkill from a capacity
> > standpoint, but sometimes there's nothing wrong with overkill. Put an
> ATA on
> > the far side.
>
> We are using Westermo products for this case. Westermo DDW-120 is rated
> up to 15 km (@ 192 kbit/s), higher speed is indeed achieved for shorter
> lengths.
>
> It's not cheap, but it works well, even in harsh industrial
> environments.
>
> Sylvain
>
> --
> _
> -- 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] AMI Originate and 183 response

2016-11-02 Thread Dan Cropp
I to Originate channels using AMI.  When the other end indicates the channel is 
ringing, I need to do some system notification work.

Everything works great when the ITSP sends a 180 Ringing response.  Through AMI 
events I see the channel state changed and can do the necessary work.

However, when the ITSP sends a 183 with SDP response, there is no notification 
through AMI indicating anything has changed.  Until the channel is answered, 
rejected, other failure, or ITSP sends 180 Ringing I do not see any updates via 
AMI events.

I realize the 183 Progress is not a Channel State change so AMI cannot send an 
AMI event indicating any channel state change.
Is there some way to know through AMI whether a 183 has been received?

Have a great day!

Dan
-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Sylvain Rochet
Hi,

On Wed, Nov 02, 2016 at 04:21:07PM -0400, Eric Wieling wrote:
> If cable can be pulled , you have a couple of options.
> 
> Long Reach Ethernet from Cisco is rated for 5,000 feet. Multi-mode fiber
> with fiber/ethernet media converters on each end would work and electrically
> isolate the two ends of the cable. Both are way overkill from a capacity
> standpoint, but sometimes there's nothing wrong with overkill. Put an ATA on
> the far side.

We are using Westermo products for this case. Westermo DDW-120 is rated 
up to 15 km (@ 192 kbit/s), higher speed is indeed achieved for shorter 
lengths.

It's not cheap, but it works well, even in harsh industrial 
environments.

Sylvain


signature.asc
Description: Digital signature
-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Eric Wieling

If cable can be pulled , you have a couple of options.

Long Reach Ethernet from Cisco is rated for 5,000 feet. Multi-mode fiber 
with fiber/ethernet media converters on each end would work and 
electrically isolate the two ends of the cable. Both are way overkill 
from a capacity standpoint, but sometimes there's nothing wrong with 
overkill. Put an ATA on the far side.


On 11/02/2016 03:46 PM, Jerry Geis wrote:

Hi All,

The reason for the question was simply that the customer desired some 
solution
called an "AOR" or Area of refuge - I think it was. Basically a call 
button, microphone and speaker to hear back
with the kicker being "a long distance" the solution has to run.  
RS485 is like 4000 feet.


There are solutions our there apparently that are not built on 
asterisk - so I was just trying to find

a solution that potentially worked with asterisk.

Thanks!

Jerry





--
if at first you don't succeed, skydiving isn't for you


--
_
-- 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] RS485 Audio device

2016-11-02 Thread Telium Technical Support
Forget RS485 at that distance (your throughput will be too low).  I would 
suggest you pull a fiber and just create an LAN connection on the end.

 

I’m sure you would have had fun getting some of the old IP over Serial drivers 
working J

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jerry Geis
Sent: Wednesday, November 02, 2016 3:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] RS485 Audio device

 

Hi All,

 

The reason for the question was simply that the customer desired some solution

called an "AOR" or Area of refuge - I think it was. Basically a call button, 
microphone and speaker to hear back

with the kicker being "a long distance" the solution has to run.  RS485 is like 
4000 feet.

 

There are solutions our there apparently that are not built on asterisk - so I 
was just trying to find

a solution that potentially worked with asterisk. 

 

Thanks! 

 

Jerry

 

-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Steve Edwards

On Wed, 2 Nov 2016, Jerry Geis wrote:


"AOR" or Area of refuge


I have one of those. I call it my 'man cave.'

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281

--
_
-- 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] RS485 Audio device

2016-11-02 Thread Pete Mundy

Unless there is already RS485 in place, forcing the use of that type of bus, 
this sounds to me like something that would be more easily achieved using one 
of those 2-wire SIP doorphones that puts standard analog audio over a copper 
pair between the handset and the base.

I don't have any specific model to reference to, but they've definitely been 
discussed on-list before.

Pete


> On 3/11/2016, at 8:46 am, Jerry Geis  wrote:
> 
> Hi All,
> 
> The reason for the question was simply that the customer desired some solution
> called an "AOR" or Area of refuge - I think it was. Basically a call button, 
> microphone and speaker to hear back
> with the kicker being "a long distance" the solution has to run.  RS485 is 
> like 4000 feet.
> 
> There are solutions our there apparently that are not built on asterisk - so 
> I was just trying to find
> a solution that potentially worked with asterisk. 
> 
> Thanks! 
> 
> Jerry


smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Jerry Geis
Hi All,

The reason for the question was simply that the customer desired some
solution
called an "AOR" or Area of refuge - I think it was. Basically a call
button, microphone and speaker to hear back
with the kicker being "a long distance" the solution has to run.  RS485 is
like 4000 feet.

There are solutions our there apparently that are not built on asterisk -
so I was just trying to find
a solution that potentially worked with asterisk.

Thanks!

Jerry
-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Pete Mundy

It caught my interest for the same reason! It's such an obscure query.

My guess was that the desire was to run it over an existing shared RS485 bus, 
which means the maximum data rate available would be even less because it would 
be shared with other devices.

The only way I could imagine a solution working in this scenario would be some 
sort of ATA attached to a router which supported PPP and had an RS232 serial 
port on the WAN side (eg like an old modem router), which could then be 
converted into RS485. You could possibly do all that in a Raspberry Pi with a 
USB-RS232 adapter (or even a USB-RS485 adapter directly!). Then you'd run SIP 
over IP over PPP to a similar device on the other end of the bus. But you'd 
obviously have to be sure to use a low bandwidth codec, and you'd possibly 
suffer audio quality issues when there was (RS485) bus contention.

But that was all guess work. It would be great if OP Jerry could expand a 
little more on the application scenario, even if just to whet the curious 
appetites :)

Pete

> On 3/11/2016, at 3:48 am, Telium Technical Support  wrote:
> 
> This one caught my interest too...more out of curiosity!  Keep in mind that
> RS485 max speed drops to 100kbps after a relatively short distance.  And,
> 100kbps is RAW speed.  If you encapsulated your audio stream in that you'd
> lose another 10%.
> 
> So why are you doing this?  If you are running a 100m cable (4 wire +
> shield) why not just pull at cat5/6 cable instead?  Or just send analog
> audio over 2 of the wires with the shield to keep out hum.   If there is a
> need to use rs485 you could stream your audio over that connection - but I'm
> curious why first.
> 
> We did some work for broadcast (radio station) doing AoIP and converting
> some analog feeds but this seems unusual.
> 
> Jason



smime.p7s
Description: S/MIME cryptographic signature
-- 
_
-- 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] What's the smallest, lightest Asterisk you can build? Does size even matter?

2016-11-02 Thread Matt Fredrickson
On Tue, Nov 1, 2016 at 6:00 PM, Jonathan H  wrote:
> All I need is PJSIP, ulaw, alaw, wav, astdb and all the dialplan functions.
>
> I don't need any other DB layer, I have no hardware, and I was wondering
> what the smallest build possible was.
>
> I experimented, but everything relied on other things. And then I
> wondered... is there actually any point? Is there anything to be gained?
>
> Will it matter more when there are lots of concurrent calls, or should I
> just not worry, leave all the options in makemenu, make it easy on myself
> and build the full thing each time?

For most modules there isn't a big point to disabling them as there
isn't an lot of ongoing CPU activity for a module not being used.
That being said, there are some things you can disable that can
improve your performance, but they're going to be application
dependent.  I believe that disabling CDRs, for example, can make a big
difference on heavily loaded systems and some people don't use them.
CDRs take some amount of work at the end to stitch together the notion
of a call from the various call related events that occur.  HEP also
is a big offender.  CELs and AMI can also make some difference when
disabled, but nothing on the order of CDRs and HEP.

Hope that helps!

-- 
Matthew Fredrickson
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Telium Technical Support
This one caught my interest too...more out of curiosity!  Keep in mind that
RS485 max speed drops to 100kbps after a relatively short distance.  And,
100kbps is RAW speed.  If you encapsulated your audio stream in that you'd
lose another 10%.

So why are you doing this?  If you are running a 100m cable (4 wire +
shield) why not just pull at cat5/6 cable instead?  Or just send analog
audio over 2 of the wires with the shield to keep out hum.   If there is a
need to use rs485 you could stream your audio over that connection - but I'm
curious why first.

We did some work for broadcast (radio station) doing AoIP and converting
some analog feeds but this seems unusual.

Jason

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Matt
Fredrickson
Sent: Wednesday, November 02, 2016 10:33 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] RS485 Audio device

On Fri, Oct 28, 2016 at 7:09 PM, Jerry Geis  wrote:
> Hi All,
>
> Is there any devices or pair of devices that do audio over RS485
> and then convert to SIP for us in asterisk?
> Of course a speaker and push button at the other end.
>
> Is there anything like that out there?

Ok, I'll bite.  How does one do audio over RS485?

I've never worked with RS485, but from some brief googling it looks
like it's a fancy version of RS232.  I'm not sure where you'd get
(analog) audio from on RS232.

-- 
Matthew Fredrickson
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Sebastian Nielsen
Why RS485? Whats wrong with a simple 3-wire connection (monospeaker, monomic, 
ground) where you short monomic to ground on button press?

Then you could use a simple usb device + device server to convert fron 
"smartphone headset" to usb then to network.

On the server, you use a SIP phone client, who use this device as mic/speaker, 
which is configured to lift the hook on headset button press.
In asterisk dialplan, you have logic which automatically dials where the 
doorphone should call upon hooklift.

smime.p7s
Description: S/MIME Cryptographic Signature
-- 
_
-- 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] RS485 Audio device

2016-11-02 Thread Matt Fredrickson
On Fri, Oct 28, 2016 at 7:09 PM, Jerry Geis  wrote:
> Hi All,
>
> Is there any devices or pair of devices that do audio over RS485
> and then convert to SIP for us in asterisk?
> Of course a speaker and push button at the other end.
>
> Is there anything like that out there?

Ok, I'll bite.  How does one do audio over RS485?

I've never worked with RS485, but from some brief googling it looks
like it's a fancy version of RS232.  I'm not sure where you'd get
(analog) audio from on RS232.

-- 
Matthew Fredrickson
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

-- 
_
-- 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] What's the smallest, lightest Asterisk you can build? Does size even matter?

2016-11-02 Thread Tzafrir Cohen
On Tue, Nov 01, 2016 at 11:00:10PM +, Jonathan H wrote:
> All I need is PJSIP, ulaw, alaw, wav, astdb and all the dialplan functions.
> 
> I don't need any other DB layer, I have no hardware, and I was wondering
> what the smallest build possible was.
> 
> I experimented, but everything relied on other things. And then I
> wondered... is there actually any point? Is there anything to be gained?
> 
> Will it matter more when there are lots of concurrent calls, or should I
> just not worry, leave all the options in makemenu, make it easy on myself
> and build the full thing each time?

Do you worry about build time? Dependencies? Will you need to often
build things?

If not, just build everything in (unless it involves much effort). And
avoid loading modules you don't need. 

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- 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] Realtime queue & agent groups

2016-11-02 Thread Jonas Kellens

Hello

any one have some input on this ?

I've already tried changing the membername to : testacc77000/@1
Is completely ignored.

I've already tried changing the interface to : testacc77000/@1
Is completely ignored.



Or is it just not possible to group queue members ??



Thanks.

J.


On 27-10-16 15:53, Jonas Kellens wrote:

Hello

I'm a bit confused on how to group agents (give agents a group number) 
when using realtime queues.


I read on the wiki :

  * If you include groups in your queue definition the calls get
routed in the order of the group regardless of the specified
strategy. So I just have a member= line for each agent.

member => Agent/@1 ; a group
member => Agent/501 ; a single agent
member => Agent/:1,1 ; Any agent in group 1, wait for first available, 
but consider with penalty



In my realtime database I have table queue_members :

+--++-++-+-++
| uniqueid | membername | queue_name  | 
interface  | state_interface | penalty 
| paused |

+--++-++-+-++
| 2916 | testacc77000   | queue7700q4 | testacc77000 
| |   0 |   NULL |
| 2917 | testacc77001   | queue7700q4 | testacc77001 
| |   3 |   NULL |
| 2843 | testacc77000   | queue7700q4 | testacc77000 
| |   0 |   NULL |
| 2905 | testacc7700905 | queue7700q5 | testacc7700905 
| |   0 |   NULL |
| 2888 | testacc77000   | queue7700q5 | testacc77000 
| |   0 |   NULL |
| 2900 | testacc77000   | queue7700q5 | testacc77000 
| |   0 |   NULL |
| 2901 | testacc77001   | queue7700q5 | testacc77001 
| |   0 |   NULL |




How do I define a group to a certain agent/member in this case ?





Kind regards

J.






-- 
_
-- 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