AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

download AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

of 43

Transcript of AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    1/43

    5 Things You Didn't KnowAsterisk Could Do

    Leif Madsen

    AstriCon 2010

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    2/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    About Me

    Coauthor of Asterisk! The "uture of Tele#hon$with %i& an Meggelen and %ared (&ith)htt#!**astbook+asteriskdo,s+org-.Asterisk! The Definitie /uide ,o&ing in Mar,h

    2011

    )htt#!**of#s+oreill$+,o&-

    Asterisk bug &arshal and release &anager

    Consultant with &ore than $ears of e#erien,es#e,ialiing in database integration and ,lustering

    http://astbook.asteriskdocs.org/http://ofps.oreilly.com/http://ofps.oreilly.com/http://astbook.asteriskdocs.org/
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    3/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Coered in this #resentation

    Cool features in Asterisk 1+4

    .LDA 6ntegration )also in 1++2-

    ./oogle 7oi,e and /oogle Talk

    .Calendar 6ntegration

    .Distributed Dei,e (tate with 8M

    .PITCH_SHIFT()

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    4/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    LDA 6ntegration

    Aailable in 1++2: but not well known

    ;orking with ,lients latel$ to integration LDA andwriting about it

    Allows abilit$ to hae a single set of ,redentials for

    signing on b$ $our users

    #enLDA: A,tieDire,tor$-

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    5/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    /oogle 7oi,e and /oogle Talk

    A,,e#t ,alls to $our Asterisk s$ste& ia a freeweb based ,lient that works on &ulti#le #latfor&s);indows: Linu: >(8- with /oogle Talk

    la,e ,alls to web ,lients

    la,e ,alls for free to nu&bers in the =(A andCanada on the (T? through /oogle 7oi,e

    =sing JabberSend(): $ou ,an also send 8M&essages for ons,reen #o#u#s

    Asterisk ,an a,,e#t &essages withJABBER_RECEIVE()to reroute ,alls withoutanswering the line

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    6/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Calendar 6ntegration

    Allows $ou to hook $our Asterisk s$ste& to thingslike /oogle Calendar: M( @,hange: or i&bra toget status fro& a ,alendar

    erfor& routing logi, based on $our ,alendars

    status Bedire,t ,alls to oi,e&ail auto&ati,all$ when

    $ou're listed as in a &eeting

    >r redire,t to $our ,ell #hone when $ou're out of

    the offi,e

    Auto&ati,all$ ,all #arti,i#ants of a ,onferen,e withso&e dial#lan logi,

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    7/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    Distributed Dei,e (tate with 8M

    Distributed dei,e state allows &ulti#le Asterisks$ste&s to know the line status of a dei,ere&otel$ )good for ueue distribution: linea##earan,es: &essage waiting indi,ation-

    Can do it with >#enA6( starting in Asterisk 1++1. Li&ited! &ust be on a low laten,$ network like aLA?

    (tarting in Asterisk 1+4: we ,an do it with 8M. Be&oes the ne,essit$ of being on a low laten,$

    link. Dei,e state for s$ste&s in different #h$si,al

    lo,ations

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    8/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    PITCH_SHIFT()

    Dial#lan fun,tion that allows $ou to &odif$ the#it,h of an audio ,hannel u# or down

    Can be &odified on the fl$ with DTM" ia thefeatures.conf

    (o&ething fun Daid 7ossel did in his s#are ti&e

    Can hae a good laugh if $ou &odif$ the audio of#arti,i#ants rando&l$ #rior to the& Eoining a,onferen,e roo&

    /row $our ,oan$F

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    9/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    LDAP

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    10/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    6nstallation of >#enLDA

    =sing the instru,tions lo,ated athtt#s!**hel#+ubuntu+,o&*10+09*sererguide*C*o#enlda#serer+ht&lto get started with the initial s,he&a ,onfiguration

    >n,e installed: use thecontrib/scrits/asteris!."diffile to

    iort the s,he&a for realti&e su##ort

    "daadd $% E&TER'A $H "dai/// $fasteris!."dif

    After iorting: we then iort our users: or&odif$ the eisting users to su##ort theobEe,tClasses we iorted )su,h asAsterisk(6=ser-

    https://help.ubuntu.com/10.04/serverguide/C/openldap-server.htmlhttps://help.ubuntu.com/10.04/serverguide/C/openldap-server.html
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    11/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Asterisk for LDA

    The ke$ files are!.res_"da.conf

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    12/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Asterisk for LDA

    resHlda#+,onf

    ,_+enera"-ur""da//01.2.3.34456

    rotoco"4

    basedndcs7iftei+7t8dcor+usercnad9in8dcs7iftei+7t8dcor+

    asscanada

    ,si-

    na9e cnca""erid AstAccountCa""erI:

    ...additiona"Fi"ter(ob;ectC"assAsteris!SIP

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    13/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Asterisk for LDA

    et,onfig+,onf

    ,settin+s-siusers = "da8>ouusers8dcs7iftei+7t8dcor+>8sisieers = "da8>ouusers8dcs7iftei+7t8dcor+>8si

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    14/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    Calendar Integration

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    15/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    6nstallation of Calendar 6ntegration

    Beuires libi,alde and libneonde

    . Cent>(!

    ?u9 @enab"ereoee" "ibica"$dee"neon$dee"

    . =buntu!

    at$+et insta"" "ibica"$de "ibneon$de

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    16/43Creative Innovation Customer Satisfaction Continual Quality Improvement

    @nabling Calendar (u##ort

    =ses ,alendar+,onf

    ,9?oo+"eCa"-t?eca"da ; calendar typeur"7tts//.+oo+"e.co9/ca"endar/da/user"eif.9adsenD+9ai".co9 ; login namesecrete"co9e ; passwordrefres7 ; how often to updateti9efra9e23 ; range of time to get data

    https://www.google.com/calendar/dav/mailto:user%[email protected]:user%[email protected]://www.google.com/calendar/dav/
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    17/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Triggering Calls with /oogle Calendar

    ;e ,an trigger ,alls to dei,es when eents arestarting

    Ma$ be useful for &eeting re&inders when $ou'efallen aslee# at $our desk after a night at AstriCon

    A,ts as a wake u# ,all. erha#s a hotel ,ould use this to allow #eo#le to

    s,hedule ,alls for their roo&sI

    Add following to the ,9?oo+"eCa"-se,tion

    c7anne"SIP/3333FFFF333aP"a?bac!adatat7is$is$?r$a!eu$ca""

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    18/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Triggering Calls ;ith /oogle Calendar

    =ses ,alendar+,onf

    ,9?oo+"eCa"-t?eca"daur"7tts//.+oo+"e.co9/ca"endar/da/user"eif.9adsenD+9ai".co9secrete"co9erefres7ti9efra9e23channel=SIP/0000FFFF0001app=Playback

    appdata=this-is-yr-wakep-call

    https://www.google.com/calendar/dav/https://www.google.com/calendar/dav/
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    19/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Adan,ed Calendar Call Control

    Dial#lan eale for setting u# ,all between two&eeting #arti,i#ants

    ,Auto9atedeetin+Setu-

    e*ten = start88Verbose(18Tri++erin+ 9eetin+ setu for to articiants)

    sa9e = n8Set(:eiceTo:ia" GFITER(3$6A$a$8GCAE':AR_EVE'T("ocation)K)K) sa9e = n8:ia"(SIP/G:eiceTo:ia"K843)

    sa9e = n8Han+u()

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    20/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring ,alendar+,onf

    ;e &odif$ ca"endar.confto ee,ute dial#lanu#on answer instead of a s#e,ifi, dial#lana##li,ation

    ,9?oo+"eCa"-t?eca"da

    ur"7tts//.+oo+"e.co9/ca"endar/da/user"eif.9adsenD+9ai".co9secrete"co9erefres7

    ti9efra9e23channel=SIP/0000FFFF0001c!nte"t=#t!$ated%eetin&Setpe"tensi!n=start

    https://www.google.com/calendar/dav/https://www.google.com/calendar/dav/
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    21/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Calling and la,ing arti,i#ants of aMeeting into a Conferen,e Boo&

    @ales in net edition ofAsterisk: TheDefinitive Guide

    Cleer dial#lan using oca",hannels andLri+inate()to si&ultaneousl$ ,all #arti,i#ants

    arti,i#ants don't hear ea,h other until ,onferen,eorganier Eoins )ad&inistrator-

    >rganier is last #erson to Eoin the ,onferen,e

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    22/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Google Voice / al!

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    23/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    /oogle 7oi,e and /oogle Talk

    /oogle Talk.Abilit$ to #la,e ,alls between /oogle a,,ounts with

    web interfa,e

    . ;eb interfa,e is &ulti#latfor& and free >ther web based 7o6 ,lients tend to use

    A,tie8 );indows >nl$-

    . @uialent of soft#honetosoft#hone,o&&uni,ation )onnet onl$-

    /oogle 7oi,e. /et a free D6D nu&ber in the =(A to a,,e#t ,alls.

    la,e ,alls for free to the =(A and Canada. Downside! onl$ aailable to residents of the =(A )You ,an sign u# if $ou ,onne,t using a 7?

    through a =(A based serer-

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    24/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    /oogle 7oi,e and /oogle Talk

    Asterisk 1+4 has ,hanHgtalk and resHEabberu#dated. Can a,,e#t and #la,e ,alls using /oogle Talk and

    7oi,e

    Configured ia ;abber.conf)user a,,ount- and

    +ta"!.conf),ontet ,ontrol-

    Beuires a /&ail a,,ount )@gmail.com-. Can not use a /oogle A##s a,,ount

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    25/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Eabber+,onf

    Eabber+,onf

    ,+enera"-

    debu+no

    autoruneno

    autore+ister?es

    ,asteris!-

    t?ec"ientserer7ostta"!.+oo+"e.co9

    [email protected]

    secret

    ort111

    uset"s?esusesas"?es

    statusaai"ab"e

    status9essa+e>Asteris! Consu"tin+

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    26/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring gtalk+,onf

    +ta"!.conf. Controls where in,o&ing ,alls are handled in the

    dial#lan

    . Mat,hes on userna&e )e&ail address- first

    . Mat,hes the 's' etension in ,onfigured ,ontetse,ond

    . Mat,hes on 's' etension in Jdefault ,ontet third

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    27/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring gtalk+,onf

    gtalk+,onf

    ,+enera"-

    conte*tdefau"t

    bindaddr3.3.3.3

    a""o+uests?es

    ,+uest-

    disa""oa""

    a""ou"a

    conte*t+ta"!$inco9in+connectionasteris!

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    28/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring the dial#lan )in,o&ing-

    etensions+,onf

    ,+ta"!$inco9in+-

    e*ten = s88Verbose(18Ca"" fro9 GCAERI:(a"")K)

    sa9e = n8Anser()

    sa9e = n8Mait() sa9e = n8:ia"(SIP/"eif9adsen_des!_H:843)

    sa9e = n8Voice9ai"(33D"9entinc8u)

    sa9e = n8Han+u()

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    29/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    la,ing Calls to /oogle Talk =sers

    etensions+,onf

    /talk**

    e*ten = 2188Verbose(18P"acin+ a ca"" to 9a"co"9d)

    sa9e = n8Anser()

    sa9e = n8:ia"(ta"!/asteris!/9a"co"9dD+9ai".co9843)

    sa9e = n8Han+u()

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    30/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    la,ing Calls 7ia /oogle 7oi,e

    etensions+,onf

    e*ten = _0'&&'&&&&&&88Verbose(18P"acin+ ca"" to GE&TE'K)

    sa9e = n8Anser()

    sa9e = n8Mait()

    sa9e = n8:ia"(ta"!/asteris!/NGE&TE'KDoice.+oo+"e.co9)

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    31/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Distri"uted Device State

    #sing $%PP

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    32/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Distributed Dei,e (tate =sing 8M

    er&its the state of a dei,e )bus$: not in use:unaailable- to be distributed a,ross &ulti#leAsterisk serers

    7oi,e&ail M;6 as well

    (tate of dei,es registered to Asterisk A areknown to Asterisk

    7ersions #rior to 1+4 hae >#enA6(. Li&ited to low laten,$ networks

    =sing 8M allows dei,e state a,ross theinternet

    =se Tigase 8M serer )htt#!**www+tigase+org-

    http://www.tigase.org/http://www.tigase.org/
  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    33/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Distributed Dei,e (tate with 8M

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    34/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Distributed Dei,e (tate with 8M

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    35/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Distributed Dei,e (tate

    6nstru,tions for ,onfiguring Tigase serer in thedoc/distributed_destate$&PP.t*tinAsterisk sour,e

    =ses ;abber.confto ,onfigure serers thatdei,e state is distributed to

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    36/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Distributed Dei,e (tate

    (erer 1. =sers need to be registered using idgin,+enera"-

    debu+no

    Oautorune?es

    autore+ister?es

    Oco""ection_nodes?esOubsub_autocreate?es

    ,asteris!-

    t?ec"ient

    serer7ostasteris!.9?do9ain.t"dubsub_nodeubsub.asteris!.9?do9ain.t"d

    userna9eserver1Dasteris!.9?do9ain.t"d/astvoip1secrete"co9e

    distribute_eents?es

    statusaai"ab"e

    uset"sno

    usesas"?es

    budd?server2Dasteris!.9?do9ain.t"d/astvoip2

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    37/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Configuring Distributed Dei,e (tate

    (erer 2

    ,+enera"-

    debu+no

    Oautorune?es

    autore+ister?es

    Oco""ection_nodes?esOubsub_autocreate?es

    ,asteris!-

    t?ec"ient

    serer7ostasteris!.9?do9ain.t"dubsub_nodeubsub.asteris!.9?do9ain.t"d

    userna9eserver2Dasteris!.9?do9ain.t"d/astvoip2secrete"co9e

    distribute_eents?es

    statusaai"ab"e

    uset"sno

    usesas"?es

    budd?server1Dasteris!.9?do9ain.t"d/astvoip1

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    38/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    PIC&'S&I()*

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    39/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    6TC

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    40/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    @ntertaining =ses of 6TC

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    41/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    /rowing Your Coan$ ;ith6TC

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    42/43

    Creative Innovation Customer Satisfaction Continual Quality Improvement

    Questions+

  • 7/25/2019 AstriCon 2010 - 5 Things You Didn't Know Asterisk Could Do

    43/43

    Leif %adsen

    htt#!**of#s+oreill$+,o&)Asterisk! The Definitie /uide: ubli, Beiew-

    Twitter! leifmadsen

    http://ofps.oreilly.com/http://ofps.oreilly.com/