Having Trouble To Register Cisco 7975 With Pjsip

Home » Asterisk Users » Having Trouble To Register Cisco 7975 With Pjsip
Asterisk Users 6 Comments

Hay guys, got trouble with registration with cisco 7975

Here is the debug :

<--- Received SIP request (576 bytes) from UDP:192.168.1.61:49533 —>
REGISTER sip:192.168.1.4 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bK35076381
From: ;tag=0c8525a68961001f44d503e2-d9359bd3
To:
Call-ID: 0c8525a6-89610004-b972d038-5864c98e@192.168.1.61
Max-Forwards: 70
Date: Tue, 24 Feb 2015 07:13:42 GMT
CSeq: 110 REGISTER
User-Agent: Cisco-CP7975G/8.5.3
Contact: ;+sip.instance=”“;+u.sip!model.ccm.cisco.com=”437”
Supported: (null),X-cisco-xsi-7.0.1
Content-Length: 0
Expires: 3600

<--- Transmitting SIP response (481 bytes) to UDP:192.168.1.61:49531 --->
SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.1.61:5060;rport=49531;received=192.168.1.61;branch=z9hG4bKd16b1eb7
Call-ID: 0c8525a6-89610002-845d0080-f3559596@192.168.1.61
From: ;tag=0c8525a68961001d53245ebc-a1b56549
To: ;tag=z9hG4bKd16b1eb7
CSeq: 110 REGISTER
WWW-Authenticate: Digest realm=”asterisk”,nonce=”1424762038/41d5874af9ea9408c257949c309c8aa0″,opaque=”7f15d8c2312c7b0d”,algorithm=md5,qop=”auth”
Content-Length: 0

username and password are correct, this phone was working with 3CX just fine but won’t work with asterisk for some reason. (

any idea what may cause the problem?

6 thoughts on - Having Trouble To Register Cisco 7975 With Pjsip

  • Nick Awesome wrote:

    The “force_rport” option is incompatible with Cisco, it needs to be explicitly set to no in the endpoint.

    Cheers,

  • Ok after I added tcp transport and disable force_rport phone get registered, but still have issues with calls,

    when I call from cisco from, it work except hangup.

    when I call to cisco phone asterisk return congested

    debug of call
    < --- Transmitting SIP request (952 bytes) to TCP:192.168.1.61:51179 --->
    INVITE sip:111@192.168.1.61:51179;transport=tcp SIP/2.0
    Via: SIP/2.0/TCP 192.168.1.4:55246;rport;branch=z9hG4bKPjcb9ec9ba-0c77-4530-a3b7-44209357f3a0;alias From: ;tag=abebd75c-501a-4b4f-ad69-ee98175b8dbd To:
    Contact:
    Call-ID: bb515935-7292-47b4-890d-6f82eb335815
    CSeq: 25333 INVITE
    Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
    Supported: 100rel, timer, replaces, norefersub Session-Expires: 1800
    Min-SE: 90
    Content-Type: application/sdp Content-Length: 283

    v=0
    o=- 1231372975 1231372975 IN IP4 192.168.1.4
    s=Asterisk c=IN IP4 192.168.1.4
    t=0 0
    m=audio 17856 RTP/AVP 9 0 8 101
    a=rtpmap:9 G722/8000
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-16
    a=ptime:20
    a=maxptime:150
    a=sendrecv

    [Feb 24 05:47:01] WARNING[16179]: pjsip:0 < ?>: tsx0x7f1aa0157 Failed to send Request msg INVITE/cseq=12216 (tdta0x7f1aa00e41c0)! err=120111 (Connection refused)
    [Feb 24 05:47:01] ERROR[16179]: pjsip:0 < ?>: tcpc0x7f1aa01c TCP connect() error: Connection refused [code=120111]
    [Feb 24 05:47:01] WARNING[16179]: pjsip:0 < ?>: tsx0x7f1aa01c3 Failed to send Request msg INVITE/cseq=25333 (tdta0x7f1aa00ad810)! err=120111 (Connection refused)

  • Nick Awesome wrote:

    If you use UDP with force_rport=no it’ll work. If you use TCP then set rewrite_contact=yes so it’ll reuse the established TCP connection.

  • Oh god it works !

    to switch cisco to upd I used config:
    2

    with udp it works well, thanks for your help 🙂

  • another issues with cisco 7975

    I have phone registered on asterisk

    have 2 different issues on different versions of firmware,

    on 9-4-2-1S I have not working 3way conference, when I trying to connect second call, phone says “unable to set up conference”
    and sending some cisco xml data to asterisk which cannot be handled, thats the problem,

    I know on firmware 8-5-4 3way conference works just fine 3cx phone system so must be same with asterisk,

    but with asterisk when I do ANY call from cisco phone with fw 8-5-4

    cisco hangup call after channels connect, debug

    < --- Received SIP request (1003 bytes) from UDP:192.168.1.61:49163 --->
    INVITE sip:*777@192.168.1.4;user=phone SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bKa67a2ab7
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To:
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    Max-Forwards: 70
    Date: Thu, 26 Feb 2015 05:52:42 GMT
    CSeq: 101 INVITE
    User-Agent: Cisco-CP7975G/8.5.3
    Contact:
    Expires: 180
    Accept: application/sdp Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
    Allow-Events: kpml,dialog Content-Length: 322
    Content-Type: application/sdp Content-Disposition: session;handling=optional

    v=0
    o=Cisco-SIPUA 626 0 IN IP4 192.168.1.61
    s=SIP Call t=0 0
    m=audio 30354 RTP/AVP 0 8 18 116 101
    c=IN IP4 192.168.1.61
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:18 G729/8000
    a=fmtp:18 annexb=no a=rtpmap:116 iLBC/8000
    a=fmtp:116 mode=20
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=sendrecv

    < --- Transmitting SIP response (485 bytes) to UDP:192.168.1.61:5060 --->
    SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.1.61:5060;received=192.168.1.61;branch=z9hG4bKa67a2ab7
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=z9hG4bKa67a2ab7
    CSeq: 101 INVITE
    WWW-Authenticate: Digest realm=”asterisk”,nonce=”1424929962/9af5af19e633c82d2a9e17ec97afb72b”,opaque=”2776507e426bda2b”,algorithm=md5,qop=”auth”
    Content-Length: 0

    < --- Received SIP request (368 bytes) from UDP:192.168.1.61:49174 --->
    ACK sip:*777@192.168.1.4;user=phone SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bKa67a2ab7
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=z9hG4bKa67a2ab7
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    Date: Thu, 26 Feb 2015 05:52:42 GMT
    CSeq: 101 ACK
    Content-Length: 0

    < --- Received SIP request (1271 bytes) from UDP:192.168.1.61:49163 --->
    INVITE sip:*777@192.168.1.4;user=phone SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bK4affb043
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To:
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    Max-Forwards: 70
    Date: Thu, 26 Feb 2015 05:52:42 GMT
    CSeq: 102 INVITE
    User-Agent: Cisco-CP7975G/8.5.3
    Contact:
    Authorization: Digest username=”111″,realm=”asterisk”,uri=”sip:*777@192.168.1.4;user=phone”,response=”8b90970d8fc724893e876263ce8c2cd3″,nonce=”1424929962/9af5af19e633c82d2a9e17ec97afb72b”,opaque=”2776507e426bda2b”,cnonce=”945bf4a1″,qop=auth,nc=00000001,algorithm=md5
    Expires: 180
    Accept: application/sdp Allow: ACK,BYE,CANCEL,INVITE,NOTIFY,OPTIONS,REFER,REGISTER,UPDATE,SUBSCRIBE
    Allow-Events: kpml,dialog Content-Length: 322
    Content-Type: application/sdp Content-Disposition: session;handling=optional

    v=0
    o=Cisco-SIPUA 626 0 IN IP4 192.168.1.61
    s=SIP Call t=0 0
    m=audio 30354 RTP/AVP 0 8 18 116 101
    c=IN IP4 192.168.1.61
    a=rtpmap:0 PCMU/8000
    a=rtpmap:8 PCMA/8000
    a=rtpmap:18 G729/8000
    a=fmtp:18 annexb=no a=rtpmap:116 iLBC/8000
    a=fmtp:116 mode=20
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-15
    a=sendrecv

    < --- Transmitting SIP response (312 bytes) to UDP:192.168.1.61:5060 --->
    SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.1.61:5060;received=192.168.1.61;branch=z9hG4bK4affb043
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To:
    CSeq: 102 INVITE
    Content-Length: 0

    < --- Transmitting SIP response (738 bytes) to UDP:192.168.1.61:5060 --->
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 192.168.1.61:5060;received=192.168.1.61;branch=z9hG4bK4affb043
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=916a8d96-8a85-4474-b404-e30615c6c963
    CSeq: 102 INVITE
    Contact:
    Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
    Supported: 100rel, timer, replaces, norefersub Content-Type: application/sdp Content-Length: 163

    v=0
    o=- 626 2 IN IP4 192.168.1.4
    s=Asterisk c=IN IP4 192.168.1.4
    t=0 0
    m=audio 10474 RTP/AVP 0
    a=rtpmap:0 PCMU/8000
    a=ptime:20
    a=maxptime:150
    a=sendrecv

    < --- Received SIP request (697 bytes) from UDP:192.168.1.61:49163 --->
    ACK sip:192.168.1.4:5060 SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bK22ad7045
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=916a8d96-8a85-4474-b404-e30615c6c963
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    Max-Forwards: 70
    Date: Thu, 26 Feb 2015 05:52:42 GMT
    CSeq: 102 ACK
    User-Agent: Cisco-CP7975G/8.5.3
    Authorization: Digest username=”111″,realm=”asterisk”,uri=”sip:*777@192.168.1.4;user=phone”,response=”8b90970d8fc724893e876263ce8c2cd3″,nonce=”1424929962/9af5af19e633c82d2a9e17ec97afb72b”,opaque=”2776507e426bda2b”,cnonce=”945bf4a1″,qop=auth,nc=00000001,algorithm=md5
    Content-Length: 0

    < --- Received SIP request (686 bytes) from UDP:192.168.1.61:49163 --->
    BYE sip:192.168.1.4:5060 SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.61:5060;branch=z9hG4bKf9a5d51f From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=916a8d96-8a85-4474-b404-e30615c6c963
    Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    Max-Forwards: 70
    Date: Thu, 26 Feb 2015 05:52:42 GMT
    CSeq: 103 BYE
    User-Agent: Cisco-CP7975G/8.5.3
    Content-Length: 0
    Authorization: Digest username=”111″,realm=”asterisk”,uri=”sip:192.168.1.4:5060″,response=”6ab95be6adc870723154d7e0fb6f7cd4″,nonce=”1424929962/9af5af19e633c82d2a9e17ec97afb72b”,opaque=”2776507e426bda2b”,cnonce=”884cb6e9″,qop=auth,nc=00000002,algorithm=md5

    < --- Transmitting SIP response (346 bytes) to UDP:192.168.1.61:5060 --->
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 192.168.1.61:5060;received=192.168.1.61;branch=z9hG4bKf9a5d51f Call-ID: 0c8525a6-89610012-53a7b585-a4dc85a0@192.168.1.61
    From: “111” ;tag=0c8525a689610012e85fd91b-ee689f06
    To: ;tag=916a8d96-8a85-4474-b404-e30615c6c963
    CSeq: 103 BYE
    Content-Length: 0