Author |
Message |
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Wed May 08, 2013 7:50 am Post subject: Thru Registration not working |
|
|
1. Brekeke Product Name and Version:
Brekeke SIP Server 2.4.8.6/286.3
2. Java version:
7
3. OS type and the version:
Suse 11
4. UA (phone), gateway or other hardware/software involved:
xlite, upper server
5. Pattern 4
6.Your problem:
I have the sip proxy in the DMZ with a public IP. I want to register a UA (LAN) with a SIP Trunk in the internet to receive and make calls. The UA tries to register over SipServer to Sipgateusing the following request:
REGISTER sip:sipgate.de SIP/2.0
From: <sip:username@sipgate.de>;tag=ACU-1779-fcd7add5
To: sip:username@sipgate.de
Contact: sip:UAName@lanIPUA
Call-ID: 03BD1A00-518A6053@UAIP
CSeq: 145 REGISTER
Content-Length: 0
Expires: 3600
Via: SIP/2.0/UDP UAIP:5060;rport;branch=z9hG4bK1eaf8a55-b7eb-11e2-8491-bac74cb34b66
Max-Forwards: 70
Route: <sip:SBrekekeServerIP:5060;lr>
It gets back Unauthorized after trying directly from Brekeke it never tried to reach out to sipgate.de at all.
In the configuration upper reg is off and thru reg is on.
Any help is very appreciated! |
|
Back to top |
|
redroof Brekeke Talented
Joined: 16 Nov 2007 Posts: 97
|
Posted: Wed May 08, 2013 9:55 am Post subject: |
|
|
Create an account in the [User Authentication] page.
-OR-
Disable the Authentication in the [Configuration]->[SIP] page -> [Authentication].
Set [REGISTER] and [INVITE] = "off" |
|
Back to top |
|
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Fri May 10, 2013 9:16 am Post subject: |
|
|
I created a rule where
Match
$request=^REGISTER
To=sip:xxxxx@sipgate.de
Deploy
$auth=false
$continue=true
That does the trick. I can register. Thanks a lot!
Now I try to forward calls coming from sipgate to my UA:
Match
$request=^INVITE
$addr=<sipgateip>
To=sip:(.+)@
$getUri(From)=(.+)
$port=(.+)
Deploy
$continue=true
$auth=false
To=sip:%1@uaIP
From=%2:%3
But I always get 603 Declined. Is there a way to identify which dial plan rule has fired? And what exactly is $continue doing.
Another issue is that when the server declines the line I can see that in wireshark but not in the logfile itself (net.sip.loglevel.file=255) Why is that?
Kind Regards
Marco |
|
Back to top |
|
tschaikowskinksi Brekeke Member
Joined: 11 Apr 2011 Posts: 23
|
Posted: Mon May 13, 2013 4:12 am Post subject: |
|
|
Ok, got it working. The issue was that I had $continue=true in my deployment.
That would cause the dial plan to evaluate following rules. Another rule was rejecting the request.
Very annoying is that Sip server rejects without logging the corresponding sip trace. Meaning I can trace it with wireshark but there is nothing in the logs.
Is there a way see which rule has fired in the dialplan? Would make things much easier!!
Regards Marco |
|
Back to top |
|
redroof Brekeke Talented
Joined: 16 Nov 2007 Posts: 97
|
Posted: Mon May 13, 2013 9:32 am Post subject: |
|
|
Marco,
For REGISTER to Sipgate
Matching Patterns | $request = ^REGISTER To = @sipgate.de
| Deploy Patterns | $auth = false $action = register
|
For INVITE to Sipgate
Matching Patterns | $request = ^INVITE To = sip:(.+)@sipgate.de
| Deploy Patterns | $auth = false To = sip:%1@sipgate.de
|
For INVITE from Sipgate
Matching Patterns | $request = ^INVITE $addr = <sipgateip> To = sip:(.+)@
| Deploy Patterns | $auth = false To = sip:%1@
|
> But I always get 603 Declined. Is there a way to identify which dial plan rule has fired?
Let you use Brekeke SIP Server ver 3.
It has the DialPlan history feature.
> And what exactly is $continue doing.
Let you read the document.
> but not in the logfile itself (net.sip.loglevel.file=255) Why is that
Let you use Brekeke SIP Server ver 3. |
|
Back to top |
|
redroof Brekeke Talented
Joined: 16 Nov 2007 Posts: 97
|
Posted: Mon May 13, 2013 9:37 am Post subject: |
|
|
> Is there a way see which rule has fired in the dialplan?
DialPlan History feature in Brekeke SIP Server 3 will list recent executed rules with results. |
|
Back to top |
|
|