[Spce-user] Rewrite Rules - How to?
matthias.hohl at telematica.at
Sun Apr 24 14:29:47 EDT 2016
yes for Outgoing Calls (so Calls from the SPCE to a Peering) you need a Rewrite Rule you set at the Peering.
The direction is OUTGOING. Callee = The part who will receive the call (in this way anyone in the pstn network), Caller = The part who made the call (in this way one of your subscribers).
I am not expert in regex so better to ask somebody else for solve it. I believe the problem is that regex don’t regonize “+” as a character to set.
Von: Atlanta Man [mailto:axxtel_man at yahoo.com]
Gesendet: Sonntag, 24. April 2016 16:55
An: Matthias Hohl <matthias.hohl at telematica.at>
Betreff: Re: AW: [Spce-user] Rewrite Rules - How to?
Thanks for your reply.
First of all I need a little clarification. I assume Callee refers to person receiving a call on my switch and Caller refers to originator of the call.
I want this to be used for calls where the call originates from the SipWise switch and terminates on a PSTN line.
I tried the match pattern/replacement pattern combination. Get message they are not compatible. I have tried
Match Pattern ^([1-9][0-9]+)$ with replacement +\1 and +1\1
These were not successful. Both sent <sip:6785551212 at sip.trunk.net> sip:6785551212 at sip.trunk.net to the provider.
On Sunday, April 24, 2016 10:26 AM, Matthias Hohl < <mailto:matthias.hohl at telematica.at> matthias.hohl at telematica.at> wrote:
do you need it for Callee or Caller number?
I think you just need the “+” in front of your E.164 number.
So you must create a Peering Rewrite Rule for this peer.
For Callee Number try this:
Outbound Rewrite Rules for Callee
Match Pattern: ^.+$
Replacement Pattern: +\1
For Caller to the same for “Outbound Rewrite Rules for Caller”
But I am not 100% sure if the match and replacement pattern works in this way.
Von: Spce-user [mailto:spce-user-bounces at lists.sipwise.com] Im Auftrag von Atlanta Man
Gesendet: Sonntag, 24. April 2016 13:17
An: <mailto:spce-user at lists.sipwise.com> spce-user at lists.sipwise.com
Betreff: [Spce-user] Rewrite Rules - How to?
I just got my SipWise server running and have questions about creating proper dial plans. One of my carriers requires this format for traffic sent to them.
INVITE sip:+13032990801;rn=4088915607;npdi=yes at sip.trunk.net:5060 SIP/2.0
Can anyone assist, I am unable to create an outbound rewrite rule that produces this output.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Spce-user