I'm trying to get two * boxes to talk.... no matter what variation I try I get No Authority Found and connection refused from 192.168.1.5 I've googled, I've site searched.... to no avail. Here is the server a configs (192.168.1.5): iax.conf [general] port=5036 bandwidth=low disallow=all allow=gsm jitterbuffer=yes tos=lowdelay register => pbx:test@192.168.2.2 [pbx] type=peer host=dynamic trunk=yes secret=test qualify=yes extensions.conf [globals] TRUNKP=IAX2/pbx:test@192.168.2.2 ; princeton aix trunk ; iax princeton bridge exten => _2XX,1,Dial(${TRUNKP}/${EXTEN}) Server b config (192.168.2.2): iax.conf [general] port=5036 bandwidth=low disallow=all allow=gsm jitterbuffer=yes tos=lowdelay register => pbx:test@192.168.1.5 [pbx] type=peer host=dynamic trunk=yes secret=test qualify=yes I've tried adding a username=, removing dynamic, adding defaultipAll have failed. I'm using cvs head from yesterday. My network is a vpn with a cisco 2600 at site a, and a cisco pix 501 at site b. I have perfect connectivity between the sites (2 t1's at site a - 1 t1 at site b). t o n y
I was just trying to solve this one myself. I found this method worked for me. I'm still calling this "Method 1" in my document because I don't fully understand the "switch" and the "register" versions and pros/cons to implementation of each. But this one does work. Method 1 Receiving Server Iax.conf [REC_SERVER] type=user host=my.calling.server.ca secret=mysecret context=local trunk=yes Calling Server Extensions.conf [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. -- David Cook
Tony Nichols [tony@mail.applog.com] wrote:> I'm trying to get two * boxes to talk.... no matter what variation I try > I get No Authority Found and connection refused from 192.168.1.5 > > [snip] > > Server b config (192.168.2.2): > > [pbx] > type=peer > host=dynamic > trunk=yes > secret=test > qualify=yes >Use "type = user" on that server. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
On Tue, 22 Jun 2004, Tony Nichols wrote:> I'm trying to get two * boxes to talk.... no matter what variation I try > I get No Authority Found and connection refused from 192.168.1.5 > > I've googled, I've site searched.... to no avail.I think you need to match a peer at one end to a user at the other, and vice versa. Using "friend" defines a peer and a user at the same time (cue Jerjer to tell you why you might not want to use friend) For example, machine hannah: [hannah] type=friend host=hannah.wtmpsystems.com auth=md5 username=xxxxxxxx secret=xxxxxxx notransfer=yes context=incoming-hannah Talks to machine bob: [bob] type=friend host=dynamic auth=md5 username=yyyyyyyy secret=yyyyyyyy notransfer=yes context=incoming-bob