Author Topic: Twilio SIP inbound trunk issue with MBG  (Read 2959 times)

Offline bryanb

  • Contributer
  • *
  • Posts: 6
  • Country: us
  • Karma: +0/-0
    • View Profile
Twilio SIP inbound trunk issue with MBG
« on: July 11, 2017, 10:56:54 AM »
We just setup a new Twilio trunk. I have outbound calls functioning properly but inbound calls are failing.

this is the message is see in my tug log

2017-07-11 10:34:38.918 {140343923427072} [UA] CSeq: 1 INVITE
2017-07-11 10:34:38.918 {140343923427072} [UA] User-Agent: Mitel Border GW/4.8.0.19-01
2017-07-11 10:34:38.918 {140343923427072} [UA] Content-Length: 0
2017-07-11 10:34:38.918 {140343923427072} [UA]
2017-07-11 10:34:38.918 {140343923427072} [UA]
2017-07-11 10:34:38.918 {140343924410112} [UA] Rejecting client '+44XXXXXXXXXX', no entry found in clients db with auth enabled!
2017-07-11 10:34:38.918 2017-07-11 10:34:38.918 TUGSEC::tugid:mas.mycompany.local_1,sip user:+44XXXXXXXXXX,event:invalid user,possible scan from ip:54.171.127.192:5060


Offline ralph

  • Mitel Forums Admin
  • Hero Member
  • *****
  • Posts: 5767
  • Country: us
  • Karma: +469/-0
  • Published Author: http://amzn.to/2dcYSY5
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #1 on: July 12, 2017, 07:34:47 AM »
It would appear to me that the carrier is rejecting you because it doesn't recognize you as an authorized caller.
Are you sure you caller ID is correct?

Ralph

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: Twilio SIP inbound trunk issue with MBG
« Reply #2 on: July 12, 2017, 09:26:02 AM »
It would appear to me that the carrier is rejecting you because it doesn't recognize you as an authorized caller.
Are you sure you caller ID is correct?

Ralph
I think the OP was talking about inbound calls, those logs are the Mitel or MBG rejecting the call... :)

I reviewed them but have no idea what the issue is.

Offline sarond

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1404
  • Country: au
  • Karma: +73/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #3 on: July 12, 2017, 09:50:59 AM »
Do you have your DID programmed correctly?
Can you do a pcap trace on port 5060 (MBG>Administration>Diagnostics>Run  packet trace with filter option "port 5060")
Start the capture, make the call, stop the capture and open file with wireshark.

Offline bryanb

  • Contributer
  • *
  • Posts: 6
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #4 on: July 13, 2017, 10:56:21 AM »
Attached is the packet capture

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: Twilio SIP inbound trunk issue with MBG
« Reply #5 on: July 13, 2017, 11:03:12 AM »
Attached is the packet capture
Do you have your DID programmed as 442038268079? The full number?

Offline sarond

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1404
  • Country: au
  • Karma: +73/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #6 on: July 13, 2017, 07:42:38 PM »
Have you got inbound authentication disabled in the SIP Peer?

Offline bryanb

  • Contributer
  • *
  • Posts: 6
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #7 on: July 14, 2017, 10:42:22 AM »
@acejavelin - I had a vendor configure this for me(I'm not very happy with them a this point). Could you please guide me in the correct direction to configure/check this configuration.

@sarond - I do not have authentication configured. I reviewed the Mitel/Twilio document and it says that it is not supported.


I have also attached the Mitel/Twilio configuration document.

Offline sarond

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1404
  • Country: au
  • Karma: +73/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #8 on: July 14, 2017, 08:32:17 PM »
Confirm that your number exists in the "SIP Peer Profile Assignment by Incoming DID" form as instructed on page 12.

Offline bryanb

  • Contributer
  • *
  • Posts: 6
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #9 on: July 16, 2017, 08:02:12 PM »
In my configuration I have listed 4* for the incoming sip DID range.

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: Twilio SIP inbound trunk issue with MBG
« Reply #10 on: July 16, 2017, 08:34:40 PM »
Might not be the issue, but check your Trunk Attributes form and the one that is assigned to this peer group, and look at "Dial-In Trunks Incoming Digit Modification - Absorb", verify it is "0" and not blank... this field cannot be blank but is a common mistake even with experienced technicians.

Quote
Dial-In Trunks Incoming Digit Modification - Absorb

Number of leading digits to remove from the digit stream received from the Central Office or remote system. The maximum number of digits is 26. Dial-in trunks used as incoming trunks must always have an entry in the Absorb column. (You must enter "0" if no digits are to be absorbed. If you leave this field as Blank, calls will fail).

Default Value: <blank>
« Last Edit: July 16, 2017, 08:37:09 PM by acejavelin »

Offline bryanb

  • Contributer
  • *
  • Posts: 6
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #11 on: July 17, 2017, 11:12:51 AM »
I have confirmed that the Absorb is sent to 0. Do you think my issue could be that when twilio is sending me the number in the trunk it has a "+" in front of it and in my DID is just 4*?

Offline dilkie

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 344
  • Karma: +11/-0
    • View Profile
Re: Twilio SIP inbound trunk issue with MBG
« Reply #12 on: July 17, 2017, 03:29:42 PM »
that looks to me to be a case of MBG not recognizing that the packet came from the trunk provider. Is it coming from the same IP as what is defined for that carrier?

In this case, the request came from 54.171.127.192. does that match your trunk endpoint in MBG?


 

Sitemap 1 2 3 4 5 6 7 8 9 10