Saúl Ibarra orretg! "saghul#gmail.com$ http://www.saghul.net http://www.sipdoc.net saghul
About me
●
saghul – (oIP enthusiast, pla)ing around with Asterisk since %k* – – –
+-/inu lo0er likes e0er)thing 1So2tware ibre3 o42ounder o2 http://sipdoc.net 5ighl) in0ol0ed in spanish (oIP comunities
%
7his presentation ●
●
http://www.saghul.net/blog/downloads/astricon%k'/ http://www.slideshare.net/saghul/ –
Slides
–
omplete con2iguration 2iles 8atabase eample data
–
6
Inde
. Asterisk and presence status %. SIP SIMP; or
ire setup
9. 7he SIMP; solution . amailio @ Asterisk setup
*. onclusions
9
hat we do ha0e now ●
Asterisk SIP support BchanCsipD – –
In4dialog M;SSA+; :4B S-ESFIE; and =7I>G support ●
●
– ●
o P-EIS5 support :4B
Asterisk
resCHabber ●
– ●
>or ;0ent: dialog hat about ;0ent: Presence? :4B
abberSend, AEE;FCF;;I(;, AEE;FCS7A7-S
chanCgtalk, chanCHingle
Am I missing something? *
8o we need presence and IM? ●
●
1I want to talk to )ou, not to )our phone3 Are )ou ? –
>or an audio con2erence?
–
ust 2or IM? >or whom?
–
are )ou?
●
– – –
Mobile =22ice 5ome
–
...
e need to know i2 a user is and what his is J
hat we need ●
●
●
●
A -sers ma) -sers ma)
ser0er their status to other users status between users Is it possible onl) with Asterisk?
K
L
SIMP; 0s
●
8id SIMP; rein0ent the wheel? arge companies started adopting SIMP; BMicroso2t, D –
●
●
Propietar) etensions :4B ell, there is ingle...
I2 SIP is the (oIP protocol: wh) not use it also 2or presence and IM?
'
7he
Integrate Asterisk with a
=pen>ire ●
●
●
a0a based Multiplat2orm
●
●
●
●
SIP so2tphone plugin +atewa)s to multiple mi ser0ices: MS, Gahoo, ;as) installationN
%
=pen>ire BIID ●
●
8ownload deb package dpkg 4i open2ireC6.J.9Call.deb
6
=pen>ire BIIID ●
●
●
eb based con2iguration lustering architecture onnection to the Asterisk Manager Inter2ace –
●
●
●
Multiple connections
Mapping between Asterisk SIP users and =pen>ire lash based web client: Sparkeb
9
=pen>ire BI(D
*
=pen>ire B(D ●
hen a user is talking =pen>ire puts it 1=n the phone3
J
=pen>ire B(ID
K
=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
L
A comple protocol ●
SIMP; I;7> working group –
Presence F>s ●
–
<AP ●
–
6L*J, 6L*K, 6L*L, 6LJ6, 99K', 99L&, 99L%, ... 9L%*, 9L%J, 9L%K, *&%*,
Instant Messaging ●
69%L, 6''9, 9'K*,
SIMP; is =7 simpleN %&
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 amailios subscriber table.
P-EIS5, S-ESFIE; and M;SSA+; reOuests are handled b) amailio.
%
Fegistration
F;+IS7;F
Store location
Asterisk does nothingN
%%
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
%6
amailio Q Asterisk Feal7ime integration B%D F;A7; (I; sipCpeers AS S;;7 2riend AS t)pe, subscriber.domain AS host, concatBsubscriber.rpid, ,",subscriber.username,$D AS callerid, 2rom4users AS contet, subscriber.username AS mailbo,
no AS Ouali2), in2o AS dtm2mode, subscriber.username AS 2romuser, %9
amailio Q Asterisk Feal7ime integration B6D - AS authuser, subscriber.domain AS 2romdomain, - AS insecure, - AS disallow, all AS allow, - AS restrictcid, subscriber.domain AS de2aultip, subscriber.domain AS outboundpro), *&J& AS port, - AS regseconds >F=M kamailioC.subscriber %*
In0itation %. >ind numeric Alias 6. Add <4Subscriber header Alice
*. 8ial to the <4 Subscriber user
. I(I7; BEobD 9. I(I7; B%&&D J. I(I7; BEobD
Eob
L. I(I7; BEobD
K. ookup user location
%J
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 Asterisk T 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
%K
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; username X 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
%L
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;FZD eten X$ C<.,nBhangD,5angup
%'
SIMP; presence
. S-ESFIE; BEobD
%. handleCsubscribe
Alice *. =7I>G
6. P-EIS5 Eob
9. handleCpublish
Asterisk does nothingN
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
6
Messaging
. M;SSA+; BEobD %. ookup location Alice
6. M;SSA+; Eob
Asterisk does nothingN
6%
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
66
>urther impro0ements...
69
>urther impro0ements... B%D
hat about miing both? –
=pen>ires Asterisk plugin still worksN Bregardless o2 the integration with amailioD
6*
6J
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)62$3220335@astricon.net 8Se: BYE 8ontent,engt!: 0
7hanks 2or watchingN
6K
icense
http://creati0ecommons.org/licenses/b)4sa/6.&/
All images are propert) o2 their respecti0e authors. 6'