mwolff44 / pyfreebilling

P-KISS-SBC - simple and stupid SIP/RTP SBC - AGPL v3 - Based on kamailio / RTP Engine

Home Page:https://pk-sbc.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hardcoded SIP port

acheck opened this issue · comments

Currently you define kamailio 'address' table as the view with the following line:

    '  5060 AS port,'

It means that you hardcode 5060 as SIP port of ip authorized gateway.

It's not a good idea - there are a lot of software and hardware SIP gateways which use ports other than 5060

  • some gws just use non-standard ports - say 5070 - for both inbound and outbound
  • some gws accept inbound calls to 5060 but sends outbound from some other fixed port - e.g. 5061
  • some gws accept inbound calls to 5060 but sends outbound from some random port

as a result you should add port field to the DB and GUI or allow ip:port notation of proxy field

Yes, you are right. I will do it just after releasing 2.0 version.

Added in master. Thanks for reporting