Pattern Not Routing - Getting error back at client side

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
stevehodges60
Posts: 7
Joined: Tue Oct 11, 2011 12:39 pm
Location: Texas

Pattern Not Routing - Getting error back at client side

Post by stevehodges60 »

1. Brekeke Product Name and version: 2.4.8.6

2. Java version:

3. OS type and the version:Windows 7

4. UA (phone), gateway or other hardware/software involved:PortSip

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : Pattern 8

6. Your problem:
I am trying to route any inbound caller that is registered to a carrier that uses IP validation.

My caller is registered. The server is getting the request.


Dial Plan:National Outbound
Matching Pattern
$registered=true
$request=^INVITE
To=sip:19(.+)@

Deploy Pattern
To=sip:19(.+)@ To=@dallas.voip.ms

Debug Log

==============================================

session.129: receive: from=UAC:72.48.95.132:9351(UDP) at 10/13/11 10:39:21.998
==============================================
ACK sip:19407351558@208.176.223.20 SIP/2.0
Via: SIP/2.0/UDP 72.48.95.132:9351;branch=z9hG4bK-d8754z-cf2b3c70a974f154-1---d8754z-;rport=9351
Max-Forwards: 70
To: <sip:19407351558@208.176.223.20>;tag=as6426cbeb
From: "9407351558"<sip:9407351558@208.176.223.20>;tag=22738a1f
Call-ID: MTVmODA5ODVlZWU1MWY0OGRlODgzZTk5YjA4MDFiYzY.
CSeq: 2 ACK
Content-Length: 0


==============================================


==============================================

register.140: close
management.140: close: register: from=sip:10017@208.176.223.20 at 10/13/11 11:02:24.692

registrar: lookuped: 'sip:19407351558' is not found.
registrar: lookuped: 'sip:19407351558' is not found.
registrar: lookuped: 'sip:19407351558' is not found.
registrar: lookuped: 'sip:9407351558' as 'sip:9407351558@72.48.95.132:9351' (378)
register.142: processing: rule=register
register.142: recv: at 10/13/11 11:03:11.934
==============================================
REGISTER sip:208.176.223.20 SIP/2.0
Via: SIP/2.0/UDP 72.48.95.132:9351;branch=z9hG4bK-d8754z-a01e7607ad5d4172-1---d8754z-;rport=9351
Max-Forwards: 70
Contact: <sip:9407351558@72.48.95.132:9351;rinstance=c37056bc89ff8472>
To: "9407351558"<sip:9407351558@208.176.223.20>
From: "9407351558"<sip:9407351558@208.176.223.20>;tag=1b28dc04
Call-ID: OGM4ZWQ2ZTRiNzE4MDgyODUzZTA5NTJhNzdlM2I0ZGM.
CSeq: 39 REGISTER
Expires: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, REGISTER, SUBSCRIBE, INFO
Supported: replaces
User-Agent: SRR Technologies
Authorization: Digest username="9407351558",realm="voipin.srrtech.com",nonce="535d19fe25956a4dd502e697c9a2553a50d9f33a",uri="sip:208.176.223.20",response="2581dc526cbae5b866b96e26bb2df7c3",algorithm=MD5
Content-Length: 0


==============================================
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

your Deploy Pattern has a syntax problem.

> Deploy Pattern
> To=sip:19(.+)@ To=@dallas.voip.ms

It must be

> Deploy Pattern
> To=sip:19%1@
stevehodges60
Posts: 7
Joined: Tue Oct 11, 2011 12:39 pm
Location: Texas

Post by stevehodges60 »

Thank you I was able to make it work with the change as follows:
Deploy Pattern:
To=sip:19%1@dallas.voip.ms
stevehodges60
Posts: 7
Joined: Tue Oct 11, 2011 12:39 pm
Location: Texas

Post by stevehodges60 »

I was working from the Dial Plan Tutorial PDF example 12 for an inbound from an unregisterd trying to route to a registered user at 9407351558 and it did not find the user even through they were log on the system.

Dialed number 8883599379
Target Register User: 9407351558

Matching Pattern:
$request=^INVITE
$registered=false
$registered("user")=true

Deploy Pattern
To=sip:9407351558@
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

$registered( “user” ) = true
In the example, "user" is the sip ID registered at Brekeke

change to $registered = true

at brekeke sip server admin guide there are more examples and variables
http://www.brekeke.com/download/download_sip_doc_en.php
stevehodges60
Posts: 7
Joined: Tue Oct 11, 2011 12:39 pm
Location: Texas

Post by stevehodges60 »

Still did not work:
Add a registered user to the same number of my toll free inbound
8883599379
Mataching Pattern:
$request=^INVITE
$registered=true - tested under true and false settings
$registered("8883599379")=true

Destination Pattern:
To=sip:8883599379@
stevehodges60
Posts: 7
Joined: Tue Oct 11, 2011 12:39 pm
Location: Texas

Post by stevehodges60 »

I have done some addtional testing and the routing between registered users works great.

However, can not get the routing to work from non registered source.

Current Settings:
Matching Pattern:
$request=^INVITE
To=sip:8883599379@

Deploy Pattern:
To=sip:9407351558@

What modification do I need to make to the Matching Pattern:
I have tried $registered=true and $registered=false. As indicated by example 12 in the manual.

Matching Patterns tried and did not work:
$request=^INVITE
$registered=true
To=sip:8883599379@

and

$request=^INVITE
$registered=false
To=sip:8883599379@

Thank you,
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

try
Matching Pattern:
$request=^INVITE
To=sip:8883599379@

Deploy Pattern:
$auth = false
To=sip:9407351558@

put it on top of all other dial plan, click "Apply rules" button after changing dial plan
if not work, capture packets and check INVITE To header is it to 8883599379
is 9407351558 registered at brekeke, can you call from other phone to it?
Post Reply