[Spce-user] Domain not served here.

Richard Fuchs rfuchs at sipwise.com
Tue Oct 16 22:53:27 EDT 2012


Hi,

A rewrite rule that does that is as easy as a simple caret (^) as match
pattern and the single digit 1 as replacement pattern. (Note that this
doesn't work with stock kamailio, there you'd need something like .* -> 1\0)

cheers


On 10/16/12 22:34, Dave Massey wrote:
> 
> To reply to myself, I managed to get it to work using rewrite rule.  But I dont know anything about regex, I need a rule that will add a 1 to the 10 digit number on every incoming call.
>  
> On 2012-10-16, at 9:45 PM, Dave Massey <dave at optionsdsl.ca> wrote:
> 
>>
>> Ok this worked  it doesnt reject it anymore, but now it cant find the customer.  (404 not found)
>>
>> My test customer has the e.164 number DID set.  (some data xxd out).. Does the peer need to send the country code  as well?
>>
>> 05:37:53.138317 IP (tos 0xb8, ttl 64, id 57325, offset 0, flags [none], proto UDP (17), length 457)
>>    24.102.xx.xx.5060 > 209.139.xx.xx.5060: SIP, length: 429
>> 	SIP/2.0 404 Not Found
>> 	Via: SIP/2.0/UDP 209.139.xx.xx:5060;rport=5060;branch=z9hG4bK54d749e985288e1cd2f24-19a04849-7c9056f
>> 	From: "905975xxxx" <sip:905975xxxx at 209.139.xx.xx;user=phone>;tag=GR52RWG346-34
>> 	To: "999519805xxxx" <sip:519805xxxx at 24.102.xx.xx>;tag=f3067022b00c564156251ba2f28f331f-d9f9
>> 	Call-ID: b7b308bc-acf86d35-4072c4cc-2eaee3d4 at 209.139.xx.xx
>> 	CSeq: 1 INVITE
>> 	Server: Sipwise NGCP Proxy 2.X
>> 	Content-Length: 0
>>
>>
>> On 2012-10-16, at 9:02 PM, Andreas Granig <agranig at sipwise.com> wrote:
>>
>>> Hi Dave,
>>>
>>> On 10/17/2012 02:46 AM, Dave Massey wrote:
>>>> But when I try to make a call from a DID into a customer, I get an error Domain not served here.
>>>> I TCPdumed the packet and I guess it wants my domain in the request, but the peer sends it in  sip:519808xxxx at 24.102.xxx.xxx and sipwise wants it as sip:519808xxxx at sip.domain.com
>>>>
>>>> I dont really want to use an IP, as it may change and dont want to reconfigure 50 ATAs :(
>>>>
>>>> What do I do?
>>>
>>> Just create an empty domain. This will make the system accept the call,
>>> while still being able to find the subscriber for this number (assuming
>>> that you set the 519808xxxx as E164 number for a subscriber, not as the
>>> subscriber username).
>>>
>>> Andreas
>>>
>>> _______________________________________________
>>> Spce-user mailing list
>>> Spce-user at lists.sipwise.com
>>> http://lists.sipwise.com/listinfo/spce-user
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20121016/303e8589/attachment-0001.asc>


More information about the Spce-user mailing list