|
|
Author |
Message |
brianwong3 Brekeke Newbie
Joined: 27 May 2021 Posts: 1
|
Posted: Fri May 28, 2021 8:45 pm Post subject: Outbound ARS / Dial Plan Authentication? |
|
|
1. Brekeke Product Name and Version:
2. Java version: JDK 16.0.1
3. OS type and the version: Windows 10
4. UA (phone), gateway or other hardware/software involved: Brekeke PBX
5. Your problem:
I am trying to get a SIP Trunk registered on the Brekeke PBX. I managed to get inbound working to be redirected to an extension, but I am having issues with Outbound. It seems that the Dial Plan, doesnt redirect it to the ARS, for the authentication credentials, which I am assuming it should.
SIP Credentials [ clearly fudged ]
Username : baaam
Auth Name : booom
DID : 1001
SIP Server IP : 10.10.10.10
The Dial Plan I have at the moment;
Code: |
[b]Matching Patterns:[/b]
$request = ^INVITE
To = sip:([0-9]{7,20})@ [i] // to only handle non-extension based numbers??[/i]
[b]Deploy Patterns:[/b]
To: sip:%1@
|
The ARS Out Pattern I have at the moment;
Code: |
Matching Patterns:
From : sip:(.+)@192.168.x.x
To : sip:(.+)@192.168.x.x
Deploy Patterns:
From : sip:1001@10.10.10.10
To : sip:$1@10.10.10.10
|
I can see that the call does hit the Dial Plan, but it doesnt hit the ARS..
I know that Wireshark dump is necessary, but do you really want to see it? Here is just the "main" part of it?
Code: |
Via: SIP/2.0/UDP 202.187.xxx.xxx:5060;branch=z9hG4bKb65484312c93-30-2d5db4
Via: SIP/2.0/UDP 192.168.x.x:54120;branch=z9hG4bK00dc7a569cbeeb11af4c2b31d8160bae;rport=54120
From: "PhonerLite" <sip:200@202.187.xxx.xxx;>;tag=2694244840
To: <sip:0163124085@10.10.10.10>
Call-ID: 00DC7A56-9CBE-EB11-AF4A-2B31D8160BAE@192.168.x.x
CSeq: 2 INVITE
Contact: <sip:200@202.187.xxx.xxx:5060;gr=805FBEB3-93BE-EB11-AF16-2B31D8160BAE>
Authorization: Digest username="200", realm="10.10.10.10", nonce="60b1b6185485057ee23c376217fc3b5c48bbc45f", uri="sip:111111@192.168.x.x", response="2addd76d25432c7c611300069900bdff", algorithm=MD5
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER, UPDATE, PRACK
Max-Forwards: 69
Supported: 100rel, replaces, from-change, gruu
User-Agent: PhonerLite 2.91
P-Preferred-Identity: <sip:200@192.168.x.x>
Record-Route: <sip:202.187.xxx.xxx:5060;ftag=2694244840;lr>
Content-Type: application/sdp
Content-Length: 350 |
The Digest username is clearly incorrect...so I am assuming it isnt hitting the ARS for the credentials?
Any ideas or am I wrong?? |
|
Back to top |
|
llucy Brekeke Talented
Joined: 31 Jan 2014 Posts: 52
|
Posted: Sat Jun 05, 2021 12:05 pm Post subject: |
|
|
Hi brianwong3,
What version of Brekeke PBX are you using?
I don't think Brekeke PBX support Java 16.
https://docs.brekeke.com/pbx/system-requirement
Is the extension 200 registered to the SIP server?
With your dial plan rule, all the out going sessions which matches To = sip:([0-9]{7,20})@ don't go to PBX. Only the SIP server will be used.
So it does not have to go ARS.
Unless you want to intentionally bypass PBX, you would not have to modify the default dial plan in most of the cases.
Lucy |
|
Back to top |
|
|
|
|
|