283 79 7MB
English Pages 372 Year 2007
Flavio E. Gonçalves 2nd Edition/March/2007 rev. 8.3
iii
!"" # $ % )
234$ 51676075 3 + + % #
" # %
+, ' ' . # /0' 5 87 75
1
# + # 9 " +'
+
"# " +
%
& " , ()3
:
(
(
'(
* $
"
&
+ +
" &' -
, "
+' 2(;
% +
#
-, " +# ,
#
% (
" 74
&
, ,
74
3
. %
" "
/
,
#
#
< "
(
&!
!
2 +74 & % / " ? + ? + "
' %
3
" 74 +
'
+ , '
& , ,
',
2
%
,
>'
# + @
#
# )4; + +
# ,
+
## , " , # ? + '2 = # # + '
' %
#
# # %
&% # , , , # + + , * % ' % , , , # " " & # + '2 ( -, + # , ( & 2 @
,
, %
! !"" # $ % & " A &
# +
' %, #& " # 74
&
% , , + , # # " + ' # +# , & 2 =# + >' ( - = + ## ,
' +
,
&
)
+ #
%
%
,
"
# 9 % ' %
" # +
,
+ "#
# %
+
"
() #
/8 * % 9
,
2 #
&
#
, % ,
& )4; ( 2) -. #
&( ) "
&
# " &
"( 74 )4; % "
2 %
,
& 2 " #' & # @
v
, & " + # +
" ?'
% (
%
"
?
.9 C
# #
# ++ ? +% %, 3 + % , +' ?# + % #
, 2) =
2
+ &
2)>
#
&+ " + % & " + " +
9
% +
% # 7+
& 9 + ? ? B # " # % # ? # ( & " # .% ?%
" #
2
%
(
?
&
,
%
" '
%
" # " 7
, "
# + , "
"
" ,
, #&
" 2)
+ % & # & + ,
( 74
%
& '
+ , #& , & D> A
+
(
&
+
# =
" %
%
#
% % #
& #
"" # # + ,
"
) ++ , #&
' "
" B
#
vi
!"#$ ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &'
"#
!
$ % ! "# & ! " ! ) ! * + ,, ! ( ' .+ 0 ! " - ! 1 , -+ - -, !/ 2 '// !% 3' "!( )! " *
%
.+
-+
-
& ) $2 $ $
-
-+
.
)) *
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +,
-
$ / - /'/ !+ ! & ! % / ) .. - . -' ! ! +, ! * ! ! + - % /, ! ( - -+ / . ! " 0 ! -+ ! " 1 .. -+ ! ! 2. , . -+ . ! ! ! " - -4! !
$ '// & 3' $ $ $ $ $ $
!.+
/
"
- ! +'
& (
'!
" -
..
!
" !
'
--
!% -
"
!
$& $& $& $* $( )2 )$ )) )* )( )1 )1 *2 *2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% .'
'-+
!
-+ -
$ ! // ! & -, '! ) *+ . . -
-,
-
-
-,
- ! +'
'! -
'! !, -
-, .
* * *$ *) ** *0
vii
$( ! $ 0. $ 1 '// $ 2 3'
-
""*
.
) $/
) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0'
-%
$ - - !, & - . , 5, -+ 6/ ) 7 + .. * ! " . -% -- . (8 -, -, '! 0 /, 7! -, '! 18 -- . , !/ 2 '.. -- . , !/ 3' ( /
- ! +'
$ & ) * ( 0 1 2
!, ' -
!
-
"
!
'! !
!
5'
+
!
-+
-+
+
.
,!
-+
! - .
-
+ !
+
! ,,
!
+'
' -
+ -
-
2
-
!
.
+ !
! +
! 3' ! + , !
& & ) ) ( 1 $2 $ $ $$ $* &2 &2
! !$!) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &,'
- ! +'
$ & ) *'
% -+
'// !%
$ 3'
0 0 0& 0) 0( 12 2 2( 2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &',
- ,
/ * * * * * *
($ (* (0 (0
. -
-
1! $ !1 ) ) ) ) ) ) ) ) ) ) ) ) )
.
!%
)!* & & & & & & & & & & &
+
!"
-+
+
#
'
-- . - / -
& & &$ && &* &(
viii
*( ' *0 *1 + * 2 '// * 3' / ( ( ( ( ( ( ( ( (
-, , . '
'!
-
-
! !$!) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &34 (2 (2 (( 0$ 0( 1 1 1 1$
!
$ + - + - ! & + - + -, '! ) ! ! . * . / ( + . ! 0 . // -+ 1 3' -
-
-
! / " ) )
-
-, , .
$ & ) ! . * ! ( ,'0 . 1 ' .+ + 2 ' .+ ++ -
/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &5.
!'
1* 1( 11 22 2$ 2( 21 2 ( 1
'!
. . / .
+
.
.
. -
% '! +
.
. -
'// !%
$ 3'
" ) ) 1 1 1 1 1 1 1
-,
// -+
!%
!"#$ ! 0 0 0 0 0 0 0 0 0 0 0 0 0
)* * *$ ** *(
-
! $ &' )+ * (/
$
-
"1
$ "-
-
.. - .'
#
'
-
/ . -
!
9 - .'+ !
-
-
.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ''.
-
!+ ! / -
!/
-'
* * $) $* $( $( $0
ix
10 / . / 1 1' 1 2 / 1 1 . / 1 $. 4 1 & '// 1 ) 3' #
* 2 2 2 2 2 2 2 2 2 2
-
.
..
-
+
/'. '
.
-
-
'
-
+
' ..
..
!
!% -
2-
#
'
.
-+
+-+
$1 & &$ && &) &* )2 )2
)& )& )0 )0 *2 * *) *( (2 (
!
:/
$ $ )) "
- ! +'
"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '6,
'!
$" # !
.
-
$ .. ! - , ! & .. !" ) .. "' * .. -, ! ( .. ! !+ 0 /' .+ 1 . -/ 2 3' -
/
;
# ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '3, (& (& (* (* (0 (1 0$ 0* 0( 00
-
$ + ! & 3' ' ) * +! . + ( -, '! 0 3' ' ! 1 + - +! 2 3' -
'!
.
-
-
" -
'!
) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% '54
- ! +'
$ & ) *
!+5
!
". +
,
1! $
,
-,
-
'!
-+ -
-
".
/
/
.
/
.-
,
4/
. -
!, -
.
12 12 1 1) 1* 1(
x
(' 0 '// 1 3'
+ !
!%
2 & & & & & & & & & & & &
-
)
- ! +'
$2 $2 $2 $2$ $2& $2& $2* $2( $20 $20 $ 2
-
" *
( /
- ! +'
+/
/
'-
-
.
" * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +&'
-
!
%
-+
-+ -+ -
!
"
!
"'
!
"
-
.
.
%
/:;
.
-
/ # -,
'! -
!
"
!
"
-
/
'
!
-
-+
!/
!
!
%
%
-
!,
-
'!
-
+
'// !%
3'
-
) ) ) ) ) ) ) ) )
$! " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +4'
$ ! " +! , !/ & '+ -+ ' / ) - +! , !/ * +! ! * . -+ ,'(' ! ' 0' !+ ,! / 1 '// !% 2 3' -
$/ & ) * ( 0 1 2
10 11 $22
-
!%
$ )) " $ $ $ $ $ $ $ $ $ $ $
.
-
+
! -
-,
"
!
.. ! -,
-
"
'! -
!"#
/ "
!
'!
.. -,
. !
'! -
< $
= ? . ? 2 # ##
:
" #
+
"
" +
"
) #
I JJJ I % % # #
&
C #
+ , # I
+
"
? ) # # "
,
+
.;
• #
"(
&I )4;
(
+
* & 4
" # #
, # "(
" , '+
& 2
) + # + , # % ( & + ) # #
' I )
1.3 Why Asterisk? | 14
/ .
• % (
&%'%'
# + +
&
+
"
+
" + & #
,
,
I C )
2
2 + '( & # # 2%
+
"
2
15 | Chapter 1 – Asterisk Introduction
# ++ % ,
# #
2)
%
(
#
&%+%& ? 2"
# + '( "" %
)4; % &
9
# 2
)4; , # +
"
&%+%' !
(
&% " # )4; * % '( & & # + ' ( -' 2 2 + ? & )4; % %7 )4; , %7
# # " '( '# + ""
"
& (
< "
"
)4; = # " +
# + "
' "
& I
#
2' ( -' 2 +
"
+ +
#
'
"
&%+%6 " (
" ',
< ++ + + +
&%+%. - ? A
' 7+ , 9 & =%%% 7 " "( & , " % " ( & , , % + / / '+ # # % # # # + "
? I # ++ 9 2 ## ' " + '2 # C #& + )4; " % G # , # ,
,
,
&%+%0 3 +
+ 2 " " " # ' # ++
(
+ " '( & # -3) =3 + ( % +, # + ( & # , % + ( & ($ )< =, # + # , # " + % # # '# # "
+
" ) )
)< #
"
#
# # # ++
# # ) )< . + #
# 2 ?#
K # >% #
# > 3 + -3) # % + & (
% ,
,
# %
+ " #
# &
,
17 | Chapter 1 – Asterisk Introduction
&%,
$ #
!
!"
& '
#
%$$/
Figure 1.1 - Asterisk Architecture.
" #
#
,
%
, #
#(
& & #
#
#
# '#
$ ?'% % # #
?
&%,%& $ (#
C "
# # +, , # . & , -. K
"# '
" # # # '+
M
# > #
# + %
#
', " + 2 = -.> + # = 32)7 3.' 2(;7 %> 2 # % # , + % # + '% " + , ) . =) " + % # + 8
# +
% =
• 9 # • 9 #
-
+
8/ ) O 8 0) O
#
>
/M / /M /
" # " #
=) 2 G G =) 2 0
> >
1.4 Asterisk Architecture | 18
// ) O ! -.8 ) O -. 8 O %
• • •
,
/M / 7" #
• ? • H #& • 23-$ • 23-$8
)
" # " # ;! ;3 ;3 ;!
P@ A #
@ #&
?O! 23-$ 4 2 # , 2 %
@ #& # '
,
I
-
2 # C
,
+ /8
"
+# + ,
#
P+
%
/ +#
• 23-$ ()2 O 2
? 23-$ 2 % > % @ , =%%% @ " ? , # P? A # • # " 4 2 "" & # P+ ' % # # ? + % # , 4 ' 23-$ # , % * 23-$ # • # ? =%%% # ?# + > ) # , ' 8' 6 / $ % # /M / # , # P , # • ! + " # # # (# , . " + # #
(
/ # #
P#
# M
#
=!33
( 3(> 7
>
P
#
2)
32)
P ? ? M#
#
2)
2(;
#
O
M# G #
8 #
P G G *G G 2) # 2I *G G % & # P G G # , + P G G# ,
" "
+
% G G " (
+ + # # # ? " *G G ( & + + , &7 7 , % (
+ ""
P
# ' 7
" ( &
19 | Chapter 1 – Asterisk Introduction
&
' , &
# '
I
% & G GM ?
-
G GM
A
+
+
"
"
#
% 0 # (
P+ # &
# .
# P ## % ## , " 3 3
1 #
P
3 #
> 3 MM%%% )M#
# '
%
+ < #
2) ' , . )M
. ) ) # P & +
#
# #
)
# +
M/A
2)
&
2)
# MM# 7 P ## = . " + # , %M3 )7*!9 !
#
# 7 "
.
#
M% & M
2+ + . M (+ # # # + 2 M#
# # < # 2 # # P #
&%,%, ,
21 | Chapter 1 – Asterisk Introduction
&%6 !1 1 ( CISCO IP PHO NE 7905 SERIES
CISCO IP PHO NE 7905 SERIES 1
2 AB C
4
5
GHI
JKL
3 DE F
6 MNO
4
7 PQ RS
8 TU V
9 WX Y Z
7
P
SR Q
*
0
#
*
CISCO IP PHO NE 7905 SERIES 1
2 AB C
4
5
GHI
JKL
3 DE F
6 MNO
4
7 PQ RS
8 TU V
9 WX Y Z
7
P
Q S R
*
0
#
*
1
2 AB C
4 GHI
5 JKL
3 DE F
6 MNO
4
7 PQ RS
8 TU V
9 WX Y Z
7
P
R Q S
*
0
#
*
Figure 1.2-Asterisk overview
(
& #
=2
# ,
> +
# # '
(
# " # " % # '+ + #
/
#
# #
-. O 9
+ -. / +
# )4; -./ 2) >" # + " % # # ? %
'
+ #
# +
? G G
+ # # , #& 2= + (.2 =( &. 2 " # >S # ( & , # # # ' # " + # + ( ( & # ' , % " (, # # # + + , ' + , , " , ( & I ( -+ # + + '
##
# + , 4 # ,
# # "# '
>' # # #
' # , + & > , % , " + " + " , I + 2I + ,
1.9 Finding information and help | 30
Figure 1-12 Asterisk as a Contact Center Platform
&%5 - " * 3 +
"
&%5%&
-!
!
,
#
&%5%' MM%%% %%%
"
,> #> > > "> 2"
+
'
#
, 32)' *G G' . #
"
#
%
& , " ?
'
"
(
& )4; " "( &
? + "
+
+
# #
2) )4;
# #
#
#
%
(
# # -.8 # " ;3 #
(
&
"
,
#
# # #
'
#
#
(
)
# + # +"
#
#
&
) ( )
+
- B # ' # +
#
/ . # +
# " "
#
) + 2 % # " ( & @ # + # +
2)
#
B (
•
#
,
#
## 2) )4; " " # # K " %
"
'
++
. B
+ #&
•
(
>
&
•
,
> &>
' % %
" #
& )4; % " % " "" +
& ;! #
#
#
1.11 Questions | 32
> ,> G (
;3 #
' % "
+
)3 $
)4;
;! #
#
"" +
> ,> 8 "
.
> ,> #> > >
&
#
2 =2 ( - =( 2) ) ( -
0
+
#
# +
%
(
&
# #
"
-
%
"
"
%
?
&
.)G
> >
,
+
# "" +
'(
&
-
> ,> # < #
E #
+
,
1 O ( # # > ,> #> >
/ G / G
+
#
% ,
, #
#
PPP
#
2
+
" #
+ 2
" + PPPPP
+ ,
.
/
' ' ' '
F
"
% ?7 7
> 2 ,> 2 #> -( > < "
, %
&
8 8 / G
#
%
/
&
PPP
33 | Chapter 1 – Asterisk Introduction
6 O 2 )4;
)4; ' %
( -' 2 #
#
# + "" +
#
> ,> 5 O 2 # # #
, ,
> ,> #> #
/ O( + ? 2 2 , ! , 4
#
,
# ,
+
# # +
2)' (
#
)4; " +
>
> ,> #> > >
# #
%
: #
(
"#
,
# ,
#
?
)4; ( ( #
2)
#
& ,
+
# # #
J
# #
%
"
#
+ 9
# 2)
, &
Chapter 2 " 2 (
'% %
#
%
'
#
"
"
&
'%& ! 9 $ 1
Figure 2.1 Objectives
'%'
!"#$ !
$ % ( +
% & , #
# %"
'%+
# & "
+
+" ( & + ', % # & + ? 9 # ' , # ,
+ %
, , '
(
%
/
)< #
!
- , , %
"( , # -3) +,
) + " +
+ #
# + 2"
# )
#
#
#
""
" 3
" 41 "" 41 5 ! 6 5 !" 41 6 5 ! " " 41 6 5 ! 7 " 41 6 5 ! 5" 41 6 5 " 41 6 5 7" 41 6 5 7
8 ) 7 7 82* 5 3 8 5 8 5 %
, 7 >
$ !
&
2"
, # ++
)
* 55 %
4
4
7 5
::
" 5
7
!
9
, +
"
57 | Chapter 2 – Downloading and installing Asterisk
57 5 4
4
9
3 5;
)
7 4
'%&4 )!* - )
" )!* !
& )4;
!
+
M
#
#
8 0 77 7 * 7 8 8 ) * 5 < 8 ) 5 7 8 8 =5 77 5 "= 8 * ) 5 77 7
)
5
* " ! 7 : " 5 *
* 7
*
7
@
*
"" AA (( ,,B *
*
5 7 * 5
aR
)
%) B9
)
%) B9
)
%
)
ar
)
%
*
%)
5 77 7< ) 6 * 6 )G *
5 7 E
9
6
5 7 7
* 5
6
* 5
=
5 79 *
!
"
" *
*
* 5 7 * 5 5 7"
7
"
ac
+
* 5
8 ) + 8 * 8" * 8 8 ) 8 ") 8 8 ) " 8 @" * 5 8E ;5 7 8 8 ) " 8 @" * 5 8 6 ;5 7 8 8 8 D ) 8 8 D 8 F 8 , G 8 8 ' 8 8 25 7* 5 3 8 8 D 8 " ! 7 8 8 % 8 8 6 ! 8 " * 8
* 7
M
"
el
(
5
ha
8 8 82 8
" ! 7 9
* 7
"
)
=5 6 5 =
9
* " ! 77
*
7
!
5 " "
"
2.10 Log files and log rotation | 58
8 , 5 * 5 = 5 = ) 8 8 H ) 7)5 " ) '? -? " ! 7 8 7 " 9 ' ! 7 " 8 * %) ) 5 5 " " % ) 8 ) " 5 7 " 9 ' -? " ! 7 7 8 ) 6 * ) 7 8 7 * I ) " ! 77 7 " " 8 ) 7 ) F 8 7 5 6 6 ! " " " * 55 8 ) ) ) 6 " ! 7 " 8 ) * " ! 77 7 * 8 8" ! 7 41 " ! 7 5 41
,> 8 2I #
, #
# %
C
%
/
.,
% #
&
> ,> 0
#
2" #
#&
I "
, #
"
-. #
: H # #
,@ #
# '
? + 2,
3 4 ! # 4 "6 !I 41 4 !I 41 #
" F E,
E /
% # F / E
+%+%+ $ "
# " 9 E F F
< ?
+
, + # "
#
/ # ' # ,@ # / % % /
,@ # / E F (" " % # ,@ #
E,
F
# F
E
A=
% # ,
"
?
3 + !
?#
"'
+ +
# " % % + " # ++ # "
#
# #
#
" #
? ?
" '
"
# & \ #
+ ]"
? + 2
2
46 5 #46 5
3
#
#3 46 5 #46 5
'
\ # /
/]
E \
/F ]
E
F" E
/ GF
E
8F "
65 | Chapter 3 – First Steps
+%, $! - *# # # !"" # > # , + " # ,
*
- $
)3 $
2
% B # " # # % ? + % %
" # ? ;! %
;! = ?# )4; ? " # " + % :
B
Figure 3.1 FXO end FXS Interfaces
AB
4 4 4 4
D
L7C G / = = =
3 + & '-
+%,%&
D , D C H C > / G B = *0 2 4) )$( ' )$( C> /+$ 22
#
, +
+,
? H = >= 22 F C == A ? D > = = ?D A
, %
% #
2&44
#
%
& < + 2"
?=
D
% I %
? > = )*" ?D A
& &
3.5 SIP IP phones configuration | 66
4 " % % #
• E:
;/ ) " + 2 ) 2 #
J@ A K #
•
"E ?
+
K
- I , # # # " " 9 % + + % % % M #M: # " M #M: @ A
# + ,
'
, %
# , + ;/
% # M # # M #M
"
)'
%
"
7 &
, #
# 7
" #
"
" # ?# # "
" , "
, "
K #
3
# "
( "
,
=?
*+ 4 5 "> 4 ! " * 5 > 4! ) 5 4
@ A 2 )
5 3 + 4" * 5 55 74*+ ; 4 5 41
7
7
)
("
>
" "
?
"
"
:
% ,
%
! > 5 ! % *+ *7 P666666 666667
+%6 I , 32) #
'
/! %# C # +
"
+%6%& *
" #
" , "
$! - *# 32) % M #M 32) # + &
! # &M
32) # " # 2) # #
"
+
)4; 2
% 32) #
,
67 | Chapter 3 – First Steps
32) " +
" \
+
%
]
• %M • ,
% - " (
?
#
#
,
+
=
• #
"
"
3
% # # # # , , , ( & 32) > % , " # " # ? " #
#
#
• • • •
# , 32) ) # #
+%.%' ) # #
+
+, #"# , / #
" #
? # < ?
# '
? +,
"
# %
2
E/F / '
3.6 Dial plan introduction | 70
# ++ +, 2" / , # +
E F
?'
+,
C , ? +
, # [(
#
"+ ' ? #
,
("
9 % 6
I
+
,
+%.%+
F F
? + 2 E +
? + E #
# 7 41
3
3
41
4 - "" #
'
# +,
+
'
#
""
F
!
@
< < 5
!
@
# " + '"
?
% ]
" #
+%.%6 $
+ 6
7
, #
# "
#
"
"" "
+ ( # # #&
? %
? #
B
#
+ (#
B
#
'%
" ?
7
# ,
# % ? +
#
" %#
,
"
< < 5
?
\
5 +
7
? + 27 +
.
"
2I ) 3 + 4 ) 4" S 2 3 + 47 ) 4" S
2
, %' % F 9 L +
?
@
? #
%
=\]> ( %#
# ?'
? , % 9 %
# +
# # &
( "" +
# " +
""
# ? \ #
&
#
? ] ?
3.6 Dial plan introduction | 72
!
Figur3.4 VoIP Lab
, %
# ++ , '
, &
" # # # ) % 0 .4 (. " " B + " % # + ' ## , " ;7 " " + # " " = 3L) 7 % 2I , ;7 " + + S % # # 2 B + 32) 32) 2) ) '
+ # + ) > % ,
( & % + # = .9 ' ( # C 9 # ++ =%%% # # +>' , %%% @ , # +> + ? + , , , " , ( ( ,
A
#
B
27 53 ! " 4 : ! " "" 4 9 9 + 4" * 5 55 %4 55
2#
3 4*
"
4#
)
4"
6
4
9
8
""
)
;! +# "
)
?
)
""
#
*
6
"
73 | Chapter 3 – First Steps
A
/"
B "
A $B > ,> ) #> (## > (## >
'
?F
F
)
' ,
"
>
- "
#
"
# E
%
F
+
F
"
F""
F
F""
&>
" + # ++
%
#
A&
+%3 $
*
"
"
# I + ? ? +
(
?
& %
A
/
"
$" ) )
$ %% ?
2
$ ; 7W$ ; 7W 2$23* # , %
#
# 5
;7 2
$(
% ,
#
#
@>
A
'
2
? F
+
> " / +
+
? # ;7 2 +
E
%
?
#
#
>
-
" +
E
?
5
/
"
"> 2
>
?
"
9 %
? +
7, 7
L CA= '(
&%
#
#
'
7
D G
3.7 Creating a basic dial plan | 74
? 2
#
73 41 < < % @B 41
#
?
+ , #&=> , #&="
+
# #
,
%
#
#
?
# + # +
% =
% %
AA= ? 9
, "
#
" + , ? # + > 2 #
"
" ' "
> ? #
AA= ? B D
=>
# "
'
&M
C
# +
(
%
A:; #
"
J K
A= F> ? :; # + M ,M
=>
" # =:
E F ? #
2" %
?
#
= L +, >
%
&
'
;!
#
A ?
(
B
#
I + , #&
=>
, #&
, # "
#
$(
B
%
LA=
#
D #
"!
F$
L CA= (#
#
%
'A
% =M
""
% "
+ #
2
#
#
(
&
D L CA= " =>
? + & "
,
# #
% % + ,
#
75 | Chapter 3 – First Steps
, #& "
%
=>
?"
+
41 +
! #
#
3 +
,
=>
41 +
< !
? + " ' # E /" # ? + % % I +% + " ? # + + + + + + + + +
3 9 ?
&
#
7
"@* 5
B
+
+ ' @ + " #"# # ?' ?
+
#
(
"
+ < + < B
%
#
# ?' ?
?"
" ##
,
G
+
""
# > ,> #> >
) , #& 4 #& 4 #& ) , #&
8 9 # > ,> #> >
> ,> #> >
6 (
+
+
', + ', % % "
+ + + ( #
+
"
=# = = ? =
?' ? '# ' >
? ( ( ( (
1 ( > ,> #> >
, #&=>
, #&
=>
%
" %
"
"
, ,
&
" #
#
= ;!>
?
[ I [5I [ I [I "
> ,> #> >
, % % >
#
0
(
#
=#
=>
# + +
#
=#
'
> >
?' ? >
,
>
"
=#
#
#
%
>
#
# ,
%
EPF = EPF =
% P1\/70];; + #
=#
># #
# ># #
# #
%
>
1/ 1 1 G 1 G # + # ? " PPPPPPPPP # "
:
# + "
,
" #
"
3.10 Questions | 80
> : ,> : #> > + 5 2
!
> - " ,> - " #> - " /
# " # " " # "
) > ,>
2
# +
#
,@ # " ? " , #
++
# #
# ,@ # D
, :
,@ #
,
#
%
"
"
81 | Chapter 3 – First Steps
)
"
+
Chapter 4
2 # #
#
# '% % " # # ' % ' /' /
%
% # )3 $ 3 #
"
:
#
%
" #
"
,%& ! 9 $ 1
Figure 4.1 Objectives
,%'
)
/! >
. 9 % # = % #
+
$ +
#
"# ' # )4;> + " ' # ++ & # "
• 3 • (
+ +
" C "
#
# + 7 '
83 | Chapter 4 – Analog and Digital Channels
• 2 " + ,%'%&
< @
+
7 O9 %
4 7
#
7 2 #
## '
& 2 O4 " + )4; ' )4; ##
4 & # #
# ' " +
3 #
2! 3 " 7 " 54 ! 4 74 7 55%
" # # #
4T 4
#
#
# ,
, # : ( # ""
#
&'
""7
' =
O9 %
!
&' ""7
'%
#
#
""
&
"
"" , + "
#
#
B
> 5
> ) & % " C # ' # +, " . M + 7" C #
"
+ =
"
( % 2 # % ""
#
% # " +" , " +- .
,%'%+ 2 "
+
%
• -
#
# ++
""
#
4.3 PSTN interfaces | 84
• 4 • • • 2 •
, #& +, " +
,%+
- $
(
#
"
)3 $
)4; ' %
"
C
#
#
(
& )4;
% "
• •
•
# ++ " +" + % + # "# + = < % + # , 3
)3 $ #
;#
F
##
;! " # # # != !"" # > )4;I ? 2 # ++ # # % # + )3 $ ( # # ;! " # ? % # ++ # , % ( & # )4; 9 # # ( & )4; + ? " " ""7 + ? =!);> ( ;! " #
;3
" # "
'+ %
"
+
" ?
;3
" + )4;' 2)' #
4.4 Analog FXS, FXO and E&M interfaces | 86
Figure 4.3 Asterisk operating as a VoIP gateway
,%,%' • • •
73 73 Q % "& % "' ,
(
+ # #
# "
•
&
Q % '% #
" , + 7
,
A B < + # E 7 &F E ""7 &F E 7 F ) , , % # + " + " # ' % # # , /
#
3+ " '
' " ##
, "
,
% % # "#
. 7
2
.
•
Q %
%
% % #
# + 9 (
9 7# #
% 9
E
F
+ # # +
+ & % # '
# ""
% #
"
, # +
87 | Chapter 4 – Analog and Digital Channels
(
" G= " 7
•
,%6 &B & " *
#
# #
Q %
#
'
%
+
+
"
+
))
,%6%&
Figure 4.4 from analog to digital voice
+ " + = "
> 2 (
6
#
'
? #
" %# # + %
>'
, (
& "
", +
"
! >>
@
+ #
# 8 Q,
2
(
#
3
% &> , # + : , 2 < =2 /568 9 23-$'
# ++ % &
# •
•
;3 + ;3' #
;3 ;! =;/ % , / 7 # C
;! + .O > # # +
#
# -.8 % # = +
#
+ " #
#
;3
# &> < +
4.6. Asterisk telephony channels setup | 92
Figure 4.7 FXS Module (X100M - green), FXO module (S100M – red)
A K :
B:
#" #
#" # "
,
*+ 4 *+ 4# " * 5 > 5 "> 4
D
B ? =
4
D ? D ,
= , ? G D ,
" # M #
#
? % G == > = H D > = GD ?D
, "" '% % +, 2 & %%
= C D
5
"
+ # C
%
"
% ,
? >= D G = = CA= A ?
?
D
4.6. Asterisk telephony channels setup | 96
? +
U/ = ? />
4 < < < * 4#< < < * ) 4 # ) 4# ) 4# $ ) 4 * 5 > 4 "> 4
! " ! " " 5
? +
U = ? />
4 < <
9
9 9 9 9 9
" $$
C
) 2 2 ) 2 2
5 #++
A &B
9
#
*
C C C C
+ +, , M #M
( M
:
C
9 9 9 9
"
< 9
7
C
9
: % 55 561_ &
C
999
9
C
9
C
9
C
9
C
9
C
9
9
#
9
C
$$
C
,
C
9
9
C
C
97 | Chapter 4 – Analog and Digital Channels
9
/
C
5
T
*
9
C
#:
9
9
H
A )B
4.6. Asterisk telephony channels setup | 98
? %
7
7
)
)
' ' 7 H 5" " . H 5" " T H 5" " T
" " #
A
B
D G A 6 **
, ,%
)
'
1
@
@ A D G
6
#
) %
.
/F
J 0 1 ) % ) 5 : 6 "< < F . ,'-
. H " % 0 7 ) , I , 5 D! / T ?6 5 ' 5 # #
F5 ?N ?N /.'
"
/Y
! 6
5
6
$
-#
@ A D G ?D 6
6 ** J 0 1 > ) .+ "
#
: $
= B ) %
* +
+
" " " " " " " "
)
5
0
7
7
( " " " " " " " " "
* * * * * * * * *
? A 5" 5 5 5 5 5 5 5 5 5
/
99 | Chapter 4 – Analog and Digital Channels
#
#
" * * +
@ A D G ?D
=L
6
6 ** J 0 5 J 0 D 5 ' , .+ ' 5 7 + 55 ' 55 7 ?55 ' ' F5 , 7 55 7 / " ?% &1 / 5 &1 55% &) % &* 7 " / 5 * ', / 5 + ' (D ' 5 7 55% ' * 5 5 %
)
> # #
A 2 # B ? +
# (
1 1 1 1 1 , 1 @
1 > 1
" #
" " " " " " " 5
" " " " " " " " "
) %
)
, 7
55
* * * * * * * * *
5 5 5 5 5 5 5 5 5
5
#
:
/
7
1 1
*
F, 5 %
A
L +
# ? + " , N
# ++ # ++ # , " , # + # @
% 55 * # 5 ' Y9 @ B 55 / * 5 4 # @ * : + ( 7 ,. @ B 2 3 T ! 5 @5 4 B 2 .+ ) @ B .+ :B
, %
, &
+ #
" # % 23-$ C 5G/ +
" 23-$
+ , + ## " # , + !
4
%% "
7
5 4 $ B @? 7
Y9
B
, "
"
*
*
:
!
B
& J
+ '
# +,
F
#
#
#
@
L #
)
C
#
?D ?
.
=? A D
< @
K
# 2-
1
B =F ! = ? C ? == + / ? F ? ? ? == + F 5 F D = > >= = H ? H ? == H G D ? ? == +
,%3%,
%
# / + _
#
#
_> # /
_>
#
" + #
+ G ==
4.7 Zapata.conf configuration options | 106
) +7 +7
5%) C C
4 4
!
,%3%6
"7 "4
< # #
C ##
%
>
"
+
#
-
=#
, "
=
#
(.( "
"" #
#
:
"
-
2
• > == • ? C • C • = ??
"
?
#
+ " 4* *5 7 4! 55
,%3%. $
#
+
%
+ , # , % % "
"
%
"
( =, #&% 3 3 (
% 227/ 227 227G 2278 2270 227 2271 2276 2275 227/ 227// 227/ 227/G 227/8 227/0
+
, # ,
3 3 /
' '
#
#
3 3 /
# #
%
"
" #
" #
>
#
?
= Y/>
, # +
= 7/>
'#
#
%
3 ( 3 3 3 3 3 3 3
#
I # # + '# , % ,
#
C
#
"
"# # +
27/ 27 27G 278 270 27 271 276 275 27/ 27// 27/ 27/G 27/8 27/0
"
&
' 7 = 7 > = 7G>
# # +
" # ?#
# #
4
4 #&% (7/ (7 (7G (8 (0 ( (1 (6 (5 (/ (// (/ (/G (/8 (/0
4.8 MFC/R2 configuration | 110
3
4 =, #&%
3
-
/
3 3 # 3 , # , I
G 8 0
1 6 5 / // / /G /8 /0
>
#
< # 3 , # , 3 , # , 3 , # , 3 3 3 3 3 3 3
"
+ , = " # +, I " '# I " ' I "
(
#
4>
3 , #&% 4/ 4 4G 48 40 4 41 46 45 4/ 4// 4/ 4/G 4/8 4/0
111 | Chapter 4 – Analog and Digital Channels
,%0%+
-$B '
K )
'(
'(
#-
#-
,
#-
#-
,
#-
#-
! *+
)
#-
#-
--
. ) ##
.
,
/* 0
(
/ *#0
(
/ *#0
,
/* 0
111 ,
/* 0 / *20
%
%
4 3
/ *#0# / *50$
"
3
! *+
)
! *
)
-#
"
6
"
%
) ##
#- "
! *
)
*%
C # + # ++ #
,
"
+
(
&I
?
#
@
# +
% 2 :
"(
.0
, 3 &'
(D
" )
4
/# 4 < <
9 * 7 * +4
"
55
55
"
55
55
"
55
55
9 9
55
=>
A
" %7 9 9
)
%%%9 * % )9 7 " % 5 5 ! 9 9#9 97> P+>6* 5 ! 9 9#9 97> " 5 ! 9 9# 9 * 7 * +4
55
=> " %7 9 9
? == )
%%%9 * % )9 7 " % 5 5 ! 55 9 9 9 97> P+>6* 5 ! 55 9 9 9 97> " 5 ! 55 9 9 9 97> 9 * 7 * +4
55
,%0%3 - % %7 ) 9 9+ ) %7 ) 9 9+ ) %7 ) 9 9+
# # ;
P
#
%%%9 * % 559 %%%9 * % 5 ;( * 5 9 %%%9 * % 559 *9 5
" )9
7 " % 5
"
55
55
9 9
)9 ) )9
7 " % 5
"
55
55
9 9
7 " % 5
"
55
55
9 9
5 ! *
#
4.8 MFC/R2 configuration | 114
" )
%
;
"
559
(
)
# "
) &
$ ?'
)
&I # +
5 ;
* 5 9
(
(
# )
)
5
) 5 * 5 9
5 ;
# +
"
(
)
&
5
55
,%0%0 # B %
# K +
8 8 8 8 8 8 8 2 8 8 8 5 8 8 8
55
,
5
5
#
)
5 "
)
* 7
\ "
5 3
' *
5
7
7 4!
' *
5
5
#
#
*9
7
,
"
9
#
#
$
#
6
.+
\
7
5
55
'
"4
)
) "
55
7
7
55
'
"4
)
7
7
55
B
8 ( 5 8 8 8 8 , 8 55% 8 8 ,
""
6
5
"5
3
"5 "5 '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- ,
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+ M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
'- ,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF-
7 7 7 7
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
4.9 ZAP channel format. | 120
# #
# # # # # # # # # # # # # #
,%5 ; K() #
# # # # # # #
$/
/(D (D (D (D (D (D (D (D (D
6
55
**
1 &
.
1
& .
**
1
&
1 **
&
1
& 1
& **
1 &
1
& **
1
&
#
1
#
**
&
1
& 1
&
1 &
**
1
&
el
1
& 1 **
&
1
& $ $
1
&
**
: :
**
1
&
1
& 1
&
1 **
&
1
& F5
&
M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
Da
**
2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2# 2# 2# 2# ** 2#
vis
1
&
7
2
#
FFFFFFF. " . " . " . " '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- , '- ,
F%
%
7 7 7
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
7
3
* * * *
FFFF-
" 55 55
&
D D " 55 '
"
2
" "
" "
"@ " 4-
"
5
F % 4-
5
+
"
5
7 2 :3
5
7 7 2 :3B
3
5@:B
55@ 45 5 7 7 *%" 1 2 5 % ?? 0FMM.'_ & 2 5 55 " "@ 45 ' 55 55 5@$B / 5 55 ' 7 55 % ) /- #$: / 5 55 5
% %
1
&
6
55 6 #$: * /# 55 /# 55 /# 55 /# 55 G####G /# 55 /# 55 55 6 /# 55 /# 55 /# 55 55 6
) -! "
**
ha
$3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3
+ F F F F F F F F F F F F F F
55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55
ac
-M2 -M2 -M2 -M2 -M2 -M2 .2 -M2 -M2 -M2 -M2 -M2 -M2 -M2
(D (D (D
/# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# /# 55 /# 55 /# /#
aR
HF/HF/HF/HF/HF/HF/-? HF/HF/HF/HF/HF/HF/HF/-
(D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D (D
ar
$3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3 $3
op
-M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2 -M2
siv
: : : : : : : : : : : : : : $ $ $ $ $ $ $ $ $ $ $ $
HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/HF/-
clu
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Ex
F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F
2 :3B ! *%" ' "5 5 7 2 :3B
7
3 3 +
121 | Chapter 4 – Analog and Digital Channels
U
273& "
*
12 32 &
"
13
& " * 1 ) 5 ) 5 273 P M " * 2 3 P F % * 9 F ` W 2 3 P > " 7 7 2 " 3 7 *
"
*
!
"
"
5
)
55
"
"
5
)
55
? + > >
# 7
) D
5 # 6
5 !5
,%&4 # $ )) $/ < #
#
)
5
) -! "
55 273& "
*
7
%
12 32 &
& " * 1 ) 5 ) 5 273 P M " * 2 3 P F % * 8 F ` W 2 3 P > " 7 7 2 " 3 7 *
"
"
+
13
"
*
!
? + 55 # 55 7
,%&& 7#
D
)
)
!
/O3
#
> ! 7 ,> !""7 #> > - +" O2 "
5 # 6 5 !5
& &
+
> - +" ,> #> 2 +, > , #&
#
5
7
4.11 Questions | 122
> "> 4 > ) G O ;! .
% #
&
;3 O # + ,> ;! O % # #> ;3 O # #
>
8 O (,
" #
?#
3
,
#
,
#
,
"
#
(
&' ;3
#
#
)4; ? ?#
!"" # %
, #
'+
#
&
#
#
(+ # G # " 23-$ ) 2 # " ? + " 3
,
%%%
M ,
/
%
&
%
, "7 % #
,
"" +
/ 088 .,
%
#
3
/
> / ,> / " #> 2 , / & > 23-$ (3
#
&
?#
/
0 O . M 3
,> O > : ,> : #> > 1 O # " > ,>
#
"
:
%
"
PPPPPP "
# " # " # # " # " :
% (
" ( %
"
& 2 "
:
#
"'
123 | Chapter 4 – Analog and Digital Channels
6 O 9 % %
#
-.8 # &>
%
PPP #"# #
# #
#
#
= +
> ;! ,> ;3 #> Y. > 23-$ 5O #
'
:
> ( + ,> , , + #> ) 2 2 # " # > # + # " /
O
"
#
"
# ,
2
,>
%
%
)
Chapter 5 1
@
2
#
'% %
,
#
"
2)
(
&
#
6%& ! 9 $ 1
Figure 5.1 Objectives
6%'
!"#$ !
#
2) + # #
"
+ ,
% % + # ++ # % ,
% I , # . "
# +
%
3
'" %' + >'
C #& + % % # ++ # ' " + # @ # # # ' " , , " % &' % % ' # 2) @ 2) # # , ? % + # +
& #
#
#
# ,
" #
' 2 %
"
&
' ,
,
'%
2.3 =2 2.3
"
125 | Chapter 5 – Voice over IP with Asterisk
6%+ 1!
-
6%+%& $
@
+ , " # # =# , C #& , # + 2)
"
2) # +, # > * % ' " " +
@ #
" : @ 2) . #
# # +
% & # + , #
# , "
6%+%' ! # , +,
' %
# 2)
" '
% & " ' # # & #
+
#
%
#
# 2) ' )-( '
+ '
6%+%+ !< ' # &
% # "
+ "
,
6%+%, $
U/
" • • •
%
# # +
# ++ # "" # =4* > B
,
+ +
-
,
" + # +, " # #
" , #& 2
M M
N0 N 6G
,
"" #
5.11 Reducing the bandwidth required for VoIP | 136
Figure 5.9 Using ErlangB calculator
, ,
D D >
9 #
E E D! E
G
9($ % "
#, #
3 -
#
#
#
6%&&
H H
6%&&%& 2
? ?
9 % # # +
=6 Q,
> >
G G
D D
?D9 B ?D9 B
1 5 >
"( " /
7#
#
,
& ' "
#
" -!
* 0L M 1& 0 ">A * 0L0 M & &2 ">A
1!
%
C
"
# + &
/
+ 7 )
E
C
"#$ * /
) 2(; 2)
E
#&
+ • • •
?D9 5 = ?D9 5 0 =
1 5 + 7
& C C
> >
$
,> 8 (
&
32)
? %
#
> ,> 0 < !32 PPPPPPPPPPPP > ) ,> (
#
"
#
+
' 32)' * G G
2(;
2)
141 | Chapter 5 – Voice over IP with Asterisk
#> ) > 3 > -
# &
32) " , 2
+
#
"
2)
> ,> 1 *G G , +
? & '% #
+
# % 32)
+
' 2(;
?#
:
, 2
" %
#
'
,
> ,> 6 2(;
> ,> #> $( > ) 5 E
2
'% +
#
9 % , '
#
E 55 E 55 "
, E ' 55 , E #: $$ ' 55 55
#: $$
F 2 9 9 F 2 9 9
, ! : , ! :
9
9
5 3 5 3
F N
AF-M
'
J 0 1
#
?, , ?, ,
%
" ! 7
2(; % & &, % % ( , # + # # ++
% # & # #
#&
&
" '
# &+
2(; "7 % #& ( ,
167 | Chapter 6 – The IAX Protocol
.%&& 7# /
%
!
"
+
,
"
" 2(;
,
%
$(
> ,> 2(;
#
""
,> #> > >
=.
2(;
&
#
#
>
2)
,> 0 9 #
2(;
& +
' @
"
+
> ,> 2(; "
+ $
#
#
#
#
' , #
> ,> 1
2 %
2(; # % , %' PPPPPPPPPPPPPPPPPPPP
V
#
W #
,
6.11 Questions | 168
F
2&
6
12 &
2(;
%
> ,> ) 5 L
13Z3&
12 &
%
% # ( , ""
# "#
&
132 & +
"
#
+
12Z&
+ 132 &
,
#
#
" % "
#
> ,> / 3( & # , " PPPPPPPPPPP & # + # PPPPPPPPPPP & > ,> #> >
, #' ' ' , #'
, #
2(;
# #
B +
&
133
169 | Chapter 6 – The IAX Protocol
)
"
+
Chapter 7
3%& ! 9 $ 1 4
"
#
'
%
,
,
Figure 7.1 Objectives
3%' !1 1 ( 32)
3 2 3. ) 2 % # ++ # '# ' # , # +
3%'%& 32)
)
#
, % + ' "
? 7, : '&
#
2 % # # ++ #
"
!< #
"
+
*
+
%
# +
)
# + ,
#
# ' 2
171 | Chapter 7 – The SIP Protocol
Figure 7.2 SIP Main Components
•
'
:
•
'
:
•
•
' #
,
LF 32) ) ? !
; O
32)
+
C
"
%%%
/
0 /
0
Figure 7.6 Asterisk with canreinvite option set
32) ' 4 #&7 ' + & '
175 | Chapter 7 – The SIP Protocol
6
0
/
3 /
0
3 /
/
D
0
0
Figure 7.7 Asterisk without canreinvite option
3%'%. ,
< # 32) + •
2$ 2
•
( Q O (#&
%
•
4B O #
#
•
O#
($
#
23
•
!) 2!$3 O
#
O
O
• •
3
#
7.2 Overview | 176
•
. 33(
O3
+
32) +
? " >
+
/;; O 2 " >
+
•
;; O 3 ##
"
+
8;; O
•
0;; O 3 + +
# +
#' +
O
=
C
= +
,
>
=0
O 2
' /6 O
' /6GO
O !Q> , ? >
'G 0
=8 G O
;; O
•
=/
C
G;; O =G O+
•
,
+
•
•
+
#
#
3
S 0 / O $
> ,
=
O$
##
, >
? + . # Z #9 : 9 9 , #9 , #9 ' #9 : 9 9 :8 8! )4> )M !N $ : #* *!! D = % =& # Z #9 : 9 9 18 74 : :# & # Z #9 : 9 9 1 & # Z #9 : 9 9 :1 55 ' : T . D D . T #...T.' Z #9 : 9 9 : , E # -O . ( + D % " $ F7 ,X ) 9: 9 #! @,X 0 ! B 0 7 ) 5 " + F ) > ' 7 4=# =< 5 4= =< 4=: =< 4= # 4= # " "* ! * =< 57 ) 4('
O
-O
3%'%3 " D 3-) " • • •
.
" " +
< 2
# # =* / '
1//
# , ' 3-)
+
+ '
#
'
#>
=
, %
% 64 4 : $ : $ 4,X ) 4 #9 : 9 9 : 4 4 6 4 " : / FO 4 M,( 4 $ 0T 4 0T 4* " 4# 4 (F 4 ( 4 5 ) 4* < :
3%+
"1
2 # ) ' # EM #M
#9 : 9 9
# % 32) &M
6
'% & $ % % # # #
! # I +
, + %
% ( ( 32) #
#
&
"
# # 32) # # " 2 & # # 32) 32) % # "
(
"
"F
< @ "
# "
, # +, #
#
&
3%+%& $ (
:
$
$ " $
( ?
-
"
# 2)
&
2) ,
" # ++ 2)
2)
#
# 2) " # (
32)
#
",
( -2-
# 2
#
'
%
%
7.3 SIP advanced scenarios | 178
Figure 7.8 Asterisk connected to a VoIP service provider
#
C ,
, A
" + %%% " % +
\ 7
% % %' % # +'
,
#
B
7
9
32)
: A?
;
#
(
&
( #
#
"Z*%"9*%"
D OA
2*%"3
)
( +
"
" %
"
"
H
% ]
+ 4 4* " * " 4 * # 6 4 4:# 4 4*%"9 56
&
#
,
"
A
41:#
A
# ( ##
B!
#
2
#
#
""
&I 2) 32) &I 2) ?
,
%
+
"
2
8/
9
P: A?
; &
179 | Chapter 7 – The SIP Protocol
* *
4:# 4*%"9 46 " 55 %4 55 55 %4 5 %
"
56
9
A $B 9 % U / + + + +
D ,
#
9< 9< 9< 9
7.5 SIP NAT Traversal | 190
( +,
,
32) 32) E
%
, #&
,
" (
) 8 / 8 27 8 8 / 8
+
=
+ '
#
7.6 SIP limitations | 192
" 32)
A$ "
" ## +
5
+
( #&
& # %
,
5
4# 9 9 9 : 4 #9 : 9 9 #
"
+
#
? 3-) =3 +
8.+ 9# 9#
5 9
8
""
-
5 -
# #
%
)
# >
B
""
F""
4
= ; 32) = ! ( $ >
+
!
#
3%.
)
(
$2)> " % (
E ?
( ? &
&
#
?
2) #
""
F "
?
-
+ # -$3 %
-* )
!
&
32) #
)
3
#
2
5@, 5@, 5@, 5@,
$) $!
"
9
9! B : ,> #> >
#
+
PPPPPP
2(; * ) *G G 3. )
32) # > ,> #> > > G ( > ,> #> > >
PPPPPPP
"
=+
&
>
# 7+
+ 32) # + < ( . )3 $ 3 ) ? 3
=+
>
%
3
8 4 " 0 ( 32) , % 2 , %
&
#
#
#
# + # +
) +
'
'
+
"
' ) !;B ? + ' #
PPPPPPPPPPP -2
+ #
'
#
> ,> 2 > ,>
? +
" %
"" 32)
,
32) )
?
# ?
7.9 Questions | 194
1 (
&
32) )
?
N &
M
> ,> 6
#
+ @
+
( #
(
" #
& #
"
+ +
2 % #
,
> ,> 5 (
&
#
> ,> /
$( > ,> # #> ) > 3 ++
# #
32) #
"
"
+ 2
195 | Chapter 7 – The SIP Protocol
)
"
+
Chapter 8 < +
+ 2
, , +, M #M #
+ &M ?
2
( ,
# #
, #
"
" %
" " )4; ( & + %
#
0%& ! 9 $ 1 4
"
#
Figure 8.1 Objectives
'
,
,
( # % #
"
197 | Chapter 8 – Introduction to the dial plan
0%' 2
%$! - - )
!
#$ #
Figure 8.2 Extensions.conf file structure
? #
" %
#
%
# "" , \ + "
# ,
]
# \
=
" ,
"
]>
\ " # %
"
] #
#
0%'%& L
M #
" &
"
4 "
#
%
#
" +
%
#N
, ?
•
G ,
A ? B 2" 2 # ++ ^
#N
'
#
^
• •
== D " *($
, #
"
4 4 4
, =( , Re ; $f
, % + ""
\
, ]
#
B9
A # ,
"
E3 =>F # # # "# #"# ,
# #
(#
# # , %
,
# +
+
#
+
" ?#
%
#
Re ; $f ? Re !$ ; f # Re ( 2-= + >f Re ( 2-= +>f Re ( 2-= >f Re) 2! 2 Bf
#
# * %
A
@
" #
" f
!5 B4
0%6%' $ #
+
#
, # # ""
?
+ + +
#
"
?
#
2-
, , + #
< # =7> # =a> =M> =_>
!< # # #
• • •
E($-F =`> E! F =d> < +
?< ? ? ? & "
+ # = > ? # + # # #
?
#
!
%
# ,
% # #& + #
2" + # ' +, "#
# ? + # ## " + # # + #
< "
• • • • • •
?
?
+ #
$
=D>
&
+ &
%
"
"
^U^
#
Figure 9.4 Record() application
?
' • • • •
# %
# ,
"
+
#
"
+
%
=% ' , " #
2"
"
%
^" + ^ " + " " , ^ # ^ +, " # " # ^+ ? ^ + ?+ + # + : + ?+ + ^ ^+ # " " %
#
+'
#> 2"
229 | Chapter 9 – Dial Plan Advanced Features
^ ^ ^ ^ ^C^ ^ ^ ^^ ^?^
o o o o o o
? % C &
# #
',
=
# % >
, #
" ^a^ +
"
%
% & =- . > =- . > &
+ &
" #
"
^U^
7 2" " + # # + ,
!
+' 3 + " "
, (
#
# (
* % '( & # , " ( ( & )4; 2 + % ?
" : %
#
)4; " + ' + U=
% " #
'% # ,
)4; " %
"
($3 ? # ,
, )4;
&
255 | Chapter 10 – Using PBX features
Figure 10.2 where the features are implemented
&4%'%& • • • • • •
.
.
^+^ 77 + ^.^ 77 , + # % # " # ^C^ 77 C + = ^ M > ^ ^ 77 & + = & ' > ^/^ 77 + % "
#
Figure 10.8 Meetme Application
< ,
[+
+ + &
: #
'
+
%I + ' + :
2 # ++
++ &
#
, : I
# + 2" +
# : +
#
? A . . # " # # #" ' ,
) :
# +, # ^U^
++ > + # P: #
K ,
+ #
&
#
+ "
' # ,
+ " # " + ,
#" ,
% 7
. + ' "
. #
"
#
^ ^
% #
:
= 2
"
^^
+
"
'
^ ^
"
%
# • • •
•
^ ^ 77 ^(^ 77 ^,^ O Re. ^#^ 77
+ + + & + ( 2 # #" . P( 2P4( Q ! # + =,> # & + # , , #& ^ ^ 77 % ? # " # , ^U^ ^)^ 77 % + " " #" ^C^ 77 C + = ^ M > ^ ^ 77 # # " # = # Re. . P ! -2$ 2 f " + Re. . P ! -2$ ! .( f> - " " + + + 7# "7 #7Re !$ $!f7Re% ^a^ # =^ ^ + > ^ ^ 77 & + = & ' > ^ ^ 77 & # = + " # + + > ^%\=V # W>]^ 77 % + & # " # ^?^ 77 # # " # % + & ? ^;^ 77 % ? # " # , ? Re. . P ;2 P !$ ; f # # ? " , " ^/^ 77 + % "
• • • • • • • • • •
• • • •
• • • • • •
•
&4%.%' "
#
"
*
(
#
+
+
? + 8 8 8 8
* 7
)
27 8 "
* 5
* 7
53 ! **
* 5
4 #
(
5
"
8 ) 8 %) 8 8 *
*
*
6
!
*
) )
"
F
55
* # 7 " * *
" * 8 5
! ** * 7 G" I
*
9
@B
!
G
! " U ) 5 % 55 55 % " )
6
10.6 Call Conference (Meetme) | 264
8 8 8 8
8 2 8 8 8
" ** < ! ) " * + 6 5
7
5 )
)
#9
) 55 % * 9 (
*
G
5
6 5
7
)
#
7 ( 8> =V?W> 7 ( 8> 9=V?W> 7 ( = 78
V# ++ + #
( ++
# +
#" '
#
" " @
#
" ,
@
&
@ 8>
#
'
#
,
"
" % #
+
% "
% #
,
+
,
" #
" V?W =
78
+
,
" #
" V?W =
78
,
&
+
,
W% , ? # % # ( ge;f % , # Re;f , % + , .2;.!$2 ! P 2 $(. % # # # #
(
+
2
" #
%
+
" #
" V?W
, "
a/
+
267 | Chapter 10 – Using PBX features
? + + +
41; 41;
< # ,
# ++ " ""
#
,
4 6
82 53 8 " 4 8 ) % " 7 8 * 8" 4 6 8 5 4
8 8 D 5 8
E+
""
&
% , % $ N" F (
#
% %
" +
# # &
+
5 !
% !
6 B
) " 5
) 5"
Y
%
/
#
269 | Chapter 10 – Using PBX features
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
)
5
@
"
)
* 5
"I
% ) D 5 G! G *
-? . *
)
"
!
5 * "9 D 5
) 7 @
% 55 !
* " " < 5 " 5 5 7B< " 6 5 6 5 !5 9 * ) * 5 6 5 !5 ) 5G " < ) % 55 ! 5 ! % 5" " ) " * % )< " ) 5 ! 9
7 = 5 ) * 5 " " ;! * ; ; ) 5" % 55 " %) 5 " 9
)
#
+
#
%
[I
+
? # ?
%
[I
# #
273 | Chapter 10 – Using PBX features
)
"
+
Chapter 11 $"
$
"
A
&&%& ! 9 $ 1 !%?
4
"
• = • • •
,
-
,
? == B -
,
CB F 2 #
,
" ,
B-
C C ""
##
#
? G
+ +,
C
+
, %
%
+ +, #
+ +,
+ +,
%
+
, %
+ +,
,
%
+ +
" %
2
#
+ +,
%
11.5 Agents | 278
&&%6 *
2--
Y
) "C
/0 4 ) ) ( 1 % Figure 11.5 Agent login process
( (
? #
# "" # "
? # #
B
! !
7
*
41 7 41 7 7
&&%6%'
(
"
% + + & - =( MV
+ W> B
""
\d
# =+ + + , a , a + S% ? C " +C .!* " # " % # % #
>
# + +,
# & &
. .
Figure 11.7 The queue() application
" C #
# # #
C "
# +
# +
# #
:
# +
C "
"
" %
11.6 ACD related applications | 280
! • • • • •
^ ^ 77 ^ ^ 77 ^*^ 77 ^ ^ 77 ? ^ ^ 77
7C % # % #
=+
#
"
+> # =+ 7 , 7 , + S % %
C
% • • • • •
^ ^ 77 ^ ^ 77 ^ ^ 77 ^%^ 77 . ^9^ 77 .
" % %
# # #
%
#
%
%
'
#
,
C
&
#
&
&
( 2 # #
" # C
#
"
#
H<
,> ++ #> C # " > # " 6
2
,
H
( H . +, =>' . +, => ,
(
=>'
#
" #
#
' ,
#
?
# > ,> 5 E9 ,
+ F #
+
"
#
# +
#
> ,> / C
( #
> ,>
#
, "" +
:
2-
+
Chapter 12 1 &'%& ! 9 $ 1
Figure 12.1 Objectives
&'%'
!"#$ !
# + # + + 2 # # & ? "
# + # + , # + $ %%
: ' S , 2)
+
2 '
% + + + ' # +
+ &
#
+ # % # + + % + , # +
7
291 | Chapter 13 – CDR and Billing
&'%+ $! - *#
!
)
Figure 12.2 Configuration task list
#
"
&'%+%& $
# +
"
@
Figure 12.3 mailbox configuration
%
%
12.3 Configuration task list | 292
# + % #& \ ] % # ?
# # # %
" #
"
# + #
, + , ?
"
" +
%' % (" , ?
? + 27
53
2" * 5 3 # 41 # # + . ( # +
=. ?+ #+ I
[+ 5
" 4
2 - ,
!
"
- , '
7
# # + [ +" +
# =
&'%,%& $ # , , • • • • • • • •
"
+
# +
#
. ( + - , "
" 7+
5
,
* 7
B # + + 7+
B
+ => + # I [ + , ?
)4 4
" 5
"
# +
?'
. (
?+
#
"
?+
* 7
+ & . ( , , # + + , % 7+
7+ "
# > +
3. ) 7+
" % ( &
F
#
%+
"
7+
,@ #
.P$(. .P-< .P.3 $ 4 # "" +
> ,> 8
? > ,> a #> U > 5555
# .
.
"
#
+
301 | Chapter 13 – CDR and Billing
0 9
,
2 E
%
# +
\ F+ & " #
# N
] (
=>
#
#
?
"
# + "#
&
# ,
" " 7+
"
,
+ %
"" +
> ,> 1 +
E ,
"
F + & + + , ?
+
7
> ,> 6 9
, % %
" &
+
"
# +
E9( F
2
,
, 5
2 ,@ #
, ,
+
J
/
#
+
# 9
+: ,
7+ #
% ,
+
,
,
# +
" #
+ #
"
7+ 2-
PPPPPPPPPPPP
Chapter 13 $ &+%& (
"
!"#$ ! &' & +
" +
&
# "
#
+ '
+ #
% ,
"
# #
+
"
, '
# 3 , )4; # ' +
&+%' ! 9 $ 1 4
" -
• • •
'
#
% . 3H #
# , %
2+
+
&+%+ (
#
-
',
M
"
+ , # +
, # %
,
$" -! &
M
,
M
" &M#
#
- # (##
=
' 7#
? " "
#
>" # # 3 =# ++ : " %
#
>
"
-
(## 3 # -#
?
-
3:
$ +, 2- $ +, ?
? ?
2- %
+ '" + % 7 = # > 9 * # =($39 -' $! ($39 ' 4 2 +
C N
#
" ,
"
#
P
P+
C
#
=
D
13.7 Applications and functions | 306
E5
L
V $
W%
/.F . 'F FTF,.
"
%
"!8
M/F-,./ ?9J ? Z5 5) '.- D .' T] G
,.
&
G8
"!8
/.F . FT0. b " b @ b 55" b " -? - 00 " * 5 G b 5 "b 6 ) @ B -? - 00 " * 5 GG< b b 6 ) @ B -? - 00 " * 5 GG< b" b 6 ) @ B -? - 00 " * 5 GG< b" + b 6 ) @ B -? - 00 " * 5 GG< b ) 5b 6 ) @ B -? - 00 " * 5 GG< b" ) 5b 6 ) @ B -? - 00 " * 5 GG< b5 b 6 ) @ B -? - 00 " * 5 GG< b5 " b 6 ) @ B -? - 00 " * 5 GG< b" b @ B -? - 00 " * 5 G G< b! 55 b @ B -? - 00 " * 5 G G< b" b 6 ) @ B -? - 00 " * 5 GG< b *5 7 b @ B -? - 00 " * 5 G G< b " b 6 ) @# B -? - 00 " * 5 GG< b * 5"b 6 ) @# B -? - 00 " * 5 GG B8
F0 ./ F0 ./ F0 ./
FT0. b " b F'' FT0. b " b F'' FT0. b " b F''
!
-'. -'. -'.
# ++ "
E5
%
%
)$
3
!
## C @ '/@
+
E#
%
"
"! & " 9 E5
" -# $ ! ,
&+%3%& $" D
,
"4
#
3
? "
# ++
4
&+%3
,
@ b 55" b B8 @ b" b B8 @ b " b B8
# ? #
G
"
? +
CF
307 | Chapter 13 – CDR and Billing
## # # , Re - = ## # >f
&+%3%' $" D ,
@ '/@
3 ,
"
!
$" DE
$
#
&+%3%,
,
*5 7 B
,
&+%3%+ -
#
E
*5 7 B4
"
"
"
"
' + '
&+%3%6
,
-
2" Z%Z
D$" D
-
EN1
&+%3%.
Chapter 14 ?
*
&,%&
!"#$ !
2 ,
+ # +
? 2=
, + #
# + ""
3 #
&I
2
% # ++ E " # '% % " # >' % # , (
,
2
&
=2
#
+ &
" ( 2 =(
# 9
, , % # 2 " #
%
(
,
&
? #
+ +
2 # # , ? (.2 =(
"
"( )4; ' % + > " # ( & % # S " ' 2 # % % &. 2 " # >
( & O ?F
&% + '% % 3 +=> # ( & % " ( 2 =( & % & # ? # + % ? 2M!' + # # # > %, #& ( & 3 ( " # '% # # + # & ' ,, (.2 =( &. 2 " # > % 2 " # >% , #
&,%' ! 9 $ 1 4
" • • • • • • • • •
&,%+ ( #
#
,
,
- # , ## ? + < E & O ?F # ++ ? # # # ++ < 3 +=> # ? + ? % (.2 % % & " + # "" , (.2 ? # ( & (.2 # ++ " + )*) + ? % ( &. ) ? % % & - # , "" ( 2 =( 2' ( 2' ( 2' ( 2> ? # + ( 2 +# % )*)
9! ( > & "" '% % #
&
! 2 %
" " # %
?
+
2
313 | Chapter 14– Extending Asterisk using AMI and AGI
• • • •
? # ++ +=> ( # &. & %
3 ( (
&,%, 2
" *
( # # ++
#
( 2 2
&
" # 7 (.2 " # 7( 2
( / $! #
P + &
(
$)
!)
&"
+
?
"
%
"1
? + P + `
%W
# ++
%
#
a
-
+ =
2
5
, #
) %
A
9 9 9: **5 3
&
F 0
#
,
:
)$
!
?
#
+
^3
+^ N7
]
+ # ++
\- # ] 3 +=# ++ " ' # " ? # (2 < 3< 33 3
&,%6%&
>
#"
? #
# ++ , " 3B3 .3 ( 3 #
! ,
)# #
#
"
#
##
'E
F' E% # ""
+
"4
3 4
)
55
,
%
%
# ?
(
# &
>
( % # 2 " #
#
( 2' % " M
M
% +
# ' & )4; 9 ?
=(
# +
#
&. )4; "
" # ' + (
&
" # ? + & O ?F # ++ " + $ ?'% 3 +=> ? +" + (.2 # > # 2 " # # ++ # " + '% "" " ( 2" # ' ( 2 + ' ( 2" ) #& + ( 2 # # # , ? %
% E
14.12 Questions | 328
&,%&' 7#
!
/ 9 #
"
"
%
" #
+
"
(
&J
(.2 , ( 2 # ( &O ? 3 +=> ? => (.2 =( ) #&
&.
2
" # > ,
#
,
(
,
& # ++
"
, G (.2 #
" ', #
#
.-0
M
, 8
# + (.2 , ( + # 3 ?
0 ?
#& "
# #
# ,
, #
" (.2' % # , +
?
( 2 % + #
#
" ? #&
)
# =
" + 801G>
, -
,
( 2 32) 2(; #
#
#
2 #
,
K() #
,
329 | Chapter 14– Extending Asterisk using AMI and AGI
1 !
#
,
"
( 2 #
, 6
# ++
PPPPPPPPPPPPP
5
# ++
PPPPPPPPPPPPPPPP
/ , ( 2 PPPPPPPPPPPPPPPPPPPPPPPPPP
%
, % # ++
( 2 # ++ ,
(.2 # ++
Chapter 15
&6%& (
!"#$ ! &
%' (
? " " ' • • • • ( ( 22' .
#
& # M #M + &
$ # . + * $
" # ,
#
## +
& # '
&
# +
+ '
%
# 2 %, #&
"
+ M #M , = " ,@ # %
"
% (
( &3
,
" &
&
"
"
+
"
" " # ? % '%
"
# ? " ,
#
, (
% % 3H , ( -() " # & % ( & ? " &M ? # " # " B # + # " ## " > + ( &
. % , " "
&6%' ! 9 $ 1 4
" • • • •
< 2 +
#
. 3H " 2 +
'
% ( ( (4
, + ( ( . 3H +
?
, "(
&
+
+#
331 | Chapter 15 Asterisk Real Time
&6%+ /!( "!
2 #
%
+
#
#
# ,
#
"
+ # ,
%
3 ( 2 < ( 2. <
& "
+ %
9 ,
337 | Chapter 15 Asterisk Real Time
E5 P
A
P
B
>
E51
"
!
E517 *
G D " !
A &B
55 G
L
6 5 7 G8
- %
% D
"
%7
"
[
?
%
" 9
7
GZG5
D
?
&F >=
# +M C 5
"!
"
9 E5
&
5
9 E5
% == ADACF 55
)
>
G
# ++
&I
A *B
F &
7
E5
%
"
5)
G
A$
15.7 Lab 2 – Installing and creating the database tables | 338
)
+
+
#
,
#
#
339 | Chapter 15 Asterisk Real Time
A (B 2
?? P+
27 "!) "! "! "! "!
C #
D
>
"
53 4 #$9 9 9 4 "! 4 4 4 :
&6%0 ) 2 , A
+ I $! - *#
,% % # "
#
B
*
" ?# ,
L ?
B!
=
C
L
"
#
"#
?
8 / 5 * 7 7 8 8 5 * 5 * 5 8 * 7 7 6 " ! 8 " ! " !5 @ ) 8 ) * 5 * ) !5 8 8 + 5 41 "! < < 5 !5 + 41 E5< "!< +;! + 41 E5< "!< +;! 41 E5< "!< ;! 41 E5< "!< ;! 6 5 41 E5< "!
1%
G D D (
,
C &
&22(
341 | Chapter 15 Asterisk Real Time
+
C 7
&7 %
77W < < "
E
&F % + # +
%
&
#
? +
, " #
C #
2"
"
'
use asteriskdb; insert into extensions_table(id, context, exten, priority, app, appdata) VALUES ('1','teste', '40007','1','Dial','SIP/40007');
A 0B 2 # 2
(
"
#
% # NW
&
+
?
+ M
A ?
?
#
#
asterisk-server*CLI>extensions reload
#
A1B
A
2B -
"
"
+
&6%5 #
>
!
'
#
# "
"
% %
8
,
##
#
#
%
&6%&4 7#
!
/
7 +
(
,
&
#
"
( ,
1
&
+
"
" # # + # ,@ # 9 # # ( (
% . 3H
#
"
# ,
1 "
?
, ? !-4 7 + 3 + # "
#
8
(
&
"
" %
,
' # #
15.10 Questions | 342
O
# + ,
( (
,+ C # , . C7 # ) ) GO
" %
"
. 3H
,
"
%
,
/ 7 78 /
"
,
I 2)
"
? , #
%
#
"
# " P+ C # " ?# " # "
87
" + 3 , # ! 2)
?# " ## " + # ,
"
#
" %
# " #
#
,
,
" ,
0O2
##
"
'
# (
+#
,@ # %
&I + +
"
+
, #
, O9 # #
32) # EC " F ?
# " E.92F =+ # +
7 + '
I
%
, >, # " %
# #
, + # 32) # & $(
,
#
# 2I
,
2I
,
1 O 2"
% $(
# #
,
# ,
+ & . # + # .92
# ,
$( , #
9
# # 32)
"
%
C %
%
32) #
"
& # ',
'
343 | Chapter 15 Asterisk Real Time
+ % , E # # " # ! .92 $( ' 6OB
#
# N
" F
% #
, # " ? #
$(
" ,
"
"
# "
( (
, 5O)
+
+
%
7 +
, / O # "
,
, "
, #
%
?
"
"
Appendix A 7
8
$/
7(7 6 (
# + # ? " PPPPPPPPP # "
:
# +
,
" #
"
747 5 2 747
!
2
#
++
, :
#
"
"
349 | Appendix A | Answers to exercises
/
)
747
+
, #
#
D
Chapter 4 | 350
$/
,
/O3
#
7 (' 4'
7
O2 "
+
7 4'
' -' '
G O ;! . 7 4'
% #
&
" %
#
" #
,
"
(
&' ;3
O
8 O (, 7
#
/
/
'+
&
#
#
"" +
'-O
0 O . M 3
? N8 ' '- =32)M8 `32)M8
/
3
#
# # +, \ ? ] ? NWP5;;;;;;;;;;'/'-
)4; , # # % , " 32)M8 / +
(
+
'
/'/0>
"
)4; , %
& 9
?
=K()M /MRe ;
( "
$ /f'/0>
& 9 #
359 | Appendix A | Answers to exercises
$/
5
/ #
#
+ 7
NW #
? dV +
+ #
,
NW
#
?'
WdV%
&
# WdV+
WdV+
W
%
+
d 6
7/6
d+
7" dada
7(O 9
E F , , , " %
# ? , G
+
+ + + +
41 41 41 41
,
%
7 ('
'-O
8 #
# #
&
#
+ : #
#
#
+
>
605
#
#
& " + +, B +
NW
% =+
?
?
# +
B
'(
# < < 7
PPP #
#
Chapter 10 | 362
/
2
+ +
7
O
+
#
' "
%
363 | Appendix A | Answers to exercises
$/
&&
/
" '
" , '
2
,
#
# +
G 9
# '" %
C #
# MF
?
'
+ +
, % C
% "
+'
# #
""
# #
'
+
=\
+,
]>
#
7 (' 4' - 7 8 7 (' 0 (
C
&
I 4 #&
"" =>
#
"
C
O 9
' A
D
= A
T ==
9
? . D E #
C
#
, %
#
(
=>
:; AA= ? A D AD 9 D ? == D :; F D A D AD D = 5 D AD G == D A ? H '
#
# 7
#
"
#
# +, PPPPPPPPPPPP
" "
A F
D ? ==
C
#
"
O
1 ( 4 #& PPPPPPPPPP
# +
H
( H . +, =>' . +, => ,
(
=>'
#
7(O 6
2 #
747
,
#
' ,
#
?
Chapter 11 | 364
5 E9 ,
+ F #
+
"
#
# +
#
7(O / C
( #
747
#
, "" +
:
2-
+
365 | Appendix A | Answers to exercises
$/
&'
/
"
7 -' 2
# +
#
"
O
%
# + PPPPPPPPPP ,
7
O
G
# . # +
# #
.
'
+
E F
=> # "" +
"
E,F +
#
%
PPPPPPPPPP +
+
74O 8
?
# .
.
74O 0 9
,
# .
=+
2 E
%
# N
# +
, ?\A#
\ F+ & " #
=>
? ]\`+
] (
#
, ?\A#
#
? ? ]]\
"
]\d
# + "#
&
]>
# ,
" " 7+
"
,
+ %
"" +
74O 1 +
E ,
"
+
F + & + , ?
+
7
74O 6 9 747
, " + % % &
"
# +
E9( F 2
,
Chapter 12 | 366
5
2 ,@ #
, ,
+ J .P (
/
#
# 9
+: ,
7+ #
+
,
,
+ #
"
7+ 2-
2-
+
% ,
# +
" #
+
#
367 | Appendix A | Answers to exercises
$/
&+
/ 4 #
"
'(
&
#
-
M
M
M
&M#
7#
74O (
&
7 ('
' -'
G (
%
,
O &
-
&
"
7(O 8 9 #
(
7 (' 4' '
& + "
O
0
#
2" # ++ #
# : +!: ?? , Re( ""
$
, J
" +
- ' #
;M; ## !
#
,
"
$! - => - => :
- => #
# 74O 1
"
"
# #
% # +
#
P# (
+
'
#
&
74O 6
#
+
,
(
""
# # +
#
# 7 (' 4' 5
O
# + # + #
% ""
#" +
"
=>
Chapter 13 | 368
7(O /
" #
7(7
# -
# ++
%
369 | Appendix A | Answers to exercises
$/
&,
/ 9 #
"
7
"
%
" #
+
"
(
&J
O (.2 =( ) #&
&.
2
" # > ,
#
,
(
,
& # ++
"
74O G (.2 #
" ', #
#
.-0
M
74O 8
# +
#& "
#
)
" ? #&
#
,
" (.2' % #
74O 0 ?
( 2 % + #
#
#
" + 801G>
=
7(7 -
( 2 32) 2(; #
#
#
2 #
,
K() #
,
74O 1 !
#
,
"
( 2 #
74O 6
# ++
D G
5 # ++ # ++
C
/
( 2
,
%
,
D G ? CC
# ++
( 2 # ++ %
,
>
(.2
Chapter 15 | 370
$/ /
&6 (
&
7 +
# + ,
( (
"
(
&
,
74O O
%
. 3H
,
"
%
,
7 (' 4 O GO
" %
" 7
"
,
I 2)
"
O
87
" +
?# "
"
#
" %
# " #
#
,
,
7 4' - O 0O2
##
"
' +#
# (
,@ # %
&I + +
"
+
, #
74O O9
32) # EC " F ?
# #
# " E.92F =+ # +
7 + '
I
%
# #
, >, # " %
, + 7 4'
O
1 O 2"
% $(
+ #
"
%
32) #
',
.92
74O 6OB 7(O
#
? #
"
"
"
( (
'
371 | Appendix A | Answers to exercises
5O)
+
+
%
7 +
74O / O # " 747
, "
, #
%
?
"
"