[Spce-user] change forwarder_cli_userprov if not matching subscriber/alias

sven.roehrig at web.de sven.roehrig at web.de
Thu Jan 3 07:45:07 EST 2019


Hi,

 

i have a client that´s sending an invalid number in DIVERSION that need to
be replaced with the network provided number if it does not match an allowed
number.

If I set "skip_upn_check_on_diversion" to "skip checking upn if user in
received Diversion or alias list" everything works like expected but it
looks like the check is done twice. 

The first test is failing like expected but the second run is passed.

 

NOTICE: <script>: Rewriting Diversion number '162' to '162' -
R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: Checking Diversion number against subscriber aliases -
R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

NOTICE: <script>: Previous forwarder's number '162' did not match aliases,
using network-provided CLI '4937125620050' -
R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: Check of previous forwarder via Diversion header failed -
R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: Checking User-provided CLI against subscriber aliases -
R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: User-provided CLI '4937125620076' accepted - matches alias
number '493712562007' - R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: Checking User-provided Redirecting CLI against subscriber
aliases - R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

INFO: <script>: Checking User-provided Redirecting CLI against allowed CLIs
- R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

NOTICE: <script>: User-provided Redirecting CLI '162' accepted (matched user
preference) - R=sip:01719458948 at sip.sipwise-test.net:5060
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

.

.

.

NOTICE: <script>: Setting forwarder_cli_userprov/forwarder_domain_userprov
'00162 at 10.40.70.13' for uprn -
R=sip:491719458948 at sia-btsccca146.sipwise-test.net
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

NOTICE: <script>: Setting Diversion to
'<sip:00162 at 10.40.70.13>;privacy=off;counter=1' -
R=sip:491719458948 at sia-btsccca146.sipwise-test.net
ID=a4cb4345-99e3-46ad-8515-594d629020c8 UA='FPBX-14.0.5.2(13.22.0)'

 

When the call is leaving the peer I have set outbound_diversion to be UPRN.
I guess because of the failing test the DIVERSION that gets send to the peer
is the invalid number instead of the network provides as excpected.

 

Is this the correct behaviour ore is there something wron with my
configuration?

Should avp "forwarder_cli_userprov" need to be replaced with NPN if
"skip_upn_check_on_diversion" is enabled and failing for checking against
known numbers?

 

For my understanding if a client is sending a DIVERSION header spce should
check UPRN against known numbers (alias numbers, primary numbers, allowed
cli) configured in skip_upn_check_on_diversion.

If this is failing UPRN should be set to a known number (NPN) and the UPN
(taken from e.g. FROM Header should be passed as send). If the client is
sending a known UPRN the DIVERSON and FROM header can be passed as send.

If there is a DIVERSION present on a peer trunk this must be handled like a
PAI because its important for e.g. billing on peer side. 

 

 

Mit freundlichen Grüßen,

Best regards,

 

Sven

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20190103/8648b035/attachment.html>


More information about the Spce-user mailing list