[Spce-user] Trying to understand inbound routing

Theo axessofficetheo at gmail.com
Thu Feb 28 01:25:08 EST 2013


Hi

I had an issue with my rewrite rules. Jon kindly sorted that out for me but
for the benefit of others - this was my problem:

The match expression "+27876250500" is invalid. It should be "\+27876250500"
to
escape the '+'

While the system tries to look for incorrect rules, this one bypassed it
and was accepted. The result of that was that your cannot restart the proxy
- it doesn't crash it but fails to start with a rule like that. He will see
if they can add my ignorance to the ossbss regexp validation code. I guess
if you make a mistake like that, forget about it because it wasn't a real
life scenario, you'll be in for a surprise when you want to restart 6
months later :-).

His fix worked for me so I have that working now. Still don't fully
understand rewrite rules but am letting my mind go over that once more
before I bug the forum with more questions on that one

On Wed, Feb 27, 2013 at 5:38 PM, Jon Bonilla <jbonilla at sipwise.com> wrote:

> El Wed, 27 Feb 2013 17:04:24 +0200
> Theo <axessofficetheo at gmail.com> escribió:
>
> > Hi
> >
> > I have progressed to testing this as an actual PBX. I think I sort of
> > understand the outbound rewriting and sending to peers. I am not getting
> > the inbound part though.
> >
> > Example: Calls come in to the SPCE in following format. +2787xxxxxxx.
> There
> > are two things I need to achieve.
> >
> > 1. Call must be sent onto another sip peer (a whole host of asterisk
> boxes
> > we currently have)
> >
> > 2. Call must be sent to a local user on the SPCE as we may be moving them
> > off asterisk onto this platform gradually.
> >
> > I have not looked at the sending it to a sip peer yet, thinking that
> once I
> > understand it I will figure that out (we'll see about that :-). I am
> > failing on the sending to local user part.
> >
> > Currently I have a rewrite rule set called test inbound. Under inbound
> > caller I have simply +2787xxxxxxx to rewrite to 2721200 which is the
> number
> > assigned to a subscriber. I then add this rewrite rule set to the the
> > domain I set up as well as to the sip peer.
> >
> > That's as far as I got. The call is successfully sent to the SPCE but
> > doesn't reach the subscriber. Me thinks that's because of this from the
> > proxy log:
> >
> > Rewriting callee '+27876250500' to '+2721200
> >
> > It rewrites it to +2721200 whereas my rule says 2721200.....
> >
> > What am I overlooking?
>
>
> Well, actually looks like the rewrite rule is not correct. Could you paste
> the
> proxy log for the call and how the rewrite rules looks like? We might have
> to
> take a look into the db if the solution is not obvious.
>
>
>
> _______________________________________________
> 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/20130228/006557d5/attachment-0001.html>


More information about the Spce-user mailing list