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!
Thru Registration not working
Moderator: Brekeke Support Team
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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
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
-
- Posts: 23
- Joined: Mon Apr 11, 2011 8:10 am
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
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
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.
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.