Determining the internal and external IP address during installation

98 views
Skip to first unread message

Sergey Konstantinov

unread,
May 15, 2023, 4:36:34 AM5/15/23
to dSIPRouter
Hello, I need help.
My machine has two interfaces, one with a public address and one with a private ip.
I want to use dsip router as sbs in the following pattern.

asterisk <--> (ExternalIP) <--> dsip router <--> (InternalIP) <--> softswitch <-> PSTN

But when installed in the kamailio and rtpengine configuration files, the internal and external addresses have the external ip address. If I change the addresses in the configuration files, then after a reboot, my changes disappear. Please tell me what parameters you need to specify to the installation script for the correct definition of the internal and external ip. or how to prevent change from after reboot.

Phú Nguyễn Thành

unread,
May 15, 2023, 4:51:46 AM5/15/23
to Sergey Konstantinov, dSIPRouter
Hi,

You need configure the "function getInternalIP()", "function getExternalIP()" in the file dsip_lib.sh if you want to fix the IP

thanks you.

Vào Th 2, 15 thg 5, 2023 vào lúc 15:36 Sergey Konstantinov <sergeykon...@gmail.com> đã viết:
--
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/b6e9c89a-22a8-44a5-8027-b3412644d490n%40googlegroups.com.


--

Mr. Nguyễn Thành Phú

R&D Voice Engineer

Mobile No.: (+84) 981 671 645


Message has been deleted

Phú Nguyễn Thành

unread,
May 15, 2023, 9:24:22 PM5/15/23
to Sergey Konstantinov, dSIPRouter
Hi,

NTERNAL_IP_NET, have to declare it like this:
#!substdef "!INTERNAL_IP_NET!10.29.30.*!g"

Vào Th 2, 15 thg 5, 2023 vào lúc 19:16 Sergey Konstantinov <sergeykon...@gmail.com> đã viết:
Thank you for the tip. After the changes in functions  "function getInternalIP()", "function getExternalIP()" in the file dsip_lib.sh, the addresses have changed.
But INTERNAL_IP_NET remained not correct.

#!substdef "!INTERNAL_IP_ADDR!10.x.x.x!g"
#!substdef "!INTERNAL_IP_NET!94.x.x.x/29!g"
#!substdef "!INTERNAL_IP6_ADDR!!g"
#!substdef "!INTERNAL_IP6_NET!!g"
#!substdef "!INTERNAL_FQDN!sipr.ukrhub.net!g"
#!substdef "!EXTERNAL_IP_ADDR!94.x.x.x!g"
#!substdef "!EXTERNAL_IP6_ADDR!!g"

понеділок, 15 травня 2023 р. о 11:51:46 UTC+3 Phú Nguyễn Thành пише:
Reply all
Reply to author
Forward
0 new messages