Re: [Asterisk-Users] IAX2 Trunking help!
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:[EMAIL PROTECTED]/[EMAIL PROTECTED]) 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 ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
Tony Nichols [EMAIL PROTECTED] 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 _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
David Cook [EMAIL PROTECTED] wrote: [mycontext] exten = _5XXX,1,Dial(IAX2/REC_SERVER:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten = _5XXX,2,Hangup exten = _5XXX,102,Hangup You really don't want your username and password to appear (in plain text) in your logs. Put the sensitive details in iax.conf instead of extensions.conf. As well as being more secure, it'll make your Dial() string shorter, and will mean that you only have to change the connection details in one place, should the need arise in the future. -- _/ _/ _/_/_/_/ _/_/ _/_/_/ _/_/ _/_/_/ _/_/ _/_/_/_/_/ _/ K e v i n W a l s h _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
So you're saying that the following would be the same? iax.conf [YOUR_REC_SERVER] secret=mysecret host=my.receiving.server.ca context=local extensions.conf exten = _5XXX,1,Dial(IAX2/YOUR_REC_SERVER/${EXTEN}) If so, what about the type=peer/user/friend thing? I did read the docs but maybe I'm thick. Maybe the visual person in me needs to see a matrix. Further, If I can get two boxes to talk together like this, what exactly is the register for ... what does it actually do? dbc. Quoting Kevin Walsh [EMAIL PROTECTED]: David Cook [EMAIL PROTECTED] wrote: [mycontext] exten = _5XXX,1,Dial(IAX2/REC_SERVER:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten = _5XXX,2,Hangup exten = _5XXX,102,Hangup You really don't want your username and password to appear (in plain text) in your logs. Put the sensitive details in iax.conf instead of extensions.conf. As well as being more secure, it'll make your Dial() string shorter, and will mean that you only have to change the connection details in one place, should the need arise in the future. -- _/ _/ _/_/_/_/ _/_/ _/_/_/ _/_/ _/_/_/ _/_/ _/_/_/_/_/ _/ K e v i n W a l s h _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- David Cook ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] IAX2 Trunking help!
On Tuesday 22 June 2004 10:08, Kevin Walsh wrote: You really don't want your username and password to appear (in plain text) in your logs. Put the sensitive details in iax.conf instead of extensions.conf. As well as being more secure, it'll make your Dial() string shorter, and will mean that you only have to change the connection details in one place, should the need arise in the future. Doesn't work. iax.conf [someserver] host=some.server.com type=user username=user1 secret=mysecret [someserver] host=some.server.com type=user username=user2 secret=mysecret2 You can't use [EMAIL PROTECTED] or [EMAIL PROTECTED]; asterisk defaults to the last [someserver] entry found. :-( I originally had it set up this way since I didn't want the passwords in the CLI or logs, but it doesn't work right. Regards, Andrew ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] IAX2 Trunking help!
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= secret=xxx notransfer=yes context=incoming-hannah Talks to machine bob: [bob] type=friend host=dynamic auth=md5 username= secret= notransfer=yes context=incoming-bob ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
David Cook [EMAIL PROTECTED] wrote: So you're saying that the following would be the same? iax.conf [YOUR_REC_SERVER] secret=mysecret host=my.receiving.server.ca context=local extensions.conf exten = _5XXX,1,Dial(IAX2/YOUR_REC_SERVER/${EXTEN}) If so, what about the type=peer/user/friend thing? I did read the docs but maybe I'm thick. Maybe the visual person in me needs to see a matrix. If that's on your outgoing side then you'll also need type = peer in there. The incoming side would have type = user. Outgoing = peer, incoming = user. Friend is both incoming and outgoing, but you probably don't want to use that. Further, If I can get two boxes to talk together like this, what exactly is the register for ... what does it actually do? The register is so that you can use host = dynamic on the incoming side. In that case, you will have to register your location with your peer before you can receive incoming calls. If both sides plan to stay on a known IP address then they don't need to register their location with one another; Simply specify the hostname or address instead of using host = dynamic on the incoming side. Clearly, one of the two endpoints must remain at a known location. You might also want to look into using auth = md5 or auth = rsa, to prevent your passwords from being sent across the internet in plain text. -- _/ _/ _/_/_/_/ _/_/ _/_/_/ _/_/ _/_/_/ _/_/ _/_/_/_/_/ _/ K e v i n W a l s h _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
Perfect! Thanks for the clarification. That's what my brain needed - on both points. dbc. Quoting Kevin Walsh [EMAIL PROTECTED]: If that's on your outgoing side then you'll also need type = peer in there. The incoming side would have type = user. Outgoing = peer, incoming = user. Friend is both incoming and outgoing, but you probably don't want to use that. The register is so that you can use host = dynamic on the incoming side. In that case, you will have to register your location with your peer before you can receive incoming calls. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
On Tue, 2004-06-22 at 10:20, David Cook wrote: So you're saying that the following would be the same? iax.conf [YOUR_REC_SERVER] secret=mysecret host=my.receiving.server.ca context=local extensions.conf exten = _5XXX,1,Dial(IAX2/YOUR_REC_SERVER/${EXTEN}) If so, what about the type=peer/user/friend thing? I did read the docs but maybe I'm thick. Maybe the visual person in me needs to see a matrix. Further, If I can get two boxes to talk together like this, what exactly is the register for ... what does it actually do? dbc. Quoting Kevin Walsh [EMAIL PROTECTED]: David Cook [EMAIL PROTECTED] wrote: [mycontext] exten = _5XXX,1,Dial(IAX2/REC_SERVER:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten = _5XXX,2,Hangup exten = _5XXX,102,Hangup You really don't want your username and password to appear (in plain text) in your logs. Put the sensitive details in iax.conf instead of extensions.conf. As well as being more secure, it'll make your Dial() string shorter, and will mean that you only have to change the connection details in one place, should the need arise in the future. -- _/ _/ _/_/_/_/ _/_/ _/_/_/ _/_/ _/_/_/ _/_/ _/_/_/_/_/ _/ K e v i n W a l s h _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ If I remove the trunk=yes and the context=local, then change to type user it seems to work.. I will do some more testing to see if all the different extensions work. I'm a little bewildered however seems like peer should have been correct, and trunking=yes. Guess as long as I can direct calls to/from each location (4 total) that's all that counts! ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] IAX2 Trunking help!
The register statement informs a remote * server of the location of the local * server. If the local server is always at the same IP address, there is no need to register with the remote server. IAX will work just fine with no register statements at either side. Here is a typical iax.conf configuration to allow incoming connections from a remote * server. This is from a working installation. ; Inter-Asterisk eXchange driver definition (asterisk2) [general] port=4569 accountcode=lss0101 bandwidth=low allow=g723 allow=g729 disallow=lpc10 allow=gsm tos=lowdelay [asterisk] type=friend auth=md5 secret=1945 context=local host=dynamic defaultip=10.1.1.180 qualify=yes This statement at the remote * server would dial the local server with the configuration shown above. Incoming calls would be directed to the local context in extensions.conf. exten = _1XXX,1,Dial(IAX2/asterisk:[EMAIL PROTECTED]/[EMAIL PROTECTED]) Paul Mahler [EMAIL PROTECTED] Signate, LLC 665 Third Street Suite 100 San Francisco, CA 94107-1901 Asterisk Services and Training -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Cook Sent: Tuesday, June 22, 2004 5:48 AM To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] IAX2 Trunking help! 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:[EMAIL PROTECTED]/$ [EMAIL PROTECTED]) 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 ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users