Date post: | 05-Jul-2018 |
Category: |
Documents |
Upload: | prana-dita |
View: | 241 times |
Download: | 0 times |
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 1/39
ttp://www.irontec.com
Asterisk, Instant Messaging and
Presence, ow?
saghul
Saúl Ibarra orretg! "saghul#gmail.com$
http://www.saghul.net
http://www.sipdoc.net
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 2/39
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 3/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
6
7his presentation
● http://www.saghul.net/blog/downloads/astricon%k'/ ● http://www.slideshare.net/saghul/
– Slides
– omplete con2iguration 2iles
–
8atabase eample data
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 4/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
9
Inde
. Asterisk and presence status
%. SIP SIMP; or <MPP?
6. 7he <MPP solution
. =pen>ire setup
9. 7he SIMP; solution. amailio @ Asterisk setup
*. onclusions
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 5/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
*
hat we do ha0e now
● Asterisk SIP support BchanCsipD – In4dialog M;SSA+; :4B
– S-ESFIE; and =7I>G support ● >or ;0ent: dialog
● hat about ;0ent: Presence? :4B
– o P-EIS5 support :4B
● Asterisk <MPP support – resCHabber
●
abberSend, AEE;FCF;;I(;, AEE;FCS7A7-S – chanCgtalk, chanCHingle
● Am I missing something?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 6/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
J
8o we need presence and IM?
● 1I want to talk to )ou, not to )our phone3● Are )ou a0ailable?
– >or an audio con2erence?
– ust 2or IM?
–
>or whom?●
ere are )ou? – Mobile
– =22ice
– 5ome – ...
e need to know i2 a user is a0ailable
and what his status is
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 7/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
K
hat we need
● A presence ser0er● -sers ma) publis their status● -sers ma)
subscribe
to other users status●
Instant Messaging between users
Is it possible onl) with Asterisk?
=
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 8/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
L
SIMP; or <MPP?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 9/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
'
SIMP; 0s <MPP
● 8id SIMP; rein0ent the wheel?● arge companies started adopting SIMP; BMicroso2t,
D – Propietar) etensions :4B
●
<MPP does not pro0ide 0oice capabilities – ell, there is ingle...
● I2 SIP is the (oIP protocol: wh) not use it also 2orpresence and IM?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 10/39
7 e <MPP solution
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 11/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
7he <MPP solution
● Integrate Asterisk with a <MPP ser0er
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 12/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
%
=pen>ire
●=pen Source
● a0a based● Multiplat2orm●
Asterisk integration plugin
● SIP so2tphone plugin● +atewa)s to multiple mi ser0ices: MS, Gahoo, ● ;as) installationN
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 13/39
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 14/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
9
=pen>ire BIIID
● eb based con2iguration● lustering architecture● onnection to the Asterisk Manager Inter2ace
– Multiple connections
● Mapping between Asterisk SIP users and =pen>ire<MPP users
● Multiplat2orm a0a client: Spark● >lash based web client: Sparkeb
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 15/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
*
=pen>ire BI(D
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 16/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
J
=pen>ire B(D
● hen a user is talking =pen>ire puts it 1=n the phone3
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 17/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
K
=pen>ire B(ID
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 18/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
L
=pen>ire B(ID
● hat we get – Instant Messaging
– Presence
– +atewa)s to other mi ser0ices
– 7et con2erencing
● Problems – 8uplicated users Bwe could partiall) 2i it with 8APD
– eed to handle % protocols
–
ot man) so2tphones support SIP and <MPP – 8o an) hardphones support <MPP?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 19/39
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 20/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
%&
A comple protocol
● SIMP; I;7> working group – Presence F>s
● 6L*J, 6L*K, 6L*L, 6LJ6, 99K', 99L&, 99L%, ...
– <AP● 9L%*, 9L%J, 9L%K, *&%*,
– Instant Messaging ● 69%L, 6''9, 9'K*,
SIMP; is =7 simpleN
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 21/39
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
%
7he SIP solution
● Integrate Asterisk and amailio to pro0ide IM and
presence.● -sers are registered to amailio.● I(I7; reOuests are routed through the Asterisk ser0er.
–
Asterisk Feal7ime user integration with amailiossubscriber table.
● P-EIS5, S-ESFIE; and M;SSA+; reOuests arehandled b) amailio.
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 22/39
%%
Fegistration
F;+IS7;F
Store location Asterisk doesnothingN
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 23/39
%6
amailio Q Asterisk Feal7ime integration
● Asterisk peers are amailios subscribers.● M)SR 0iew so that Asterisk sees the users as his own.● Peers IP amailio IP.→
● alls between users go through amailio and Asterisk.
● e need to call to alphanumeric users 8E Alias→
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 24/39
%9
amailio Q Asterisk Feal7ime integration B%D
F;A7; (I; sipCpeers AS
S;;7 subscriber.username AS name, subscriber.username AS de2aultuser,
2riend AS t)pe,
- AS secret,
subscriber.domain AS host,concatBsubscriber.rpid, ,",subscriber.username,$D AS callerid,
2rom4users AS contet,
subscriber.username AS mailbo,
)es AS nat,
no AS Ouali2),
in2o AS dtm2mode,
subscriber.username AS 2romuser,
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 25/39
%*
amailio Q Asterisk Feal7ime integration B6D
- AS authuser,
subscriber.domain AS 2romdomain,
- AS insecure,
no AS canrein0ite,
- AS disallow,
all AS allow,
- AS restrictcid,
subscriber.domain AS de2aultip,
subscriber.domain AS ipaddr,
subscriber.domain AS outboundpro),*&J& AS port,
- AS regseconds
>F=M kamailioC.subscriber
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 26/39
%J
In0itation
. I(I7;BEobD
%. >ind numeric Alias6. Add <4Subscriberheader
9. I(I7;B%&&D
*. 8ial to the <4Subscriber user
J. I(I7; BEobD
K. ookupuser location
Alice
EobL. I(I7;
BEobD
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 27/39
%K
In0itation B%D
T Foute all I(I7; reOuests to Asterisk
i2 BisCmethodBUI(I7;UDD V T Femo0e <4Subscriber header so that no one sees it...
remo0eCh2BU<4SubscriberUD
T e dont ha0e to route the reOuests coming >F=M AsteriskT back to Asterisk. e would make a loopN
i2 BNBWsi XX UAS7CIPU YY Wsp XX UAS7CP=F7UDD V
routeBAS7;FISC-S;FSCF=-7;D
Z
Z
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 28/39
%L
In0itation B6D
T Send I(I7; reOuests to the Asterisk ser0er
route[AS7;FISC-S;FSCF=-7;\ V T all to the numeric alias
a0pCdbCOuer)BUS;;7 aliasCusername >F=M dbaliases 5;F; usernameX Wr- A8 domain X Wa0pBA(PC=FI+8=MAIDIMI7 U,UWa0pBA(PC-MAIASD3D
i2 BisCa0pCsetBUWa0pBA(PC-MAIASDUDD V
T Sa0e the subscriber in a header so we can use it in Asterisk
appendCh2BU<4Subscriber: Wr-]r]nUD
Wr- X Wa0pBs:numaliasD
Z
Wrd X UAS7CIPU
Wrp X UAS7CP=F7U
routeBF;AGCF=-7;D
Z
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 29/39
%'
In0itation B9D
[2rom4users\
eten X$ C<.,,o=pBD
eten X$ C<.,n,SetBS-ESFIE;FXWVSIPC5;A8;FB<4SubscriberDZD
eten X$ C<.,n,+otoI2BW[WV;BWVS-ESFIE;FZDZ X &\?hangD
eten X$ C<.,n,8ialBSIP/WVS-ESFIE;FZDeten X$ C<.,nBhangD,5angup
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 30/39
6&
SIMP; presence
. S-ESFIE;BEobD %. handleCsubscribe
Alice
Eob6. P-EIS5 Asterisk does
nothingN9. handleCpublish
*. =7I>G
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 31/39
6
SIMP; presence B%D
T 5andle presence reOuests
i2BisCmethodBUP-EIS5^S-ESFIE;UDD V
routeBPF;S;;CF=-7;D
Z
T 5andle presence
route[PF;S;;CF=-7;\ V i2 BisCmethodBUP-EIS5UDD V
handleCpublishBD
tCreleaseBD
Z else i2 BisCmethodBUS-ESFIE;UDD V
handleCsubscribeBD
tCreleaseBD
Z
eit
Z
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 32/39
6%
Messaging
. M;SSA+; BEobD
%. ookup location
Alice
Eob6. M;SSA+; Asterisk does
nothingN
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 33/39
66
A7 handling
● e Hust need to 2i the A7 in signalling.● =ur Asterisk peers are con2igured with natX)es
– =M;8IA mode
– Audio will go through Asterisk
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 34/39
69
>urther impro0ements...
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
h
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 35/39
6*
>urther impro0ements... B%D
hat about miing both? – =pen>ires Asterisk plugin still worksN Bregardless
o2 the integration with amailioD
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 36/39
6J
SIMP; or <MPP?
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
7h k N
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 37/39
6K
7hanksN
BYE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP guest.astricon.net:5060;ranc!"#$!%&'nas!(s)*a+,-orar(s: )0
-ro: sag!u 1sip:sag!u@sip(oc.net;tag"34224&456
o: 7stri8on 1sip:[email protected];tag"$9+ce()6s
8a,ID: 43&32)[email protected]
8Se: BYE
8ontent,engt!: 0
7hanks 2or watchingN
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 38/39
An) Ouestions?
Astrion %&&': Asterisk, Instant Messaging and Presence, ow?
icense
8/15/2019 Message Sent Asterisk Voip
http://slidepdf.com/reader/full/message-sent-asterisk-voip 39/39
6'
icense
http://creati0ecommons.org/licenses/b)4sa/6.&/
All images are propert) o2 their respecti0e authors.