Hi All. We have a provider that requires us to SOURCE the SIP connection on TCP 5061. I honestly have no clue how to force Asterisk to always SOURCE the SIP connection on a certain port. Can anybody point me in the right direction? I am using PJSIP. Thank you, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210710/9d1aa80e/attachment.html>
I don’t think I’ve seen that requirement before, so someone else may have to answer if there is a PJSIP specific setting However, if not then it may be simple to achieve the same result by using your firewall NAT rules. From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alexander Perkins Sent: Saturday, July 10, 2021 1:39 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] SIP Source Port Hi All. We have a provider that requires us to SOURCE the SIP connection on TCP 5061. I honestly have no clue how to force Asterisk to always SOURCE the SIP connection on a certain port. Can anybody point me in the right direction? I am using PJSIP. Thank you, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210710/4610f64f/attachment.html>
On Sat, Jul 10, 2021 at 2:39 PM Alexander Perkins < alexanderhenryperkins at gmail.com> wrote:> Hi All. We have a provider that requires us to SOURCE the SIP connection > on TCP 5061. I honestly have no clue how to force Asterisk to always > SOURCE the SIP connection on a certain port. > > Can anybody point me in the right direction? I am using PJSIP. >If you are referring to an outgoing connection, it's not possible to configure PJSIP to do this. For an outgoing connection the system uses an ephemeral port as the source. -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210710/0451111a/attachment.html>
Maybe it could be accomplished in the firewall? Tell the firewall to NAT the source port of packets to 5061? Från: asterisk-users-bounces at lists.digium.com <asterisk-users-bounces at lists.digium.com> För Alexander Perkins Skickat: den 10 juli 2021 19:39 Till: asterisk-users at lists.digium.com Ämne: [asterisk-users] SIP Source Port Hi All. We have a provider that requires us to SOURCE the SIP connection on TCP 5061. I honestly have no clue how to force Asterisk to always SOURCE the SIP connection on a certain port. Can anybody point me in the right direction? I am using PJSIP. Thank you, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210712/a146b688/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5715 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210712/a146b688/attachment.bin>