Solved Inbound SIPs not going to correct extension numbers

Status
Not open for further replies.

deano

Free User
Joined
Oct 12, 2020
Messages
6
Reaction score
1
Hello All,

I've gone through several different posts to find a solution, however nothing seems to be working.

The Problem

I have 5 different inbound telephone numbers (Provided by Dial9), when I am calling ANY of those 5 telephone numbers they are all routing to my extension number. What should be happening is that they go to their relative extension numbers.

I have spoken to Dial9 to see if there is a problem on their side and they have had a look at my 3cx logs and not not find a problem and do not understand why my calls are not routing corrently.

My Setup

To save space, i will explain how i have 2 telephone numbers setup;

Telephone number 1: 0330 229 XXXX

SIP: I have setup 2 SIPs by advice of the provider (Dial9), the Main Trunk No = 0330 229 xxxx
Route Calls To - Extension 1000
Inbound Paraments = Call Source Identification = True and Use Both "Call Source Identification ..." = True.
Under DIDs there are no other numbers apart from the main Trunk Number.

Telephone number 2: 0161 806 XXXX
SIP: I have setup 2 SIPs by advice of the provider (Dial9), the Main Trunk No = 0161 806 xxxx
Route Calls To - Extension 1001
Inbound Paraments = Call Source Identification = True and Use Both "Call Source Identification ..." = True.
Under DIDs there are no other numbers apart from the main Trunk Number.

What I have tried

- Enabling and disabling the Call Source Indentificatoin
- Changing the parameters
- Adding/Removing Inbound Rules (currently no inbound rules)
- Contacting the SIP Provider

Logs
Code:
12/10/2020 15:21:03 - Set log verbosity to MaxLevel = 2, Severity mask = 7
12/10/2020 15:21:03 - Default best-route IP is determined as 64.227.42.xx
12/10/2020 15:20:57 - Leg L:55.2[Extn:1000] is terminated: Cause: 487 Request Terminated/INVITE from 127.0.0.1:5483
12/10/2020 15:20:57 - L:55.2[Extn:1000] got Terminated Recv 487/INVITE from 127.0.0.1:5483 tid=9ce212086829177b Call-ID=tIZFhoZ54J2eyx1uCjidQg..:
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-524287-1---9ce212086829177b;rport=5060
To: <sip:[email protected]>;tag=b23bde23
From: "078509738xx"<sip:[email protected]:5060;nf=e>;tag=21154f1c
Call-ID: tIZFhoZ54J2eyx1uCjidQg..
CSeq: 1 INVITE
User-Agent: 3CX Mobile Client
Content-Length: 0

12/10/2020 15:20:57 - Terminated from <sip:[email protected]>;tag=b23bde23 to "078509738xx"<sip:[email protected]:5060;nf=e>;tag=21154f1c; reason: Error
12/10/2020 15:20:57 - L:55.2[Extn:1000] got Failure: Failure Recv 487/INVITE from 127.0.0.1:5483 tid=9ce212086829177b Call-ID=tIZFhoZ54J2eyx1uCjidQg..:
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-524287-1---9ce212086829177b;rport=5060
To: <sip:[email protected]>;tag=b23bde23
From: "078509738xx"<sip:[email protected]:5060;nf=e>;tag=21154f1c
Call-ID: tIZFhoZ54J2eyx1uCjidQg..
CSeq: 1 INVITE
User-Agent: 3CX Mobile Client
Content-Length: 0

12/10/2020 15:20:57 - [CM503003]: Call(C:55): Call to <sip:[email protected]:0> has failed; Cause: 487 Request Terminated/INVITE from 127.0.0.1:5483
12/10/2020 15:20:57 - Session 102529 has failed in leg L:55.2[Extn:1000] ; Cause: 487 Request Terminated/INVITE from 127.0.0.1:5483
12/10/2020 15:20:57 - Failure from <sip:[email protected]>;tag=b23bde23 to "078509738xx"<sip:[email protected]:5060;nf=e>;tag=21154f1c
12/10/2020 15:20:57 - Leg L:56.1[Extn:1000] is terminated: Cause: BYE from PBX
12/10/2020 15:20:57 - Terminated from "James Dean"<sip:[email protected]>;tag=K5l4bRntXpJL0ebfq8IurAPRUG0gcvO0 to <sip:[email protected];tag3cx=uhlwjw68>;tag=f6a8e47a; reason: Rejected
12/10/2020 15:20:57 - L:56.1[Extn:1000] Sending: OnSendResp Send 481/INVITE from 0.0.0.0:0 tid=PjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ Call-ID=dK1s8QIz2iXXP0phx4RcBEyZ54jBKQ9h:
SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK-524287-2---PjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ;rport=5080
Via: SIP/2.0/UDP [::ffff:95.148.205.244]:49737;branch=z9hG4bK-524287-1---tunneltid;rport;tnlid=clnt.0-b6ewpc.voesb9g7g.prbgtgoba22hzkh_963747
Via: SIP/2.0/TCP 127.0.0.1:50195;rport;branch=z9hG4bKPjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ;alias
To: <sip:[email protected];tag3cx=uhlwjw68>;tag=f6a8e47a
From: "James Dean"<sip:[email protected]>;tag=K5l4bRntXpJL0ebfq8IurAPRUG0gcvO0
Call-ID: dK1s8QIz2iXXP0phx4RcBEyZ54jBKQ9h
CSeq: 17305 INVITE
Warning: 499 S7FGZ-98VJP-DU82B-38JL9-VEDLK.localdomain "INVITE with Replaces failed due to improper state of call"
Content-Length: 0

12/10/2020 15:20:57 - SendMsg from <sip:[email protected];tag3cx=uhlwjw68>;tag=f6a8e47a to "James Dean"<sip:[email protected]>;tag=K5l4bRntXpJL0ebfq8IurAPRUG0gcvO0
12/10/2020 15:20:57 - Remote SDP is set for leg L:56.1[Extn:1000]
12/10/2020 15:20:57 - [CM505001]: Endpoint Extn:1000: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [3CXPhone for iOS 16.1.4.56] PBX contact: [sip:[email protected]:5060]
12/10/2020 15:20:57 - Call(C:56) is terminated
12/10/2020 15:20:57 - Dev(1749269560):[sip:[email protected]:5060;rinstance=0-b6ewpc.voesb9g7g.prbgtgoba22hzkh / 1000] has updated source address: 127.0.0.1:5080/UDP fk=14 tgt=
12/10/2020 15:20:57 - Updating device Dev(1749269560):[sip:[email protected]:5060;rinstance=0-b6ewpc.voesb9g7g.prbgtgoba22hzkh / 1000] by message: DevUpd Recv Req INVITE from 127.0.0.1:5080 tid=PjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ Call-ID=dK1s8QIz2iXXP0phx4RcBEyZ54jBKQ9h:
INVITE sip:[email protected]:5060;transport=UDP;tag3cx=uhlwjw68 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5080;branch=z9hG4bK-524287-2---PjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ;rport=5080
Via: SIP/2.0/UDP [::ffff:95.148.205.244]:49737;branch=z9hG4bK-524287-1---tunneltid;rport;tnlid=clnt.0-b6ewpc.voesb9g7g.prbgtgoba22hzkh_963747
Via: SIP/2.0/TCP 127.0.0.1:50195;rport;branch=z9hG4bKPjdAlDydwmmAJIxUHRK3rK9rL2bxtftXdZ;alias
Max-Forwards: 69
Record-Route: <sip:[email protected]:5080;user=proxy;uri=clnt.0-b6ewpc.voesb9g7g.prbgtgoba22hzkh_963747>
Contact: "James Dean" <sip:[email protected]:5060;rinstance=0-b6ewpc.voesb9g7g.prbgtgoba22hzkh>
To: <sip:[email protected];tag3cx=uhlwjw68>
From: "James Dean"<sip:[email protected]>;tag=K5l4bRntXpJL0ebfq8IurAPRUG0gcvO0
Call-ID: dK1s8QIz2iXXP0phx4RcBEyZ54jBKQ9h
CSeq: 17305 INVITE
Session-Expires: 1800
Min-SE: 90
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Type: application/sdp
Proxy-Authorization: Digest username="MsPCp39evl",realm="3CXPhoneSystem",nonce="414d53595f84664952:3cb8f26c3a22f59e1eb5ee0c4a2cdb8d",uri="sip:[email protected];tag3cx=uhlwjw68",response="614d1694bf322dceb4b63da878f2405c",algorithm=MD5
Supporte
 
Last edited:
Dude, use 1 trunks.

The config under SIP Trunk is a catch-all.

You should add your DIDs under SIP Trunks -> DIDs, then create an Inbound Rule for each, pointing them to their respective extensions.
 
Thank you! Thank you! Thank you!! A thousand Thank You's.

Thats worked, I think. I'm going to do some more testing tomorrow as my team members keep getting calls from me out of hours lol.

Of course a trunk is a catch all, point traffic to an IP, let the PBX listen and figure out what number is being passed. It makes sense now.

Just conflicting information from my SIP provider who told me to setup a trunk per number, which obviously is not needed.
 
  • Like
Reactions: Evolute IT
Just conflicting information from my SIP provider who told me to setup a trunk per number, which obviously is not needed.
It's also not supported by 3CX, and not recommend by anyone unless you know what you're doing.
 
  • Like
Reactions: deano
Obviously no surprise that all of your suggestions worked, thank you. All this has been tested.
 
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,886
Members
165,470
Latest member
Robert Lee