[Spce-user] inbound rewriting rule

Blagoja blagojaanusev at anutel.ca
Wed Feb 27 16:31:37 EST 2013


On 2/27/2013 4:17 PM, Kevin Masse wrote:
> Hello, one of the most asked questions I see is:    What do I do for
> rewrite rules.
>
> First thing is you need to fully understand exactly what the rewrite
> rules are doing.  If you are an asterisk user you need to forget
> NXXNXXXXXX etc.
>
> Try to use this reference
> http://www.regular-expressions.info/reference.html as a guide to fully
> understanding the use of Regular Expressions so you can anticipate
> exactly what you want to put in the rewrite rule.
>
> I know that this is not answering your question directly but if you
> completely understand the Regular Expressions you will get it quickly.
>
> I just saw an email come through from Lorenzo with the link and
> reference to the manual that describes it all.
>
> Follow both the suggestion above and it will begin to click.
>
> I think everyone in the list has been where you are at one point or
> another but once you understand it you will not have any issues with
> this.
>
>
> You could also post some examples that will help drive home your issue.
>
> Thanks
> Kevin
>
>
>
> -----Original Message-----
> From: spce-user-bounces at lists.sipwise.com
> [mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Blagoja
> Sent: Wednesday, February 27, 2013 4:08 PM
> To: spce-user at lists.sipwise.com
> Subject: [Spce-user] inbound rewriting rule
>
> Hello, I can't figure out how rewriting is working . I have problem
> routing incoming call .
> Can someone help please
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
>

        Thanks. Can you give me a hint what should i use for inbound call :

U 2013/02/27 16:24:11.989859 127.0.0.1:5060 -> 127.0.0.1:5062
ACK sip:127.0.0.1:5080 SIP/2.0'
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=99t4ntcktc;ngcplb=yes>'
Record-Route: <sip:24.150.194.162;r2=on;lr=on;ftag=99t4ntcktc;ngcplb=yes>'
Via: SIP/2.0/UDP 
127.0.0.1;branch=z9hG4bKb681.ab05ea59cb197e25406c375804bfd202.0'
Via: SIP/2.0/UDP 
217.16.67.5:5060;rport=5060;branch=z9hG4bKmmh0al3048rhbjk040n0.1'
CSeq: 112 ACK'
Call-ID: 41ab0d85t5auay1ag at 172.16.17.10'
From: "025101165" 
<sip:025101165 at 217.16.67.5:5060;user=phone;cpc=ordinary>;tag=99t4ntcktc'
To: "5101199" 
<sip:5101199 at 217.16.67.5:5060;user=phone>;tag=f3067022b00c564156251ba2f28f331f-f415'
Max-Forwards: 68'
Content-Length: 0'
P-NGCP-Src-Ip: 217.16.67.5'
P-NGCP-Src-Port: 5060'
P-NGCP-Src-Proto: udp'
P-NGCP-Src-Af: 4'


this is log how i recieve the call and my user number is set  389 2 5101199



incoming caller or incoming callee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130227/9ce72406/attachment-0001.html>


More information about the Spce-user mailing list