Author |
Message |
stevehodges60 Brekeke Junior Member
Joined: 11 Oct 2011 Posts: 7
Location: Texas
|
Posted: Thu Oct 13, 2011 8:13 am Post subject: Pattern Not Routing - Getting error back at client side |
|
|
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/networkpatterns.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 Patterns | $registered = true $request = ^INVITE To = sip:19(.+)@
| Deploy Patterns | 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
============================================== |
|
Back to top |
|
Laurie Brekeke Master Guru
Joined: 07 Jan 2008 Posts: 245
|
Posted: Thu Oct 13, 2011 11:56 am Post subject: |
|
|
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@ |
|
Back to top |
|
stevehodges60 Brekeke Junior Member
Joined: 11 Oct 2011 Posts: 7
Location: Texas
|
Posted: Thu Oct 13, 2011 10:04 pm Post subject: |
|
|
Thank you I was able to make it work with the change as follows:
Deploy Patterns | To = sip:19%1@dallas.voip.ms
|
|
|
Back to top |
|
stevehodges60 Brekeke Junior Member
Joined: 11 Oct 2011 Posts: 7
Location: Texas
|
Posted: Thu Oct 13, 2011 10:12 pm Post subject: |
|
|
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 Patterns | $request = ^INVITE $registered = false $registered("user") = true
| Deploy Patterns | To = sip:9407351558@
|
|
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Fri Oct 14, 2011 9:51 am Post subject: |
|
|
$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 |
|
Back to top |
|
stevehodges60 Brekeke Junior Member
Joined: 11 Oct 2011 Posts: 7
Location: Texas
|
Posted: Fri Oct 14, 2011 9:31 pm Post subject: |
|
|
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@ |
|
Back to top |
|
stevehodges60 Brekeke Junior Member
Joined: 11 Oct 2011 Posts: 7
Location: Texas
|
Posted: Mon Oct 17, 2011 2:49 am Post subject: |
|
|
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 Patterns | $request = ^INVITE To = sip:8883599379@
| Deploy Patterns | 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, |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Oct 17, 2011 10:16 am Post subject: |
|
|
try
Matching Patterns | $request = ^INVITE To = sip:8883599379@
| Deploy Patterns | $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? |
|
Back to top |
|
|