Menu

Hangup on incoming call

Help
thexred
2011-10-06
2012-12-06
  • thexred

    thexred - 2011-10-06

    Peers version 0.4.3 and Trunk

    If hangup on incoming call without answer occur error:

    Exception in thread "Thread-23" java.lang.IllegalStateException
        at net.sourceforge.peers.sip.transactionuser.DialogStateEarly.receivedOrSentBye(DialogStateEarly.java:51)
        at net.sourceforge.peers.sip.transactionuser.Dialog.receivedOrSentBye(Dialog.java:93)
        at net.sourceforge.peers.sip.core.useragent.handlers.ByeHandler.successResponseReceived(ByeHandler.java:186)
        at net.sourceforge.peers.sip.transaction.NonInviteClientTransactionStateTrying.received200To699(NonInviteClientTransactionStateTrying.java:76)
        at net.sourceforge.peers.sip.transaction.NonInviteClientTransaction.receivedResponse(NonInviteClientTransaction.java:159)
        at net.sourceforge.peers.sip.transport.MessageReceiver.processMessage(MessageReceiver.java:181)
        at net.sourceforge.peers.sip.transport.UdpMessageReceiver.listen(UdpMessageReceiver.java:60)
        at net.sourceforge.peers.sip.transport.MessageReceiver.run(MessageReceiver.java:69)
        at java.lang.Thread.run(Thread.java:662)
    

    peers.log

    2011-10-06 21:10:17,363 INFO  [Thread-17] starting user agent [myAddress: 172.24.5.58, sipPort: 5060, userpart: null, domain: null]
    2011-10-06 21:10:17,385 INFO  [Thread-17] added datagram socket 172.24.5.58:5060/UDP
    2011-10-06 21:10:17,385 INFO  [Thread-17] added 172.24.5.58:5060/UDP: net.sourceforge.peers.sip.transport.UdpMessageReceiver@91e321 to message receivers
    2011-10-06 21:10:22,503 DEBUG [Thread-17] openAndStartLines
    2011-10-06 21:10:22,580 DEBUG [Thread-17] closeLines
    2011-10-06 21:10:23,098 DEBUG [Thread-17] SM z9hG4bKG4ek0DuAq|REGISTER [NonInviteClientTransactionStateInit -> NonInviteClientTransactionStateTrying] setState
    2011-10-06 21:10:23,103 DEBUG [Thread-23] ClientTransaction = net.sourceforge.peers.sip.transaction.NonInviteClientTransaction@8210fc
    2011-10-06 21:10:23,103 DEBUG [Thread-23] SM z9hG4bKG4ek0DuAq|REGISTER [NonInviteClientTransactionStateTrying -> NonInviteClientTransactionStateCompleted] setState
    2011-10-06 21:10:23,110 DEBUG [Thread-23] SM z9hG4bKeym6c7o7m|REGISTER [NonInviteClientTransactionStateInit -> NonInviteClientTransactionStateTrying] setState
    2011-10-06 21:10:23,115 DEBUG [Thread-23] ClientTransaction = net.sourceforge.peers.sip.transaction.NonInviteClientTransaction@1184a4f
    2011-10-06 21:10:23,115 DEBUG [Thread-23] SM z9hG4bKeym6c7o7m|REGISTER [NonInviteClientTransactionStateTrying -> NonInviteClientTransactionStateCompleted] setState
    2011-10-06 21:10:28,090 DEBUG [Transaction timer] SM z9hG4bKG4ek0DuAq|REGISTER [NonInviteClientTransactionStateCompleted -> NonInviteClientTransactionStateTerminated] setState
    2011-10-06 21:10:28,107 DEBUG [Transaction timer] SM z9hG4bKeym6c7o7m|REGISTER [NonInviteClientTransactionStateCompleted -> NonInviteClientTransactionStateTerminated] setState
    2011-10-06 21:10:32,055 DEBUG [Thread-23] SM z9hG4bK771a4c89|INVITE [InviteServerTransactionStateInit -> InviteServerTransactionStateProceeding] setState
    2011-10-06 21:10:32,056 DEBUG [Thread-23] SM z9hG4bK771a4c89|INVITE [InviteServerTransactionStateProceeding -> InviteServerTransactionStateProceeding] setState
    2011-10-06 21:10:32,056 DEBUG [Thread-23] SM z9hG4bK771a4c89|INVITE [InviteServerTransactionStateProceeding -> InviteServerTransactionStateProceeding] setState
    2011-10-06 21:10:32,056 DEBUG [Thread-23] SM 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060|as02ec6a58|6DhApX1YG9 [DialogStateInit -> DialogStateEarly] setState
    2011-10-06 21:10:34,055 DEBUG [AWT-EventQueue-0] clientTransaction null
    2011-10-06 21:10:34,061 DEBUG [AWT-EventQueue-0] SM z9hG4bKAa31ZXX8b|BYE [NonInviteClientTransactionStateInit -> NonInviteClientTransactionStateTrying] setState
    2011-10-06 21:10:34,062 DEBUG [AWT-EventQueue-0] closeLines
    2011-10-06 21:10:34,064 DEBUG [Thread-23] ClientTransaction = net.sourceforge.peers.sip.transaction.NonInviteClientTransaction@1eb2473
    2011-10-06 21:10:34,064 DEBUG [Thread-23] SM z9hG4bKAa31ZXX8b|BYE [NonInviteClientTransactionStateTrying -> NonInviteClientTransactionStateCompleted] setState
    2011-10-06 21:10:34,064 ERROR [Thread-23] 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060|as02ec6a58|6DhApX1YG9 invalid transition
    2011-10-06 21:10:39,060 DEBUG [Transaction timer] SM z9hG4bKAa31ZXX8b|BYE [NonInviteClientTransactionStateCompleted -> NonInviteClientTransactionStateTerminated] setState
    

    transport.log

    2011-10-06 21:10:23,100 SENT to 172.24.5.56/5060 [Thread-17]
    REGISTER sip:172.24.5.56 SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.58:5060;rport;branch=z9hG4bKG4ek0DuAq
    Max-Forwards: 70
    To: <sip:s395001@172.24.5.56>
    From: <sip:s395001@172.24.5.56>;tag=aPnr5Vcd
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 1 REGISTER
    Contact: <sip:s395001@172.24.5.58:5060;transport=UDP>
    2011-10-06 21:10:23,102 RECEIVED from 172.24.5.56/5060 [Thread-23]
    SIP/2.0 401 Unauthorized
    Via: SIP/2.0/UDP 172.24.5.58:5060;branch=z9hG4bKG4ek0DuAq;received=172.24.5.58;rport=5060
    From: <sip:s395001@172.24.5.56>;tag=aPnr5Vcd
    To: <sip:s395001@172.24.5.56>;tag=as6cff99fb
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 1 REGISTER
    Server: Asterisk PBX 1.8.4-1digium1~squeezetelecontact5
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
    Supported: replaces, timer
    WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="74b8c480"
    Content-Length: 0
    2011-10-06 21:10:23,110 SENT to 172.24.5.56/5060 [Thread-23]
    REGISTER sip:172.24.5.56 SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.58:5060;rport;branch=z9hG4bKeym6c7o7m
    Max-Forwards: 70
    To: <sip:s395001@172.24.5.56>
    From: <sip:s395001@172.24.5.56>;tag=aPnr5Vcd
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 2 REGISTER
    Contact: <sip:s395001@172.24.5.58:5060;transport=UDP>
    Authorization: Digest username="s395001", realm="asterisk", nonce="74b8c480", uri="sip:172.24.5.56", response="3188c3a3d14764c12b8965eae6d34102"
    2011-10-06 21:10:23,115 RECEIVED from 172.24.5.56/5060 [Thread-23]
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 172.24.5.58:5060;branch=z9hG4bKeym6c7o7m;received=172.24.5.58;rport=5060
    From: <sip:s395001@172.24.5.56>;tag=aPnr5Vcd
    To: <sip:s395001@172.24.5.56>;tag=as6cff99fb
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 2 REGISTER
    Server: Asterisk PBX 1.8.4-1digium1~squeezetelecontact5
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
    Supported: replaces, timer
    Expires: 120
    Contact: <sip:s395001@172.24.5.58:5060;transport=UDP>;expires=120
    Date: Wed, 05 Oct 2011 21:40:32 GMT
    Content-Length: 0
    2011-10-06 21:10:32,035 RECEIVED from 172.24.5.56/5060 [Thread-23]
    INVITE sip:s395001@172.24.5.58:5060;transport=UDP SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.56:5060;branch=z9hG4bK771a4c89
    Max-Forwards: 70
    From: "s395005" <sip:s395005@172.24.5.56>;tag=as02ec6a58
    To: <sip:s395001@172.24.5.58:5060;transport=UDP>
    Contact: <sip:s395005@172.24.5.56:5060>
    Call-ID: 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060
    CSeq: 102 INVITE
    User-Agent: Asterisk PBX 1.8.4-1digium1~squeezetelecontact5
    Date: Wed, 05 Oct 2011 21:40:41 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
    Supported: replaces, timer
    Content-Type: application/sdp
    Content-Length: 261
    v=0
    o=root 1877312239 1877312239 IN IP4 172.24.5.56
    s=Asterisk PBX 1.8.4-1digium1~squeezetelecontact5
    c=IN IP4 172.24.5.56
    t=0 0
    m=audio 11186 RTP/AVP 0 101
    a=rtpmap:0 PCMU/8000
    a=rtpmap:101 telephone-event/8000
    a=fmtp:101 0-16
    a=ptime:20
    a=sendrecv
    2011-10-06 21:10:32,056 SENT to 172.24.5.56/5060 [Thread-23]
    SIP/2.0 180 Ringing
    From: "s395005" <sip:s395005@172.24.5.56>;tag=as02ec6a58
    Call-ID: 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060
    CSeq: 102 INVITE
    Via: SIP/2.0/UDP 172.24.5.56:5060;branch=z9hG4bK771a4c89
    To: <sip:s395001@172.24.5.58:5060;transport=UDP>;tag=6DhApX1YG9
    Contact: <sip:172.24.5.58:5060;transport=UDP>
    2011-10-06 21:10:34,061 SENT to 172.24.5.56/5060 [AWT-EventQueue-0]
    BYE sip:s395005@172.24.5.56:5060 SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.58:5060;rport;branch=z9hG4bKAa31ZXX8b
    To: <sip:s395005@172.24.5.56>;tag=as02ec6a58
    From: <sip:s395001@172.24.5.58:5060;transport=UDP>;tag=6DhApX1YG9
    Call-ID: 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060
    CSeq: 658960517 BYE
    Max-Forwards: 70
    Authorization: Digest username="s395001", realm="asterisk", nonce="74b8c480", uri="sip:172.24.5.56", response="4d76509d1cd17175c143313ce21304d8"
    2011-10-06 21:10:34,063 RECEIVED from 172.24.5.56/5060 [Thread-23]
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 172.24.5.58:5060;branch=z9hG4bKAa31ZXX8b;received=172.24.5.58;rport=5060
    From: <sip:s395001@172.24.5.58:5060;transport=UDP>;tag=6DhApX1YG9
    To: <sip:s395005@172.24.5.56>;tag=as02ec6a58
    Call-ID: 6cbd319b70b9d82b0d772e4647893e73@172.24.5.56:5060
    CSeq: 658960517 BYE
    Server: Asterisk PBX 1.8.4-1digium1~squeezetelecontact5
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
    Supported: replaces, timer
    Content-Length: 0
    2011-10-06 21:12:13,118 SENT to 172.24.5.56/5060 [Timer-4]
    REGISTER sip:172.24.5.56 SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.58:5060;rport;branch=z9hG4bKjc2IPwy1Y
    Max-Forwards: 70
    To: <sip:s395001@172.24.5.56>
    From: <sip:s395001@172.24.5.56>;tag=7iwGMINF
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 3 REGISTER
    Contact: <sip:s395001@172.24.5.58:5060;transport=UDP>
    2011-10-06 21:12:13,619 SENT to 172.24.5.56/5060 [Transaction timer]
    REGISTER sip:172.24.5.56 SIP/2.0
    Via: SIP/2.0/UDP 172.24.5.58:5060;rport;branch=z9hG4bKjc2IPwy1Y
    Max-Forwards: 70
    To: <sip:s395001@172.24.5.56>
    From: <sip:s395001@172.24.5.56>;tag=7iwGMINF
    Call-ID: 4p6iUK4k-1317921017387@vag-devol-dev.local
    CSeq: 3 REGISTER
    Contact: <sip:s395001@172.24.5.58:5060;transport=UDP>
    
     
  • thexred

    thexred - 2011-10-06

    Sorry, my bad, again )

     
  • yohannmartineau

    yohannmartineau - 2011-10-07

    hi,

    there's something odd. In peers.log: userpart: null, domain: null and in transport.log, in REGISTER To: header, userpart: s395001, domain: 172.24.5.56.

    Did you provide a password and no userpart and domain?

     
  • thexred

    thexred - 2011-10-10

    It was mistake in our code, used userAgent.getUac().terminate(requets), not userAgent.getUas().rejectCall(request);

     

Log in to post a comment.