SIP trunk CISCO 2851 to 3CX

Discussion in 'Windows' started by marcosroma21, Sep 17, 2014.

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

    Joined:
    Sep 17, 2014
    Messages:
    2
    Likes Received:
    0
    Hello, I've configured the server with 3CX gateway to make and receive calls with my cisco 2851 (switchboard)

    To make calls from 3CX extensions from cisco I do it without problems.

    The problem what I have when I try to call from one of my extensions to my cisco 3CX

    Setting my cisco

    voice service voip
    allow-connections sip to sip
    sip
    registrar server expires max 1200 min 300
    !
    !
    !
    voice class codec 1
    codec preference 1 g711ulaw
    !

    dial-peer voice 5555 voip
    description 3CX
    destination-pattern 5...$
    voice-class codec 1
    session protocol sipv2
    session target ipv4:192.168.50.7
    dtmf-relay rtp-nte
    no vad
    !
    dial-peer voice 5556 pots
    destination-pattern 5558
    port 0/0/0:15
    !
    !
    sip-ua
    authentication username 5558 password 7 101F5B4A514244
    no remote-party-id
    registrar ipv4:192.168.50.7:5060 expires 360
    sip-server ipv4:192.168.50.7:5060


    3CX configuration time.

    I think a generic type E1 gateway, my pasaralea 192.168.20.250 port 5060.
    In the DID tab added * 717 as the extension with which I call is 4717 ((this does not have very clear if so))
    In input parameters I add Request Line URI: User Part --- Custom Field and leave blank.

    I think the extension 5558 which is what I set on the cisco.

    I think the 5556 is an extension of a client 3CXPhone phone.

    Now I try to make a call from 4717 (extension of my cisco) to 5556 and I get the following errors.


    17-sep.-2014 12:46:21.181 [CM102001]: Authentication failed for AuthFail Recv Req INVITE from 192.168.20.250:58289 tid=5B9524B3 Call-ID=B2197FD1-3D8E11E4-943FCB60-BE431962@192.168.20.250:
    INVITE sip:5556@192.168.50.7:5060 SIP/2.0
    Via: SIP/2.0/UDP 192.168.20.250:5060;branch=z9hG4bK5B9524B3
    Max-Forwards: 70
    Contact: <sip:4717@192.168.20.250:5060>
    To: <sip:5556@192.168.50.7>
    From: "Marcos Rodriguez"<sip:4717@192.168.50.7>;tag=A57040-CB3
    Call-ID: B2197FD1-3D8E11E4-943FCB60-BE431962@192.168.20.250
    CSeq: 102 INVITE
    Expires: 180
    Min-SE: 1800
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
    Content-Disposition: session;handling=required
    Content-Type: application/sdp
    Date: Wed, 17 Sep 2014 10:46:21 GMT
    Proxy-Authorization: Digest username="5558",realm="3CXPhoneSystem",uri="sip:5556@192.168.50.7:5060",response="93f9eebb09bb6975d9c0b8b7d8671831",nonce="414d535c0a29f77d33:d69c9f3a42006771400e8b8a31cfe81e",algorithm=MD5
    Supported: 100rel, timer, resource-priority, replaces, sdp-anat
    Timestamp: 1410950781
    User-Agent: Cisco-SIPGateway/IOS-12.x
    Allow-Events: telephone-event
    Content-Length: 253
    Cisco-Guid: 2979855379-1032720868-2486881120-3192068450

    v=0
    o=CiscoSystemsSIP-GW-UserAgent 7054 1793 IN IP4 192.168.20.250
    s=SIP Call
    c=IN IP4 192.168.20.250
    t=0 0
    m=audio 19060 RTP/AVP 0 101
    c=IN IP4 192.168.20.250
    a=rtpmap:0 PCMU/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-16
    a=ptime:20
    ; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
    17-sep.-2014 12:46:21.181 [CM500002]: Unidentified incoming call. Review INVITE and adjust source identification:
    Invite-UNK Recv Req INVITE from 192.168.20.250:58289 tid=5B9524B3 Call-ID=B2197FD1-3D8E11E4-943FCB60-BE431962@192.168.20.250:
    INVITE sip:5556@192.168.50.7:5060 SIP/2.0
    Via: SIP/2.0/UDP 192.168.20.250:5060;branch=z9hG4bK5B9524B3
    Max-Forwards: 70
    Contact: <sip:4717@192.168.20.250:5060>
    To: <sip:5556@192.168.50.7>
    From: "Marcos Rodriguez"<sip:4717@192.168.50.7>;tag=A57040-CB3
    Call-ID: B2197FD1-3D8E11E4-943FCB60-BE431962@192.168.20.250
    CSeq: 102 INVITE
    Expires: 180
    Min-SE: 1800
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
    Content-Disposition: session;handling=required
    Content-Type: application/sdp
    Date: Wed, 17 Sep 2014 10:46:21 GMT
    Proxy-Authorization: Digest username="5558",realm="3CXPhoneSystem",uri="sip:5556@192.168.50.7:5060",response="93f9eebb09bb6975d9c0b8b7d8671831",nonce="414d535c0a29f77d33:d69c9f3a42006771400e8b8a31cfe81e",algorithm=MD5
    Supported: 100rel, timer, resource-priority, replaces, sdp-anat
    Timestamp: 1410950781
    User-Agent: Cisco-SIPGateway/IOS-12.x
    Allow-Events: telephone-event
    Content-Length: 253
    Cisco-Guid: 2979855379-1032720868-2486881120-3192068450

    v=0
    o=CiscoSystemsSIP-GW-UserAgent 7054 1793 IN IP4 192.168.20.250
    s=SIP Call
    c=IN IP4 192.168.20.250
    t=0 0
    m=audio 19060 RTP/AVP 0 101
    c=IN IP4 192.168.20.250
    a=rtpmap:0 PCMU/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-16
    a=ptime:20
    17-sep.-2014 12:46:21.181 [CM302002]: Authentication failed due to unidentified source of: SipReq: INVITE 5556@192.168.50.7:5060 tid=5B9524B3 cseq=INVITE contact=4717@192.168.20.250:5060 / 102 from(wire)


    I am using the test version.

    A greeting and thanks

    Sorry for the English
     
  2. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,766
    Likes Received:
    286
    One of the problems may be that you are not on the same subnet.

    17-sep.-2014 12:46:21.181 [CM302002]: Authentication failed due to unidentified source of: SipReq: INVITE 5556@192.168.50.7:5060 tid=5B9524B3 cseq=INVITE contact=4717@192.168.20.250:5060 / 102 from(wire)
     
  3. nsp

    nsp

    Joined:
    Feb 21, 2012
    Messages:
    2
    Likes Received:
    0
    Hello,
    I Have same problem. Marcosroma21 did you solve this?
    [CM102001]: Authentication failed for AuthFail Recv Req INVITE from 10.21.3.151:57756 tid=4D40 Call-ID=7E78C23-60D011E4-80A48064-978CA49D@10.21.3.151:
    INVITE sip:1297@10.21.3.150:5060 SIP/2.0
    Via: SIP/2.0/UDP 10.21.3.151:5060;branch=z9hG4bK4D40
    Max-Forwards: 69
    Contact: <sip:1002@10.21.3.151:5060>
    To: <sip:1297@10.21.3.150>
    From: <sip:1002@10.21.3.150>;tag=46AF6C-0
    Call-ID: 7E78C23-60D011E4-80A48064-978CA49D@10.21.3.151
    CSeq: 102 INVITE
    Expires: 180
    Session-Expires: 1800
    Min-SE: 1800
    Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
    Content-Disposition: session;handling=required
    Content-Type: application/sdp
    Date: Sat, 01 Nov 2014 07:32:13 GMT
    Proxy-Authorization: Digest username="10028",realm="3CXPhoneSystem",uri="sip:1297@10.21.3.150:5060",response="1059355c273f3b99ea1ac7c0da198c1a",nonce="414d535c0a651ab217:129ee0fec45f6e04f21b9c18d56ac942",algorithm=MD5
    Supported: 100rel, timer, resource-priority, replaces, sdp-anat
    Timestamp: 1414827133
    User-Agent: Cisco-SIPGateway/IOS-12.x
    Allow-Events: telephone-event
    Content-Length: 244
    Cisco-Guid: 0132414654-1624248804-2157871204-2542576797

    v=0
    o=CiscoSystemsSIP-GW-UserAgent 4029 6187 IN IP4 10.21.3.151
    s=SIP Call
    c=IN IP4 10.21.3.151
    t=0 0
    m=audio 16690 RTP/AVP 0 101
    c=IN IP4 10.21.3.151
    a=rtpmap:0 PCMU/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=ptime:20
    ; Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
     
  4. polinoma

    Joined:
    Feb 21, 2015
    Messages:
    3
    Likes Received:
    0
    Can you please tell us also the 3CX needed configuration.

    Thank you
     
  5. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,766
    Likes Received:
    286
    Not being familiar with the Cisco 2851, I have to make some assumptions that may not be correct, so bear with me.

    I'm assuming that the Cisco is set to register as a 3CX extension rather than having a PBX type device connected as a trunk.

    This log seems to be pretty specific about why the call fails.

    In the 3CX logs, do you see a proper registration (at some point) from the Cisco device?

    Could 3CX be interpreting the calls as a Direct SIP call, in that case you would have to permit that in the advanced settings.

    Have you attempted to register an extension (VoIP set) using the same credentials?
     
Thread Status:
Not open for further replies.