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

Guilherme Lacerda lacerdaguilherme at gmail.com
Mon Feb 17 07:56:20 EST 2020


hi Daniel,

It was a excellent tool. UI simple and fast, billing (and customer space to
see your calls), but unfortunately I need to change caller ID(to create
virtual number per Area Code).

My customer wants call from your number in Area Code 11 (Brazil codes) to
AC 61, for example, and uses a virtual number in AC 61.Callee will see AC
61 number (originate caller ID) and not a AC 11 (true originate caller ID).
The check and logic it was in AC callee code/ID.

Freeswitch do this, but dont have other SBC/Sipwise features. I don't want
to insert one more layer in my topology.

Thanks for all your help and attention.

--


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



Em seg., 17 de fev. de 2020 às 09:34, Daniel Grotti <dgrotti at sipwise.com>
escreveu:

> Hi,
> well you can continue to use CE, you can do a lot of things, even
> without header manipulation.
> That's more an advanced feature.
>
> Cheers,
>
>
> 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/17/20 1:25 PM, Guilherme Lacerda wrote:
> > hello,
> >
> > Thanks for your information. Sad news to my project. To start, I need
> > open solution and in the future, going to a PRO suit/application.
> >
> > Regards,
> >
> > --
> > --
> > Guilherme Lacerda
> > http://about.me/lacerdaguilherme
> >
> > <http://about.me/lacerdaguilherme?promo=email_sig>
> >
> >
> >
> > Em seg., 17 de fev. de 2020 às 09:04, Daniel Grotti <dgrotti at sipwise.com
> > <mailto:dgrotti at sipwise.com>> escreveu:
> >
> >     Hi,
> >     please notice that Header Manipulation is a PRO/CARRIER feature, not
> >     available for CE.
> >     Even though web GUI is displaying it, changes with that regards will
> >     not
> >     take any effect.
> >
> >
> >     Cheers,
> >
> >
> >     Daniel Grotti
> >
> >     Head of Customer Support                     Sipwise GmbH
> >     e: dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >         Europaring F15
> >     t: +43(0)130120332                A-2345 Brunn Am Gebirge
> >     w: www.sipwise.com <http://www.sipwise.com>   FN: 305595f   FG: LG
> >     Wiener Neustadt
> >
> >     On 2/14/20 2:01 PM, Guilherme Lacerda wrote:
> >      > Hi,
> >      >
> >      > Thanks your reply.
> >      >
> >      > I think I understand now how rewrite rules works :-D
> >      >
> >      > Cenario 1: first rule is for remove "+". Second rule is for
> append a
> >      > prefix. Match first rule and stop here, not process second rule.
> >      >
> >      > Cenario 2: I changed rules from outbound callee to inbound callee
> >     (call
> >      > flow is Softphone => PBX => Sipwise => PSTN, Sipwise only for
> >     LB/LCR and
> >      > rewrite headers).
> >      >
> >      > When I insert rewrite rules in Inbound and use normalization + add
> >      > prefix in one rule, it works.
> >      >
> >      > Now start a new battle: header manipulations (handbook do not have
> >      > detailed examples or explain all options).
> >      >
> >      > Thanks for your help.
> >      >
> >      > Regards
> >      >
> >      > --
> >      > --
> >      > Guilherme Lacerda
> >      > http://about.me/lacerdaguilherme
> >      >
> >      > <http://about.me/lacerdaguilherme?promo=email_sig>
> >      >
> >      >
> >      >
> >      > Em sex., 14 de fev. de 2020 às 04:54, Daniel Grotti
> >     <dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >      > <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>>
> escreveu:
> >      >
> >      >     Hi,
> >      >     Have you assigned the the Rewrite rule set to the peering
> >     server used?
> >      >     Anyway, your number cannot not match, as long as it is
> +554....
> >      >     Because you have no "+" in your pattern ^([0-9]+)$.
> >      >
> >      >     Rewrite rules is quite simple, and well explained in the
> >     documention, I
> >      >     have to say.
> >      >
> >      >
> >      >     Also, it would help to see the full kamailo-proxy.log for
> >     this call in
> >      >     order to understand exactly wha is the number that is
> >     supposed to match
> >      >     your Outbound RR. It also depends if you are using Inbound RR
> >     and if
> >      >     you
> >      >     are rewriting the callee number into E164 number, first.
> >      >
> >      >     Cheers,
> >      >
> >      >
> >      >     Daniel Grotti
> >      >
> >      >     Head of Customer Support                     Sipwise GmbH
> >      >     e: dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>
> >      >         Europaring F15
> >      >     t: +43(0)130120332                A-2345 Brunn Am Gebirge
> >      >     w: www.sipwise.com <http://www.sipwise.com>
> >     <http://www.sipwise.com>   FN: 305595f   FG: LG
> >      >     Wiener Neustadt
> >      >
> >      >     On 2/13/20 6:45 PM, Guilherme Lacerda wrote:
> >      >      > 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
> >     <mailto:sip%3Akazoo at 54.233.79.7>
> >      >     <mailto:sip%3Akazoo at 54.233.79.7
> >     <mailto:sip%253Akazoo at 54.233.79.7>>
> >      >      > <mailto:sip%3Akazoo at 54.233.79.7
> >     <mailto:sip%253Akazoo at 54.233.79.7>
> >      >     <mailto:sip%253Akazoo at 54.233.79.7
> >     <mailto:sip%25253Akazoo at 54.233.79.7>>>' with id 1
> >      >      > call from +554130129701 using subscriber
> >     'kazoo at 54.233.79.7 <mailto:kazoo at 54.233.79.7>
> >      >     <mailto:kazoo at 54.233.79.7 <mailto:kazoo at 54.233.79.7>>
> >      >      > <mailto:kazoo at 54.233.79.7 <mailto:kazoo at 54.233.79.7>
> >     <mailto:kazoo at 54.233.79.7 <mailto: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
> >     <mailto:sip%3A554130304040 at 54.233.79.7>
> >      >     <mailto:sip%3A554130304040 at 54.233.79.7
> >     <mailto:sip%253A554130304040 at 54.233.79.7>>
> >      >     <mailto:sip%3A554130304040 at 54.233.79.7
> >     <mailto:sip%253A554130304040 at 54.233.79.7>
> >      >     <mailto:sip%253A554130304040 at 54.233.79.7
> >     <mailto:sip%25253A554130304040 at 54.233.79.7>>> and
> >      >      > callee uri sip:5541998970007 at 187.60.60.189
> >     <mailto:sip%3A5541998970007 at 187.60.60.189>
> >      >     <mailto:sip%3A5541998970007 at 187.60.60.189
> >     <mailto:sip%253A5541998970007 at 187.60.60.189>>
> >      >      > <mailto:sip%3A5541998970007 at 187.60.60.189
> >     <mailto:sip%253A5541998970007 at 187.60.60.189>
> >      >     <mailto:sip%253A5541998970007 at 187.60.60.189
> >     <mailto:sip%25253A5541998970007 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
> >     <http://172.31.37.142:5060>
> >      >     <http://172.31.37.142:5060>
> >      >      > <http://172.31.37.142:5060> -> 187.60.60.189:5060
> >     <http://187.60.60.189:5060>
> >      >     <http://187.60.60.189:5060>
> >      >      > <http://187.60.60.189:5060>
> >      >      > INVITE sip:+5541998970007 at 187.60.60.
> >     <mailto:sip%3A%2B5541998970007 at 187.60.60.>
> >      >     <mailto:sip%3A%2B5541998970007 at 187.60.60
> >     <mailto:sip%253A%252B5541998970007 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
> >     <mailto:sip%3A554130129701 at 169.57.148.23>
> >      >     <mailto:sip%3A554130129701 at 169.57.148.23
> >     <mailto:sip%253A554130129701 at 169.57.148.23>>
> >      >      > <mailto:sip%3A554130129701 at 169.57.148.23
> >     <mailto:sip%253A554130129701 at 169.57.148.23>
> >      >     <mailto:sip%253A554130129701 at 169.57.148.23
> >     <mailto:sip%25253A554130129701 at 169.57.148.23
> >>>>;tag=4EFB872A-5E458A4D000257AC-14A4B700
> >      >      > To: <sip:+5541998970007 at 187.60.60.189
> >     <mailto:sip%3A%2B5541998970007 at 187.60.60.189>
> >      >     <mailto:sip%3A%2B5541998970007 at 187.60.60.189
> >     <mailto:sip%253A%252B5541998970007 at 187.60.60.189>>
> >      >      > <mailto:sip%3A%2B5541998970007 at 187.60.60.189
> >     <mailto:sip%253A%252B5541998970007 at 187.60.60.189>
> >      >     <mailto:sip%253A%252B5541998970007 at 187.60.60.189
> >     <mailto:sip%25253A%25252B5541998970007 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
> >     <mailto:sip%3A554130304040 at 54.233.79.7>
> >      >     <mailto:sip%3A554130304040 at 54.233.79.7
> >     <mailto:sip%253A554130304040 at 54.233.79.7>>
> >      >      > <mailto:sip%3A554130304040 at 54.233.79.7
> >     <mailto:sip%253A554130304040 at 54.233.79.7>
> >      >     <mailto:sip%253A554130304040 at 54.233.79.7
> >     <mailto:sip%25253A554130304040 at 54.233.79.7>>>>
> >      >      > Content-Type: application/sdp
> >      >      > Content-Length: 736
> >      >      > Contact:
> >      >      > <sip:ngcp-lb at 54.233.79.7:5060
> >     <http://sip:ngcp-lb@54.233.79.7:5060>
> >      >
> >       <http://sip:ngcp-lb@54.233.79.7:5060
> >;ngcpct=7369703a3132372e302e302e313a35303830>
> >      >      >
> >      >      > --
> >      >      > --
> >      >      > Guilherme Lacerda
> >      >      > 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 <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>
> >      >      > <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto: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 <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>
> >      >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>
> >     <mailto:dgrotti at sipwise.com <mailto:dgrotti at sipwise.com>>>
> >      >      >         Europaring F15
> >      >      >     t: +43(0)130120332                A-2345 Brunn Am
> Gebirge
> >      >      >     w: www.sipwise.com <http://www.sipwise.com>
> >     <http://www.sipwise.com>
> >      >     <http://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>
> >      >     <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>>
> >      >      >     <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>
> >      >     <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>>>
> >      >      >      > <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>
> >      >     <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>>
> >      >      >     <mailto:5541998980908 at 111.112.113.114
> >     <mailto:5541998980908 at 111.112.113.114>
> >      >     <mailto: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
> >     <mailto:Spce-user at lists.sipwise.com>
> >     <mailto:Spce-user at lists.sipwise.com
> >     <mailto:Spce-user at lists.sipwise.com>>
> >      >     <mailto:Spce-user at lists.sipwise.com
> >     <mailto:Spce-user at lists.sipwise.com>
> >      >     <mailto:Spce-user at lists.sipwise.com
> >     <mailto: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/20200217/2cde5887/attachment-0002.html>


More information about the Spce-user mailing list