Twilio Trunk Configuration

Discussion in '3CX Phone System - General' started by derekvw91, Jul 8, 2015.

Thread Status:
Not open for further replies.
  1. derekvw91

    Joined:
    Jul 8, 2015
    Messages:
    18
    Likes Received:
    0
    I'm having an issue setting up my Twilio SIP trunk with 3CX. (At least, I think that's what the issue is) I've successfully set up two extensions and provisioned two phones and they're able to talk to each other. Any inbound/outbound call to my Twilio number results in the call being dropped (incoming call) or a Forbidden error for an outgoing number.

    I've attached the code below.

    Code:
    08-Jul-2015 13:46:04.396   Leg L:21.1[Extn] is terminated: Cause: BYE from PBX
    08-Jul-2015 13:46:04.392   [CM503020]: Call(C:21): Normal call termination. Call originator: Extn:100. Reason: Forbidden
    08-Jul-2015 13:46:04.392   Leg L:21.2[Line:10000>>+NUMBER] is terminated: Cause: 403 Invalid caller ID/INVITE from 54.172.60.1:5060
    08-Jul-2015 13:46:04.392   L:21.1[Extn] failed to reach Line:10000>>+NUMBER, reason Forbidden
    08-Jul-2015 13:46:04.392   Call to T:Line:10000>>+NUMBER@[Dev:sip:SIP_ADDRESS.pstn.twilio.com:5060] from L:21.1[Extn] failed, cause: Cause: 403 Invalid caller ID/INVITE from 54.172.60.1:5060
    08-Jul-2015 13:46:04.391   [CM503003]: Call(C:21): Call to <sip:NUMBER@fbcstarkville.pstn.twilio.com:5060> has failed; Cause: 403 Invalid caller ID/INVITE from 54.172.60.1:5060
    08-Jul-2015 13:46:03.973   [CM503025]: Call(C:21): Calling T:Line:10000>>+NUMBER@[Dev:sip:SIP_ADDRESS.pstn.twilio.com:5060] for L:21.1[Extn]
    08-Jul-2015 13:46:03.930   [CM503027]: Call(C:21): From: Extn:100 ("Extension Name" <sip:100@10.225.7.10:5060>)  to  T:Line:10000>>+NUMBER@[Dev:sip:SIP_ADDRESS.pstn.twilio.com:5060]
    08-Jul-2015 13:46:03.930   [CM503004]: Call(C:21): Route 1: from L:21.1[Extn] to T:Line:10000>>+NUMBER@[Dev:sip:SIP_ADDRESS.pstn.twilio.com:5060]
    08-Jul-2015 13:46:03.930   Line limit check: Current # of calls for line Lc:10000(@Twilio[<sip:SIP_ADDRESS.pstn.twilio.com:5060>]) is 0; limit is 16
    08-Jul-2015 13:46:03.930   Call(C:21): Call from Extn:100 to NUMBER matches outbound rule 'Rules for Twilio'
    08-Jul-2015 13:46:03.929   [CM503001]: Call(C:21): Incoming call from Extn:100 to <sip:NUMBER@10.225.7.10:5060>
    Any help would be appreciated.
     
  2. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,861
    Likes Received:
    302
    This may indicate that you are attempting to change the outgoing Caller ID to something other than the number(s) that are assigned to you by your provider. Some get very picky about that sort of thing. If you have put numbers in the Caller ID fields anywhere, you might try removing them to see if that makes a difference, at least on outgoing calls.

    Given that you are also having problem with incoming calls, there may (also) be an issue with registration. Look through the logs just after a re-boot to see if it shows a successful registration with the provider.

    At some point, did you run the 3CX Firewall Checker to see that everything passes? It could be a blocked port.
     
  3. derekvw91

    Joined:
    Jul 8, 2015
    Messages:
    18
    Likes Received:
    0
    I've just been able to get outgoing calls to work, but incoming calls are still not working. According to my Twilio logs, they're all failing. Below is what my logs from 3cx are showing.

    Code:
    08-Jul-2015 15:17:49.438   [CM500002]: Unidentified incoming call. Review INVITE and adjust source identification:
    Invite-UNK Recv Req INVITE from 10.225.7.1:5060 tid=f98c.f84b7e83.0 Call-ID=bef2601473330ecd52f28390558bacaf@0.0.0.0:
    INVITE sip:+16623380975@10.225.7.10:5060 SIP/2.0
    The firewall test shows that everything is working ok.
     
  4. derekvw91

    Joined:
    Jul 8, 2015
    Messages:
    18
    Likes Received:
    0
    Ok. Incoming calls are now coming in as well. I looked through the logs and changed the source ID so that it would correctly identify the number. Thanks for your help!
     
  5. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,861
    Likes Received:
    302
    Confirm that the IP address you are receiving the call from, is in the trunk settings for that provider, as sent. For security reasons 3CX doesn't like getting calls from unknown IP addresses and will reject them, which may be happening here.

    What did you find, that you had to change, to get outgoing working?
     
Thread Status:
Not open for further replies.