Connecting 2 asterisk machines
| 本帖最後由 ckleea 於 2011-1-28 11:01 編輯 
 Would like to discuss on the best methods to connect 2 asterisk machines
 
 Two methods exist
 1. SIP
 A machine is acted as sip provider and allows B machine to connect as sip client, vice versa.
 It is similar to what one login to their own VOIP provider
 
 E.g. in sip.conf
 register = 3250:3250T03250@192.168.xxx.xxx/ast18
 [sipast18]
 disallow = all
 allow = ulaw
 allow = alaw
 host = 192.168.xxx.xxx
 fromdomain = 192.168.xxx.xxx
 insecure = no
 secret = 3250T03250
 type = peer
 username = 3250
 context = from-ast18
 
 in extensions.conf, I have the following for outbound
 
 [CallingRule_ast18]
 exten = _3XXX,1,Dial(SIP/sipast18/${EXTEN},,r)
 exten = _3XXX,n,Hangup()
 
 for inbound,
 [from-ast18]
 exten = ast18, Dial(SIP/6100,,r)
 
 2. IAX - inter
 The protocol provided by asterisk
 my example is similar to what I set in the sip.conf. need also inbound and outbound setting in extensions.conf
 
 further examples can be found here
 http://www.voip-info.org/wiki/view/Asterisk+Connect+2+servers
 
 Sometimes, IAX connection not working well.
 
 How about your experience?
 |