[Spce-user] caller rewrite rule
Daniel Grotti
dgrotti at sipwise.com
Fri Jul 18 04:13:35 EDT 2014
Hi,
in order to apply Rewrite Rules, in general you need to assign a Rewrite
rules set the your Peers (to apply Outbound rewrite rules from outbound
calls and inbound RR for incoming calls from that peer) and to your
domain/subscriber (to apply inbound RR from your subscribers and
outbound RR for on-net calls).
Daniel
On 07/15/2014 02:29 PM, Matthew Ogden wrote:
>
> 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 <mailto:matthew at tenacit.net>
>
> CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
> http://www.tenacit.net <http://www.tenacit.net/>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4807 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0004.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1031 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0005.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1424 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0006.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1287 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0007.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3930 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4536 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20140718/215cd830/attachment-0003.png>
More information about the Spce-user
mailing list