Re: [Asterisk-Users] Confuson on iax calls (register or not?)
Rich Adamson wrote: Think I'm a little confused on registering an iax connection; could someone enlighten me? I guess the real question is... when two * machines are going to rely on an iax link (each with their own dial plan), do both machines have to register with each other (eg, both need a 'register' statement)? Or, will a single machine doing the registering cause the opposite machine to recognize the registration, and allow calls to be originated in both directions? If so, assume machine B registers with machine A (machine B has the register statement). Then, in machine A's extensions.conf dial plan, what would the statement similar to exten = _6X.,1,Dial(IAX/npi-off:[EMAIL PROTECTED]/${EXTEN-1}) look like? (I'm assuming the above might use the context for which machine B registered with?) AFAIK a register directive is only required when one of the servers has a dynamic IP address which cannot be resolved from the outside or is behind NAT.. So if both your servers are on the open internet then you probably don't need to have any register directives set.. Later.. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Confuson on iax calls (register or not?)
Hi! Think I'm a little confused on registering an iax connection; could someone enlighten me? Not so long ago I had the same question - I guess a slight change of explanation in iax.conf might help to prevent this. I guess the real question is... when two * machines are going to rely on an iax link (each with their own dial plan), do both machines have to register with each other (eg, both need a 'register' statement)? AFAIK a register directive is only required when one of the servers has a dynamic IP address which cannot be resolved from the outside or is behind NAT.. Indeed. A couple of more related hints (as you can see I have been through this): - only type=peer can register at the other side (maybe also friends) - registration only (!) works if that peer has been set to host=dynamic - use iax show registry to learn about my (the servers') own registration (status column: see qualify below) - while you can DIAL using the username (in place of the hostname) of the remote peer that registered at your server you cannot register vice-versa using his username, even if he already registered with you (i.e. you won't be able to tie two * together that way) - take a look at qualify=yes to have the fixed-IP * run regular presence checks on the dynamic *. Note that it might (?) be wise to NOT use qualify because if the host appears (!) to be down/too slowly connected then * will refuse to direct calls to it via IAX. I still have an unsolved issue where I get UNKOWN as status with qualify=yes ALTHOUGH the other server is actually up and alive (and I even have a standing SSH working nicely). However, maybe this is linked to the other reports on the list about the current CVS breaking IAX calls...? - in iax.conf you enter only one port, i.e. you need to choose between IAX and IAX2. Still registration will try to register using both ports - still I repeatedly see cases where only 5036 worked and IAX2 didn't (same server,s same setup). Greetings, Philipp ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Confuson on iax calls (register or not?)
Think I'm a little confused on registering an iax connection; could someone enlighten me? I guess the real question is... when two * machines are going to rely on an iax link (each with their own dial plan), do both machines have to register with each other (eg, both need a 'register' statement)? Or, will a single machine doing the registering cause the opposite machine to recognize the registration, and allow calls to be originated in both directions? If so, assume machine B registers with machine A (machine B has the register statement). Then, in machine A's extensions.conf dial plan, what would the statement similar to exten = _6X.,1,Dial(IAX/npi-off:[EMAIL PROTECTED]/${EXTEN-1}) look like? (I'm assuming the above might use the context for which machine B registered with?) AFAIK a register directive is only required when one of the servers has a dynamic IP address which cannot be resolved from the outside or is behind NAT.. So if both your servers are on the open internet then you probably don't need to have any register directives set.. Okay, let me try a specific example (maybe a poor one) that might help me understand. Server A has a static registered address and is considered a production office machine. It has pstn connections, VM, iaxtel, addressable via dns, etc. (Changes to the configuration of this machine can only be made once per month.) Server B is a laptop running * that can be carried from one client's location to another for demo purposes. Set the demo machine in the client's conference room, connect to the Internet (assume no NAT), configure a couple of 7960's (as an example) on the conference room table next to the laptop. Assume the two 7960's always use ext 3500 and 3501. The registered address at a client's location is obviously not the same from one client to another. Now for demo purposes, 1. Server B registers with Server A via iax. That's easy to understand regardless whether nat is involved or not, and making calls from the sip phones at the client's location to phones registered with server A (office) is clear. An entry such as: exten = _6X.,1,Dial(IAX/office:[EMAIL PROTECTED]/${EXTEN-1}) in extensions.conf will work nicely since the server A is addressable and remains static at all times. 2. Server A (without making any * config changes specific to the laptop addressing at the client's location) wants to place a call from a sip phone registered with server A (office), to one of the 7960's (ext 3500) registered with server B (laptop). What would the entry look like on Server A (office) that would allow calls to be sent to Server B (laptop) when the specific IP address (and/or DNS name) of the laptop is unknown? (Or, rephrasing the question, can this example call be forwarded to Server B using a reference to a iax context (that is either active or not active based on Server B registration) rather then using an exten =... statement that specifies an exact IP address?) Although the above example might be rather poor, the same config issue can happen with off-site disaster recovery configs, etc. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Confuson on iax calls (register or not?)
Think I'm a little confused on registering an iax connection; could someone enlighten me? I guess the real question is... when two * machines are going to rely on an iax link (each with their own dial plan), do both machines have to register with each other (eg, both need a 'register' statement)? Or, will a single machine doing the registering cause the opposite machine to recognize the registration, and allow calls to be originated in both directions? If so, assume machine B registers with machine A (machine B has the register statement). Then, in machine A's extensions.conf dial plan, what would the statement similar to exten = _6X.,1,Dial(IAX/npi-off:[EMAIL PROTECTED]/${EXTEN-1}) look like? (I'm assuming the above might use the context for which machine B registered with?) ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users