[Asterisk-Users] Asterisk and a SPA3000 behind NAT peer registration

Rich Adamson radamson at routers.com
Wed Sep 21 14:27:14 MST 2005


> Hi,
> 
>         I have a little situation here :( Perhaps somebody can give me a 
> hand with it.
> 
>         I have an Asterisk working, and in another office, a Sipura 
> SPA-3000.
>         I configured the SPA and I have the extension working, the incomming 
> trunk working, but the outgoing trunk (peer) does not work.
> 
>         The issue is that I have a dynamic IP where the SPA is, and neither 
> the SPA nor my router have DynamicDNS.
>         So, if I manually change the host for the peer for the SPA PSTN 
> Line, then everything works fine, and I can make local calls through it.
>         BUT when my router's IP changes... I am lost. (EVEN while the 
> extension SPAN Line 1, or the incomming trunk are registered and DO work.)
> 
>         According to what I read, if I setup the outgoing trunk to type=peer 
> with host=dynamic, then I can make the peer to register itself into the 
> Asterisk, so the asterisk will know where to contact the peer.
>         But.... I cannot figure out how to make the SPA register as the 
> peer? I can make it register as a type=friend for the incomming traffic, but 
> not as a peer..

Don't bother with the peer.

Define both the Line1 and PSTN ports on the SPA to register with asterisk
using different UserID/Passwords for each, use port 5060 for one and 5061
for the other, and in asterisk's sip.conf file define them as type=friend.

It does work just fine that way.





More information about the asterisk-users mailing list