Redial Asterisk Info

Connect to the Asterisk Server


  • Mac users: Use a terminal program like Apple Terminal or iTerm. Windows users can try PuTTY or another terminal listed here.
  • You will need to ssh onto the ITP Student server to get to the Asterisk console. (Replace NETID with your NYU Net ID. Your SSH password is your Net ID password)

To log on to the Asterisk CLI (Command Line Interface):

/usr/sbin/asterisk -r

or, if /usr/sbin is in the user’s PATH:

asterisk -r


  • Protocol: SFTP
  • Port: 22
  • Use your NETID and password
  • I highly recommend Cyberduck as an FTP client on OSX.
  • Text Wrangler also has a built-in FTP Client, which allows you to edit, save and upload text files within the same app!

Spring 2013 Student Extensions

Here are the extensions I have assigned each of you on ITP’s Asterisk Server:

Phone Number: 1-917-534-6464

10 - Chris K.       [ck987]
11 - Aankit P.      [abp225]
12 - Aaron A.       [aja466]
13 - Adarsh K.      [ak4697]
14 - Benjamin G.    [bkg223]
15 - Chin-Hsuan W.  [chw323]
16 - Dana R.        [dr1849]
17 - Edwin R.       [elr210]
18 - Eunjin K.      [ek1920]
19 - Jaewoong H.    [jh3654]
20 - Jeffrey O.     [jjo298]
21 - Jiwon Y.       [jy1415]
22 - Karl W.        [kw1213]
23 - Ran M.         [rm3599]
24 - Rucha P.       [rmp405]
25 - Vicci H.       [vwh216]
26 - Yu J.          [yj354]

(Waiting List)
27 - Alon C.        [ac4912]
28 - Kristina B.    [kdb275]
29 - Yu H.          [yh1300]

Asterisk is setup to answer the main number and then ask for an extension. Once this extension is entered, Asterisk will put the caller into the appropriate context: [ck987] for extension 10.

You define the context by editing a file in [your home directory]/asterisk_conf/ with the name: extensions.conf

Inside this file you create the context name in square brackets [CONTEXT NAME]. For this class you should use the context name “[YOUR-NETID]”. For example I’m [ck987].

Here is what is currently in my asterisk_conf/extensions.conf:

exten => s,1,Wait(1)
exten => s,n,SayDigits(${CALLERID(num)})
exten => s,n,Playback(demo-echotest)
exten => s,n,Echo()
exten => s,n,Playback(demo-echodone)
exten => s,n,Hangup()

Any time you make a change this file you need to reload the asterisk configuration.

  • Enter “module reload” into the asterisk terminal. This is the standard way to reload configs.

A couple of notes:

  • Any files you create for use with Asterisk (such as the dialplan files you are now creating) must have Unix line breaks.
  • On the Mac, TextWrangler allows you to change which type of line breaks any particular file uses.
  • On the PC, TextPad is a good choice.
  • Know of others, particularly free or open source, please feel free to let me know…