One of my trunks is on a dynamic (DHCP) connection. It does not work (even if the IP is static) using the Url. I have to specify the address.
In the case of static, it's not so much a problem since I changed it to the IP address but for the dynamic one - it just won't work if I put in the dynamic url. If I put in the actual IP address (applicable at the time) it works but when I revert to the name it does not. I cannot use the IP address and have to change it every time it changes.. Is there a solution ?
Obviously your problem has nothing to do with the address being dynamic or static because - as you say - it just does not work when you insert the name instead of the IP.
You could try to put the word "dynamic" into the SIP server field and let your trunking gateway register to PBXes.
Ok, please expand on that. What my gripe is:
I have two static IP addresses representing sites in a different country. Both are accessible using my browser (when I type in the url).. When I setup a trunk using the url:port (i.e. specifying the port at the other end so I can address specific devices within the network there) the device(s) do not work. When I use the IP address (again specifying the port) it works.
You state: make them register.. That is not a problem from my side, but what will they register as ? an extension ? I was specifically warned NOT to create an extension for the trunks.
In both cases, these are sipura 3000s .. (perhaps now called Linksys) and the extension (FXS) is actually registered as an extension on PBX.. but the Trunk (FXO) does not register and is allowed to originate and receive calls without registering. They do work fine as IP addresses so I let sleeping dogs lie (better to have them work than figure out a workaround)..also note: the extension has a separate "port" address to the trunk in each case.
In my own site I have two local lines that I wish to use through pbxes. They are both addressable using the url:port from offsite. I have also forwarded the ports for them to receive calls. I am unable to obtain static addresses in this site (service provider does not allocate IP addresses except to business subscriptions - I am a residential subscriber). In any case, the IP option is not usable since it's not static. HENCE MY GRIPE!!
If I try to register the trunk without defining an extension it will fail - Are you saying that although it will fail, that pbxes will be able to address it ?
Please use the search function of the forum and look for "dynamic". You will get several threads explaining how to register the SPA-3000. When you are done you are invited to write something up in the Wiki on this subject.
OK,
So, I've been trying this since you asked. It's not working for me. Perhaps my NAT device is wierd.. but the ONLY thing that works is plugging in the IP address (that is assigned me by service provider via DHCP) and port for the line.. and then only when I do not have an extension registering.
(see your comment to http://www1.pbxes.com/forum/thread.php?threadid=1163 )
The likelihood of the dynamic dns not pointing to the right IP address is temporary (normally). Why is it I am unable to use the url ?? It works for all service providers does it not.
I'm not going to attempt inserting a note in the wiki without being sure that it will work. For me, at this time, this is not the case.
What I've tried: create an extension with the same number (without my account prefix) and get the sipura to register for PSTN line.. This makes it possible to access the line by calling it (not really conducive to LCR but it works - in what I'd call a manual fashion). Defining a trunk with the same user/password (user this time with the account prefix) and host being defined as dynamic does not work for me.
I've even tried defining a "host name" for each sipura and prefixing that to the url as in:
Sipura-108.my.dyndns.org:5065 where the Sipura host name is Sipura-108, the domain is my.dyndns.org and the port is 5065 - it doesn't work.
Mind you, the device is addressable.. (if I ping that url -without port number- it goes straight to the device). I have to define the port on the trunk because otherwise the line will not respond.
What I have not tried (to prove the concept) is to "call" that (fully defined) url from another Sipura that's offsite.
I need to define multiple Sipuras sitting in the same site .. I can do that using ip:port and it works. But in dynamic addresses I'm not able to use ip address.. or else I'd have to manually modify every time it changes.