[Spce-user] Insert prefix to peer for outbound calls

Guilherme Lacerda lacerdaguilherme at gmail.com
Thu Feb 13 12:45:20 EST 2020


Hi Daniel,

I tried this outbound rewrite rules to callee:
    Match Pattern: ^([0-9]+)$
    Replacement Pattern: 1001#\1
    Description: Prefix
    Direction: Outbound
    Field: Callee

In "Call Routing Verification", show the correct rewrite. My INVITE remains
unchanged. Sipwise Devs to do: keep it simple like dSIPRouter, please :-)


--- Log:
found caller subscriber 'sip:kazoo at 54.233.79.7' with id 1
call from +554130129701 using subscriber 'kazoo at 54.233.79.7' id 1
using caller rewrite rule set 'regra padrao' with id 1
caller +554130129701 is rewritten based on the inbound rules into
554130129701
callee +5541998970007 is rewritten based on the inbound rules into
5541998970007
caller 554130129701 is rejected as it does not match subscriber's
'allowed_clis'
'allowed_cli' reject policy is 'override_by_usernpn', taken from 'cli'
554130304040
callee subscriber lookup based on 5541998970007
no callee subscriber found, performing peer lookup with caller uri
sip:554130304040 at 54.233.79.7 and callee uri sip:5541998970007 at 187.60.60.189
and callee 5541998970007
matched peer 'Endpoints' with id 1
call to +5541998970007 and peer host 'Datora' (ip: 187.60.60.189) with id 4
using callee rewrite rule set 'regra padrao' with id 1
caller 554130304040 is rewritten based on the outbound rules into
04130304040
callee 5541998970007 is rewritten based on the outbound rules into
1001#5541998970007     <===============================================

--- Invite:
2020/02/13 17:41:33.154303 172.31.37.142:5060 -> 187.60.60.189:5060
INVITE sip:+5541998970007 at 187.60.60.189:5060;transport=udp SIP/2.0
<===============================================
Record-Route: <sip:54.233.79.7:5060
;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes>
Record-Route:
<sip:127.0.0.1;r2=on;lr=on;ftag=4EFB872A-5E458A4D000257AC-14A4B700;ngcplb=yes>
Via: SIP/2.0/UDP 54.233.79.7:5060
;branch=z9hG4bK593e.45abd9c26a210f56603d610401ca3397.0
Via: SIP/2.0/UDP 127.0.0.1:5080
;received=127.0.0.1;branch=z9hG4bKtMGdHa.1;rport=5080
From: <sip:554130129701 at 169.57.148.23
>;tag=4EFB872A-5E458A4D000257AC-14A4B700
To: <sip:+5541998970007 at 187.60.60.189>
CSeq: 10 INVITE
Call-ID: 1848f154-4e88-11ea-8701-d574145c6a81_b2b-1
Max-Forwards: 69
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, REGISTER,
NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Content-Disposition: session
P-Asserted-Identity: <sip:554130304040 at 54.233.79.7>
Content-Type: application/sdp
Content-Length: 736
Contact: <sip:ngcp-lb at 54.233.79.7:5060
;ngcpct=7369703a3132372e302e302e313a35303830>

--


[image: --]
Guilherme Lacerda
[image: http://]about.me/lacerdaguilherme
<http://about.me/lacerdaguilherme?promo=email_sig>



Em qua., 12 de fev. de 2020 às 11:07, Daniel Grotti <dgrotti at sipwise.com>
escreveu:

> Hi,
> under the "Outbound rewrite rules for callee", assigned to your peering
> server.
> See chapter:
> https://www.sipwise.com/doc/mr7.5.3/spce/?_href=ar01s06.html#dialplans
>
>
>
> Regards,
>
>
> Daniel Grotti
>
> Head of Customer Support                     Sipwise GmbH
> e: dgrotti at sipwise.com                     Europaring F15
> t: +43(0)130120332                A-2345 Brunn Am Gebirge
> w: www.sipwise.com   FN: 305595f   FG: LG Wiener Neustadt
>
> On 2/11/20 8:52 PM, Guilherme Lacerda wrote:
> > Hi,
> >
> > Simple question: where I add a prefix to make my calls?  :-P
> >
> > My peer need a prefix ( 1001#5541998980908 at 111.112.113.114
> > <mailto:5541998980908 at 111.112.113.114> ) to complete calls.
> >
> > I've tried in peer details -> Outbound peering Rules and in Rewrite
> Rules.
> >
> > Thanks and regards.
> >
> > --
> > --
> > Guilherme Lacerda
> > http://about.me/lacerdaguilherme
> >
> > <http://about.me/lacerdaguilherme?promo=email_sig>
> >
> >
>
> --
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20200213/84c340d9/attachment-0002.html>


More information about the Spce-user mailing list