[Spce-user] Fwd: 404

Skyler skchopperguy at gmail.com
Tue Nov 13 13:00:25 EST 2012


I wouldn't do that. It will cause future issues. The rewrite rules use Perl
regex, I've always found it difficult to figure out. Had a lot of help from
this list though! ;)


Skyler




On Tue, Nov 13, 2012 at 9:41 AM, Jeremie Chism <jchism2 at gmail.com> wrote:

> I figured it out (I think).  All i had to do was leave the 1 out on the
> sip URI when setting up the subscriber.  Is there a problem with doing this?
>
>
> On Tue, Nov 13, 2012 at 11:24 AM, Skyler <skchopperguy at gmail.com> wrote:
>
>> Depends on your desire, I strip leading '+' in all four in/out
>> callee/caller. could do the same with 10-digits to 11-digits I think.
>>
>>
>>
>> On Tue, Nov 13, 2012 at 9:19 AM, Jeremie Chism <jchism2 at gmail.com> wrote:
>>
>>> ok.  thank you for this help.  this is inbound rewrite rules for callee
>>> right?
>>>
>>>
>>> On Tue, Nov 13, 2012 at 11:16 AM, Skyler <skchopperguy at gmail.com> wrote:
>>>
>>>> Also, watch out for this:
>>>>
>>>> /2   <-- wrong
>>>> \2   <-- correct
>>>>
>>>>
>>>> Skyler
>>>>
>>>> On Tue, Nov 13, 2012 at 9:02 AM, Skyler <skchopperguy at gmail.com> wrote:
>>>>
>>>>> I don't have that in my box but off the top of my head (not tested)
>>>>> would look something like:
>>>>>
>>>>> ^([2-9][0-9]{8})$  ${caller_cc}\1
>>>>>
>>>>> or
>>>>>
>>>>> ^([2-9][0-9]{8})$   1\1
>>>>>
>>>>>
>>>>> Skyler
>>>>>
>>>>> On Tue, Nov 13, 2012 at 8:53 AM, Jeremie Chism <jchism2 at gmail.com>wrote:
>>>>>
>>>>>> Do you have a standard rewrite rule for this.  I am going to ask my
>>>>>> upstream but not sure i will get much of a reply.
>>>>>>
>>>>>>
>>>>>> On Tue, Nov 13, 2012 at 10:49 AM, Skyler <skchopperguy at gmail.com>wrote:
>>>>>>
>>>>>>> No problem. Just for future, this type of issue really only need to
>>>>>>> see the INVITE and not necessarily the whole call flow in a capture. ;)
>>>>>>>
>>>>>>> The R=sip:3184504920 is the problem because SPCE bases all routing
>>>>>>> decisions on the R-URI (Request URI) which is what the 'R' in the logs is.
>>>>>>>
>>>>>>> S
>>>>>>>
>>>>>>> On Tue, Nov 13, 2012 at 8:44 AM, Jeremie Chism <jchism2 at gmail.com>wrote:
>>>>>>>
>>>>>>>> My email was probably going out as you were sending yours.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Nov 13, 2012 at 10:42 AM, Skyler <skchopperguy at gmail.com>wrote:
>>>>>>>>
>>>>>>>>> Jeremy,
>>>>>>>>>
>>>>>>>>>  Slow down, read your INVITE.
>>>>>>>>> .....
>>>>>>>>> INVITE sip:3184504920 at 107.7.157.250 SIP/2.0'
>>>>>>>>>
>>>>>>>>> Also in the log.....R=sip:3184504920 at 107.7.157.250<3184504920 at 107.7.157.250>
>>>>>>>>>
>>>>>>>>> What Jon is saying is that clearly, 3184504920 is NOT a valid
>>>>>>>>> number on your SPCE box. Your peer is sending you a request for 10-digits
>>>>>>>>> but SPCE only uses 11-digits. You need to either ask upstream to send you
>>>>>>>>> e164 (11-digits) or you need a rewrite rule that matches 10-digits and ...
>>>>>>>>> adds a 1 in front.
>>>>>>>>>
>>>>>>>>> Skyler
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jeremie Chism
>>>>>> Triton Communications
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Jeremie Chism
>>> Triton Communications
>>>
>>
>>
>
>
> --
> Jeremie Chism
> Triton Communications
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20121113/a7028c53/attachment-0001.html>


More information about the Spce-user mailing list