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: Select all
[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@
Code: Select all
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 know that Wireshark dump is necessary, but do you really want to see it? Here is just the "main" part of it?
Code: Select all
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??