[Spce-user] Ideas for upcoming release

Hohl Matthias matthias.hohl at telematica.at
Wed Mar 20 09:01:04 EDT 2019


Hello,

 

after my upgrade yesterday I have to manually edit some customtt.tt2 files
and also some other edits, so I wanted to ask if there is maybe possible to
integrate this:

 

1.	Auto generate passwords without special chars. Currently i can't
dissable special chars in the config.yml so I have to edit Subsriber.pm
manually for sip and web password.
2.	Shorten the fraudlimit check interval in the ngcp-fraud-auto-lock
and ngcp-fraud-daily-lock. It would be good if this settings could also be
edited via the config.yml file.
3.	Calls with special chars and letters should be blocked. A option for
this would be nice in config.yml too. Currently I did this by extending the
/kamailio/proxy/kamailio.cfg.tt2 file with this:

 

        if($fd == "voip.sipwise.local"[% FOREACH ip IN sip_int_ips -%] &&
$avp(s:ip) != "[% ip %]"[% END -%])

        {

                xlog("L_WARN", "Internal subscriber attempt - [% logreq
-%]");

                sl_send_reply("403", "Invalid subscriber");

                route(ROUTE_EXIT);

        }

  

        if(is_method("INVITE") && !($rU =~ "^\+?[0-9]+$") && !has_totag() )

        {

                xlog("L_WARN", "Dialed number is not numeric - '$rU' - [%
logreq -%]\n");

                sl_send_reply("403", "Dialed number is not numeric");

                route(ROUTE_EXIT);

        }

 

          # BTW this could also extend with that for local app calls:
if(is_method("INVITE") && !($rU =~ "^\+?[0-9]+$") && !has_totag() && !($rd
=~ "^.+\.local$") )

 

 

 

4.	Last but not least, I see for "Source_Cli" Billing that the fix is
not integrated in the 6.5.3 LTS. I did this by fixing it here
kamailio/proxy/proxy.cfg.customtt.tt2

 

        # store the network-provided number if both source_user and the
user-provided number

        # are anonymous

        $var(acc_caller_source_cli) =
$(avp(s:caller_cli_netprov){s.unescape.user}{s.escape.user});

        if (avp_check("$avp(s:acc_caller_user)", "fm/[Aa]nonymous") &&

            avp_check("$avp(s:caller_cli_userprov)", "fm/[Aa]nonymous"))

        {

                $var(acc_caller_source_cli) =
$(avp(s:caller_cli_netprov){s.unescape.user}{s.escape.user});

        }

 

 

 

Maybe this is a helpful feedback for you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20190320/a91226fb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6564 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20190320/a91226fb/attachment.p7s>


More information about the Spce-user mailing list