• No results found

Message Sent Asterisk Voip

N/A
N/A
Protected

Academic year: 2021

Share "Message Sent Asterisk Voip"

Copied!
39
0
0

Loading.... (view fulltext now)

Full text

(1)

saghul

Saúl Ibarra orretg! "saghul#gmail.com$ http://www.saghul.net

(2)

% About me

● saghul

– (oIP enthusiast, pla)ing around with Asterisk since %k* – +-/inu lo0er likes e0er)thing 1So2tware ibre3

– o42ounder o2 http://sipdoc.net

(3)

6 7his presentation

● http://www.saghul.net/blog/downloads/astricon%k'/ ● http://www.slideshare.net/saghul/

– Slides

omplete con2iguration 2iles – 8atabase eample data

(4)

9 Inde

. Asterisk and presence status

%. SIP SIMP; or <MPP?

6. 7he <MPP solution

. =pen>ire setup

9. 7he SIMP; solution

. amailio @ Asterisk setup

(5)

* hat we do ha0e now

● Asterisk SIP support BchanCsipD

– In4dialog M;SSA+; :4B

– S-ESFIE; and =7I>G support

>or ;0ent: dialog

● hat about ;0ent: Presence? :4B

– o P-EIS5 support :4B

● Asterisk <MPP support

– resCHabber

● abberSend, AEE;FCF;;I(;, AEE;FCS7A7-S

– chanCgtalk, chanCHingle

(6)

J 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

(7)

K hat we need

● A ser0er

● -sers ma) their status

● -sers ma) to other users status

● between users

(8)
(9)

' SIMP; 0s <MPP

● 8id SIMP; rein0ent the wheel?

● arge companies started adopting SIMP; BMicroso2t,

D

Propietar) etensions :4B

● <MPP does not pro0ide 0oice capabilities

– ell, there is ingle...

● I2 SIP is the (oIP protocol: wh) not use it also 2or

(10)
(11)

 7he <MPP solution

(12)

% =pen>ire ● ● a0a based ● Multiplat2orm ●

● SIP so2tphone plugin

● +atewa)s to multiple mi ser0ices: MS, Gahoo, 

(13)

6 =pen>ire BIID

● 8ownload deb package

(14)

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

(15)

* =pen>ire BI(D

(16)

J =pen>ire B(D

(17)

K =pen>ire B(ID

(18)

L =pen>ire B(ID

● hat we get

– Instant Messaging – Presence

+atewa)s to other mi ser0ices – 7et 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?

(19)
(20)

%& 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

(21)

% 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 amailios

subscriber table.

● P-EIS5, S-ESFIE; and M;SSA+; reOuests are

(22)

%% Fegistration

F;+IS7;F

Store location Asterisk does nothingN

(23)

%6 amailio Q Asterisk Feal7ime integration

● Asterisk peers are amailios 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.

(24)

%9 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 contet,

subscriber.username AS mailbo,

no AS Ouali2), in2o AS dtm2mode,

(25)

%* 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

(26)

%J In0itation

. I(I7; BEobD

%. >ind numeric Alias 6. Add <4Subscriber header 9. I(I7; B%&&D *. 8ial to the <4 Subscriber user J. I(I7; BEobD K. ookup user location Alice Eob L. I(I7; BEobD

(27)

%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 dont 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;FISC-S;FSCF=-7;D

Z Z

(28)

%L In0itation B6D T Send I(I7; reOuests to the Asterisk ser0er

route[AS7;FISC-S;FSCF=-7;\ V T all to the numeric alias

a0pCdbCOuer)BUS;;7 aliasCusername >F=M dbaliases 5;F; username X Wr- A8 domain X Wa0pBA(PC=FI+8=MAIDIMI7 U,

UWa0pBA(PC-MAIASD3D

i2 BisCa0pCsetBUWa0pBA(PC-MAIASDUDD 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

(29)

%' In0itation B9D

[2rom4users\

eten X$ C<.,,o=pBD

eten X$ C<.,n,SetBS-ESFIE;FXWVSIPC5;A8;FB<4SubscriberDZD eten X$ C<.,n,+otoI2BW[WV;BWVS-ESFIE;FZDZ X &\?hangD eten X$ C<.,n,8ialBSIP/WVS-ESFIE;FZD

(30)

6& SIMP; presence . S-ESFIE; BEobD %. handleCsubscribe Alice Eob

6. P-EIS5 Asterisk does

nothingN 9. handleCpublish

(31)

6 SIMP; presence B%D T 5andle presence reOuests

i2BisCmethodBUP-EIS5^S-ESFIE;UDD V routeBPF;S;;CF=-7;D Z T 5andle presence route[PF;S;;CF=-7;\ V i2 BisCmethodBUP-EIS5UDD V handleCpublishBD tCreleaseBD Z else i2 BisCmethodBUS-ESFIE;UDD V handleCsubscribeBD tCreleaseBD Z eit Z

(32)

6% Messaging . M;SSA+; BEobD %. ookup location Alice Eob 6. M;SSA+; Asterisk does nothingN

(33)

66 A7 handling

● e Hust need to 2i the A7 in signalling.

● =ur Asterisk peers are con2igured with natX)es

– =M;8IA mode

(34)

69 >urther impro0ements...

(35)

6* >urther impro0ements... B%D

hat about miing both?

– =pen>ires Asterisk plugin still worksN Bregardless

(36)
(37)

6K 7hanksN

BYE sip:astricon@astricon.net SIP/2.0

Via: SIP/2.0/UDP guest.astricon.net:5060;ranc!"#$!%&'nas!(s) *a+,-orar(s: )0

-ro: sag!u 1sip:sag!u@sip(oc.net;tag"34224&456 o: 7stri8on 1sip:astricon@astricon.net;tag"$9+ce()6s 8a,ID: 43&32)62$3220335@astricon.net

8Se:  BYE

8ontent,engt!: 0

(38)
(39)

6' icense

http://creati0ecommons.org/licenses/b)4sa/6.&/

References

Related documents

If you have checked the color image data after scanning, press to switch to the range image view before this step. The RECORD key is not effective while the color im- age

Although it would be unwise to discount teaching understanding and judgment of ethical issues, the present study advocates that more care needs to be taken facilitating students’

Because there are few studies in this area in the national literature, the objectives of the present study were to determine the prevalence of diastasis of rectus

9, 2014 Local Currency: BBB+, Stable Outlook Foreign Currency: BBB, Stable Outlook National: AA, Stable Outlook.. Yazıcılar Holding SAHA Corporate

Educational research - professional and patient.. Students shall be required to routinely conduct critical analyses of the clinical and scientific literature in the AOM profession.

However, a key question raised by the discovery of the link between miRNAs and the RNAi machinery, is the degree to which silencing at the level of mRNA degradation might be related

RISCs/RNPs that contain AGO proteins with or without RNase H activity (slicer) and the loaded siRNAs or miRNAs, execute gene suppression function via different mechanisms: 1)

own doctor-advised, medical marijuana programs for patients with serious physical medical conditions … [T]he American Association for Social Psychiatry strongly urge that in a