ࡱ> 574[ bjbj 5*jj l 8  Tx x : X X X RTTTTTT$ ~xX 6 6 "X X xl lllX   RlX Rll l 9X 0''lMethod 1 Receiving ServerCalling ServerIax.confExtensions.conf[REC_SERVER] type=user host=my.calling.server.ca secret=mysecret context=local trunk=yes[mycontext] exten => _5XXX,1,Dial(IAX2/REC_SERVER:mysecret@my.receiving.server.ca/${EXTEN}@local) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup Any call in the mycontext context on Calling Server to extensions 5000-5999 (mapped by extension _5XXX) will get sent to receiving server (my.receiving.server.ca) into the local context on the receiving server. Performing the same configuration in the opposite direction will allow cross-calls between Asterisk systems. ProsConsSimple, all references in one file per server.Information in dialing string will appear in logs inclusive of user:password. Dial string becomes very long. Method 2 Receiving ServerCalling ServerIax.confIax.conf[REC_SERVER] type=user host=my.calling.server.ca secret=mysecret context=local trunk=yes[REMOTE_SERVER] type=peer host=my.receiving.server.ca secret=mysecret context=localExtensions.conf[mycontext] exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN}) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup ProsConsUser:Password are stored in the calling servers iax.conf file and not part of the Dial string. This is more secure in that they are not recorded in log in files. Dial strings much shorter and concise.Calling server now must have iax.conf and extensions.conf coordinated making setup a little more complicated. Must user type= definition correctly: Caller = peer; Receiver = user Type=friend is a bi-directional relationship meaning both peer and user at the same time. Validate this one: one person on the asterisk-users list suggested that it was required to take out trunk=yes and context-local Register command If the calling server does not have a fixed IP address or DNS namespace then the iax.conf file description of the calling server located on the receiving server should specify host=dynamic. If the calling server host is specified as dynamic, the calling server must register with the receiving server with the register command. In the above example: Receiving ServerCalling ServerIax.confIax.conf[REC_SERVER] type=user host=dynamic secret=mysecret context=local trunk=yesregister => REC_SERVER:mysecret@my.receiving.server.ca [REMOTE_SERVER] type=peer host=my.receiving.server.ca context=localExtensions.conf[mycontext] exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN}) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup Connect Two Asterisk Servers   FILENAME \p C:\Documents and Settings\cookda\My Documents\Research\Asterisk\Connecting Two Asterisk Servers.doc Page  PAGE 2 of  NUMPAGES 3  `qCL{*;kuz4;ER  C M U v / < > H '(źCJmHnHuCJ jCJUmH sH jUmHnHu CJmH sH >*5\CJ6] 56\]56CJ\]I )*3CDQ[uh{{{{{{{{{$Ifk$$Ifl0\ 3 %064 la$If  !$If 123uv{{u$If$Ifk$$Ifl0\ 3 %064 la  !$If$If  *;Jx{$If  !$If$Ifk$$Ifl0P 3064 la JKT]^ku L  !$If$Ifk$$Ifl0\ 3 %064 la   +]uH}{u$If !  !$If$Ifk$$Ifl0\ 3 %064 la @ A h " #  $Ifk$$Ifl0P 3064 la$If _ ` v L{{${{{$Ifk$$Ifl0\ 3 %064 la$If  !$If - . > H d r s t Hk$$Ifl0\ 3 %064 la  !$If$If }{yy{ww{{ !k$$Ifl0\ 3 %064 la  !$If$If CJmHnHuCJ jCJU3&P1h0= /!"#$%  i<@< NormalOJQJ_HaJmH sH tH <@< Heading 1$@&56CJ\]6@6 Heading 2$@& 5CJ\8@8 Heading 3$@& 56\]<A@< Default Paragraph Font,@, Header  !, @, Footer  !&X@& Emphasis6] * )*3CDQ[u123uv{ *;JKT]^ku   +]u@Ah_`vr s t    0000000000000000000000000000000@0@0@0@0@0@0@0@0@0@0@0@0@0@0000@0@0@0@0@0@000@0@0@000000@0@0000000000@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@0@00@0@0@@0@0 J    .t!tt@  @ (  HB  C D0(  B S  ?424u*23B|CLKST\  )+0]buzgot QU[_u{kouy )+0]buz> B H L d k 3333333333333333333333333333333333333*Qu!*T^+]v. > d  AdministratorcC:\Documents and Settings\cookda\My Documents\Research\Asterisk\Connecting Two Asterisk Servers.doc AdministratoryC:\Documents and Settings\cookda\Application Data\Microsoft\Word\AutoRecovery save of Connecting Two Asterisk Servers.asd AdministratoryC:\Documents and Settings\cookda\Application Data\Microsoft\Word\AutoRecovery save of Connecting Two Asterisk Servers.asd AdministratoryC:\Documents and Settings\cookda\Application Data\Microsoft\Word\AutoRecovery save of Connecting Two Asterisk Servers.asd )*3CD12v{*;JKT]^   hvr s t @ܘtgg P@UnknownGz Times New Roman5Symbol3& z Arial"qhq&bF q9!20 2Receiving Server Administrator AdministratorOh+'0 ( D P \hpxReceiving ServerdeceAdministratorerdmidmi Normal.dotoAdministratorer11iMicrosoft Word 9.0@zH6@XW@bXq9՜.+,0 hp  Economics and Business Clusterv 2 Receiving Server Title  !"#%&'()*+-./01236Root Entry Fp*:X81Table'WordDocument5*SummaryInformation($DocumentSummaryInformation8,CompObjjObjectPoolp*:Xp*:X  FMicrosoft Word Document MSWordDocWord.Document.89q