[Spce-user] caller rewrite rule

Matthew Ogden matthew at tenacit.net
Tue Jul 15 08:29:59 EDT 2014


Hi



Is this a bug or a domain setting that I have incorrect: (and what else
might break if I am not thinking clearly about it while changing settings)



I’m on 2.8 LTS.



PSTN calls the rewrite is perfect. But calls between users don’t seem to
get applied. – just scared to willy nilly change a working setup.



Sanitized section of logs is as follows:, but when dialing to PSTN,  last
line does not over write back to main number



Jul 15 13:27:00 spce /usr/sbin/kamailio[22901]: INFO: <script>: Rewriting
user-provided CLI '2645' to 'e164_prefix_645' -
R=sip:called_number at SPCE_PUBLIC_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at 4

Jul 15 13:27:00 spce /usr/sbin/kamailio[22901]: INFO: <script>: Checking
User-provided CLI against allowed CLIs -
R=sip:called_number at SPCE_PUBLIC_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP

Jul 15 13:27:00 spce /usr/sbin/kamailio[22901]: INFO: <script>:
User-provided CLI 'e164_prefix_645' accepted -
R=sip:called_number at SPCE_PUBLIC_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP

Jul 15 13:27:00 spce /usr/sbin/kamailio[22901]: INFO: <script>: Setting
'e164_prefix_645 at SPCE_PUBLIC_IP' as initiating user-provided CLI -
R=sip:called_number at SPCE_PUBLIC_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP

Jul 15 13:27:00 spce /usr/sbin/kamailio[22901]: INFO: <script>: Setting
'subcrbier_mainE164 at my_sip_Domain_name ' as initiating network-provided CLI
- R=sip:called_number at SPCE_PUBLIC_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP

…

…

Jul 15 13:27:00 spce /usr/sbin/kamailio[22900]: INFO: <script>: Setting
caller_cli_netprov/caller_domain_netprov
'subcrbier_mainE164 at my_sip_Domain_name' for npn -
R=sip:test1 at subscriber_B_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP

Jul 15 13:27:00 spce /usr/sbin/kamailio[22900]: INFO: <script>: Setting
>From to '<sip:subcrbier_mainE164 at my_sip_Domain_name>' -
R=sip:test1 at subscriber_B_IP:5060
ID=3b36f9a273bbcf8f79617ecf26498f14 at SPCE_PUBLIC_IP





A public call from the same number has entries like



Jul  7 14:37:29 spce /usr/sbin/kamailio[22898]: INFO: <script>: Prepare
>From display-name setting -
R=sip:public_number at public_upstream_ip:5060;transport=udp
ID=288525ee2f6026c77c625773756fade0 at SPCE_PUBLIC_IP

Jul  7 14:37:29 spce /usr/sbin/kamailio[22898]: INFO: <script>: No selector
set, not setting CLI -
R=sip:public_number at public_upstream_ip:5060;transport=udp
ID=288525ee2f6026c77c625773756fade0 at SPCE_PUBLIC_IP

Jul  7 14:37:29 spce /usr/sbin/kamailio[22898]: INFO: <script>: Prepare
>From username setting -
R=sip:public_number at public_upstream_ip:5060;transport=udp
ID=288525ee2f6026c77c625773756fade0 at SPCE_PUBLIC_IP

*Jul  7 14:37:29 spce /usr/sbin/kamailio[22898]: INFO: <script>: Setting
caller_cli_userprov/caller_domain_userprov 'e164_prefix_645 at SPCE_PUBLIC_IP'
for upn - R=sip:public_number at public_upstream_ip:5060;transport=udp
ID=288525ee2f6026c77c625773756fade0 at SPCE_PUBLIC_IP*



Last line be the part where the number is correctly set.



But there doesn’t seem to be the same thing when the call stays on the
system?



Thanks for your help





*Matthew Ogden*

Management

TenacIT







*Strategic IT Consulting *•* Advanced Networking *• *Virtualisation*

*Custom Development *• *Hosting *• *Syspro Support  *• *MS Licensing*

National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email:
matthew at tenacit.net

CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
http://www.tenacit.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 3930 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 4536 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4807 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 1031 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 1424 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 1287 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20140715/8fdaae7a/attachment-0003.jpg>


More information about the Spce-user mailing list