[asterisk-users] FOSDEM

2018-01-16 Thread Matt Fredrickson
Hey All,

For any interested in potentially meeting up to talk about Asterisk
and other fun things, Ben Ford from Digium's Asterisk development team
and myself will be in Brussels for FOSDEM Feb 3-4.

I hope to see many of you there!

-- 
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] remote Asterisk console

2018-01-16 Thread Khalil Khamlichi
true, here is how to do it
https://blog.russellbryant.net/2008/01/30/asterisk-16-features-tls-for-manager-ami-and-http/

On Tue, Jan 16, 2018 at 5:27 PM, Antony Stone
 wrote:
> On Tuesday 16 January 2018 at 18:19:30, Paul Neuwirth wrote:
>
>> On Tue, 16 Jan 2018 18:18:18 +0200 Tzafrir Cohen wrote:
>>
>> > Anyway, as mentioned before: you should probably use AMI.
>>
>> Thank you both. That was (most likely) what I was looking for - but
>> still some worries about sending plaintext passwords...
>
> AMI can operate over TLS.
>
>
> Antony.
>
> --
> Numerous psychological studies over the years have demonstrated that the
> majority of people genuinely believe they are not like the majority of people.
>
>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

-- 
_
-- 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] remote Asterisk console

2018-01-16 Thread Antony Stone
On Tuesday 16 January 2018 at 18:19:30, Paul Neuwirth wrote:

> On Tue, 16 Jan 2018 18:18:18 +0200 Tzafrir Cohen wrote:
>
> > Anyway, as mentioned before: you should probably use AMI.
> 
> Thank you both. That was (most likely) what I was looking for - but
> still some worries about sending plaintext passwords...

AMI can operate over TLS.


Antony.

-- 
Numerous psychological studies over the years have demonstrated that the 
majority of people genuinely believe they are not like the majority of people.

   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] remote Asterisk console

2018-01-16 Thread Paul Neuwirth
On Tue, 16 Jan 2018 18:18:18 +0200
Tzafrir Cohen  wrote:

> On Tue, Jan 16, 2018 at 11:05:01AM +0100, Paul Neuwirth wrote:
> > Hello group,
> > 
> > what is the preferred method to connect to asterisk cli over
> > network? I need to run asterisk cli commands remotely.  
> 
> As others have mentioned: the manager interface is normally better for
> running over network.
> 
> The manager interface also has an action calld 'Command' that runs a
> CLI command. In fact, contrib/scripts/astcli uses it to allow
> providing a remote console.
> 
> Permissions needed for your manager user: For most things just:
> 
> write=command
> 
> To also be able to originate calls:
> 
> write=command,originate
> 
> To also be able to restart / reload:
> 
> write=command,system
> 
> > Sharing the unix socket through NFS, if that's working?  
> 
> No.
> 
> > Or any other approaches, despite using SSH or rlogin, rsh.  
> 
> SSH: should work, sure. However, it means you ssh to root at the
> remote host. Better set a key with 'command' explicitly set in
> authorized_keys for this.
> 
> Rlogin, rsh: seriously? Anybody still uses those? Not only are they
> way less secure than SSH, they are also way less conveninet than any
> decent SSH implementation.
> 
> Anyway, as mentioned before: you should probably use AMI.
> 

Thank you both. That was (most likely) what I was looking for - but
still some worries about sending plaintext passwords... For my simple
commands a simple netcat command works for me. Previously used asterisk
-rx in scripts. But now asterisk servers and other processes are split
over multiple physical servers.
A binary or script, making use of encryption and miming asterisk -r
would be best. I am wondering, why such a tool is not part of asterisk
itself... maybe I give this a try setting up a user (group asterisk)
with asterisk -r as "login shell".. and use ssh.. or something like
that. It should be that safe, no other commands can be executed..

-- 
_
-- 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] remote Asterisk console

2018-01-16 Thread Tzafrir Cohen
On Tue, Jan 16, 2018 at 11:05:01AM +0100, Paul Neuwirth wrote:
> Hello group,
> 
> what is the preferred method to connect to asterisk cli over network? I
> need to run asterisk cli commands remotely.

As others have mentioned: the manager interface is normally better for
running over network.

The manager interface also has an action calld 'Command' that runs a CLI
command. In fact, contrib/scripts/astcli uses it to allow providing a
remote console.

Permissions needed for your manager user: For most things just:

write=command

To also be able to originate calls:

write=command,originate

To also be able to restart / reload:

write=command,system

> Sharing the unix socket through NFS, if that's working?

No.

> Or any other approaches, despite using SSH or rlogin, rsh.

SSH: should work, sure. However, it means you ssh to root at the remote
host. Better set a key with 'command' explicitly set in authorized_keys
for this.

Rlogin, rsh: seriously? Anybody still uses those? Not only are they
way less secure than SSH, they are also way less conveninet than any
decent SSH implementation.

Anyway, as mentioned before: you should probably use AMI.

-- 
   Tzafrir Cohen
+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] remote Asterisk console

2018-01-16 Thread Khalil Khamlichi
Hi,

The easiest way would be to use asterisk manager interface (some
simple steps to activate it on asterisk are easily found in the docs)
https://wiki.asterisk.org/wiki/display/AST/AMI+Examples

Now you will need a good python library to make it even easier
https://pypi.python.org/pypi/asterisk-ami/0.1.0

example :

# 1- import
from asterisk.ami import AMIClient
from asterisk.ami import SimpleAction

# 2- connect
client = AMIClient(address='192.168.1.100',port=5038)
client.login(username='username',secret='password')

# 3- use
action = SimpleAction(
'Originate',
Channel='SIP/2010',
Exten='2010',
Priority=1,
Context='default',
CallerID='python',
)
client.send_action(action)

# 4- take a break your work is done

REMARQUE: opening up your server to external access need to be done
with a lot of care.


On Tue, Jan 16, 2018 at 10:05 AM, Paul Neuwirth  wrote:
> Hello group,
>
> what is the preferred method to connect to asterisk cli over network? I
> need to run asterisk cli commands remotely.
> Sharing the unix socket through NFS, if that's working?
> Or any other approaches, despite using SSH or rlogin, rsh.
>
> Thank you
>
> Paul
>
> --
> _
> -- 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] how do i enable call features??

2018-01-16 Thread Atux Atux
at the moment i have in each extension in sip.conf the call-limit=2.
Everytime someone calls that extension and that extension is busy, there is
not any notification:
- to the extension that there is a second call
-to the calling party that this extension is on call. So the calling can
either wait or hang up.


How can i make that happen, please?

On Thu, Jan 11, 2018 at 9:58 AM, Atux Atux  wrote:

> No idea on how to write it in my system.
>
> On Thu, Jan 11, 2018 at 12:17 AM, John Kiniston 
> wrote:
>
>> There's some example code in the Dial-Users context of the basic-pbx
>> samples that might be of use in implementing it.
>>
>> They are checking a DEVICE_STATE to see if a phone is BUSY, You could
>> change it to be a database call or implement custom device states and check
>> those.
>>
>> wrapping your test case in an ExecIF statement that uses the DB_EXISTS
>> function to see if the database field you are checking is valid so you
>> don't get errors about non existent entries.
>>
>> https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_DB_EXISTS
>>
>> https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_DB
>>
>> On Wed, Jan 10, 2018 at 11:19 AM, Atux Atux  wrote:
>>
>>> That is the general idea. But how do i make it work? is there somewhere
>>> ready?
>>>
>>>
>>> On Wed, Jan 10, 2018 at 6:39 PM, John Kiniston 
>>> wrote:
>>>
 Define your *72 and *73 extensions in your internal context, Have them
 set a value in the ASTDB that you then check when dialing your handsets.

 The same can be done for call forwarding, store a number in the ASTDB
 and check if it's present, if it is forward the call to that number.

 On Wed, Jan 10, 2018 at 12:18 AM, Atux Atux  wrote:

> Hi. i am running asterisk 11 and i would like to have features access
> codes in my system such as call waiting(all types) (enable/disable), call
> forward (enable/disable) and DND. my dialplan is pretty simple and it is
> the following
>
> [DefaultPlan]exten => 
> _XX,1,Dial(SIP/VoipGate/${EXTEN},120,Tt)exten => 
> _XX,1,Busy()
> exten => _4XX,2,Answer()exten => 
> _4XX,3,VoiceMail(${EXTEN}@Office,su)exten => _4XX,4,HangUp()exten => 
> _4XX,102,Answer()exten => _4XX,103,VoiceMail(${EXTEN}@Office,sb)exten => 
> _4XX,104,HangUp()
>
> i would like to enable/disable call waiting by typing eg. *70/*71
> DND for the extension *72 enable, *73 to disable.
>
> Regarding call waiting, at the moment it is disabled (default value).
> Now if an extension is busy, a busy message is send back to the caller. I
> would like have the following behavior:
> -in the event were the extension is busy, then send a message
> indication to the extension and the caller to hear from the SIP provider
> the default early media for call waiting due to busy. Then after some
> period of time eg 30 secs send busy.
> -in the event where the extension is busy, send the early media to the
> caller and waiting indication to the extension. If the extension decides 
> to
> get the call then get the 2nd call and send the 1st to hear moh.
>
> My phones are mainly softphones (zoiper), a few IP phones and 2
> SPA3000 for analog devices.
>
> could someone help me please with this task, please?
>
> --
> _
> -- 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
>



 --
 A human being should be able to change a diaper, plan an invasion,
 butcher a hog, conn a ship, design a building, write a sonnet, balance
 accounts, build a wall, set a bone, comfort the dying, take orders, give
 orders, cooperate, act alone, solve equations, analyze a new problem, pitch
 manure, program a computer, cook a tasty meal, fight efficiently, die
 gallantly. Specialization is for insects.
 ---Heinlein

 --
 _
 -- 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] remote Asterisk console

2018-01-16 Thread Paul Neuwirth
Hello group,

what is the preferred method to connect to asterisk cli over network? I
need to run asterisk cli commands remotely.
Sharing the unix socket through NFS, if that's working?
Or any other approaches, despite using SSH or rlogin, rsh.

Thank you

Paul

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