I've searched for this too, and so far Asterisk can only listen on a
single SIP port.  However, you can work around this by using  IPTables
and a DNAT rule.

For example:

iptables -t nat -A PREROUTING -p udp -d <YOUR IP> --dport 5061 -j DNAT
--to <YOUR IP>:5060

I've used this a few times to open up additional SIP ports on my asterisk box.

Hope that helps!


On Fri, Jun 26, 2009 at 11:09 PM, Liviu Toma<[email protected]> wrote:
> I forgot to mention: when both channels of the ATA are enabled, neither one
> is able to register. If I disable either one of the channels, the other one
> registers right away, so I am guessing all the settings should be OK.
>
> Liviu
>
> ----- Original Message -----
> From: "Liviu Toma" <[email protected]>
> To: <[email protected]>
> Sent: Friday, June 26, 2009 11:07 PM
> Subject: Making Asterisk listen on 5060 and 5061
>
>
> Hello,
>
> Is there any way to make Asterisk listen on two UDP ports for SIP messages,
> such as 5060 and 5061 ?
> I am using an ATA that has 2 lines (Motorola VT2142, but it applies to other
> adapters as well) and I am trying to make both register with Asterisk. The
> problem is both channels send registration messages from the same IP and
> port, almost at the same time (without waiting for response for the first
> registration request). If I run a trace in Asterisk, I am seeing a lot of
> messages like "Correct auth, but based on stale nonce received from
> ...<peer>" so I am guessing that Asterisk isn't able to keep track of the
> registrations based on the account used.
> Needless to say, the adapter doesn't appear to have a setting to use
> different UDP ports for the two channels on it's side.
> Any idea ?
>
> Thanks,
> Liviu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to