×

Discussion Board

Results 1 to 14 of 14

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    12

    Question SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi all,
    I am developing an IMChat application using Nokia SIP Stack.
    Kindly c my problem and help me in this.. there are 2 issues..

    1)I want to know whether the CALLID will be same in REGISTER, INVITE, MESSAGE,BYE for a particular session.

    2) And when i am sending a BYE Request i am getting 481 (NO DIALOG FOUND) response!!!!!!!!
    If anyone has encountered the same problem,..plzz let me know.

    I can see the BYE packet going in the network as:

    /********************************************************/
    Session Initiation Protocol
    Request-Line: BYE sip:minu@172.19.25.22 SIP/2.0
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKCew6vUOO2MXge
    To: sip:minu@172.19.25.22;tag=_zxwyt30no
    From: sip:smilie@172.19.25.21;tag=FjU6vPYYrk
    Supported: sec-agree
    Call-ID: FKM6vRvhxQ60RH2TswVdthy6hAenZx
    CSeq: 170 BYE
    Max-Forwards: 70
    Content-Length: 0


    /********************************************************/
    This is the response i'm getting for BYE

    /********************************************************/

    Session Initiation Protocol
    Status-Line: SIP/2.0 481 No dialog found
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKCew6vUOO2MXge
    To: sip:minu@172.19.25.22;tag=_zxwyt30no
    From: sip:smilie@172.19.25.21;tag=FjU6vPYYrk
    Call-ID: FKM6vRvhxQ60RH2TswVdthy6hAenZx
    CSeq: 170 BYE
    Content-Length: 0
    /******************************************************/

    Thanks in advance,
    Mini

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi,

    Call-ID should be unique for each SIP dialog.

    1) it must be unique for REGISTER( and same for corresponding repsonses...)

    2) and new must be generated for each INVITE request( this is used for all provisinal 1xx responses, final responses, ACK, BYE and CANCEL request and all requests send within dialog (as MESSAGE for example )

    3) other dialog examples are PUBLISH or SUBSCRIBE requests

    Note that dialog is not referenced only by Call-ID header, but also both tag parameters from To and From header must be same.

    If you need me to help you with your problem you must put here complete trace with INVITE, not only BYE!!!! or send me etheral file to my mail

    Bye
    STeN

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Look on RFC

    "...Call-ID contains a globally unique identifier for this call, generated by the combination of a random string
    and the softphone’s host name or IP address. The combination of the To tag, From tag, and Call-ID completely
    defines a peer-to-peer SIP relationship between Alice and Bob and is referred to as a dialog..."

    or

    "...Dialog: A dialog is a peer-to-peer SIP relationship between two UAs that persists for some time. A dialog
    is established by SIP messages, such as a 2xx response to an INVITE request. A dialog is identified by
    a call identifier, local tag, and a remote tag. A..."


    AND

    "... A key concept for a user agent is that of a dialog. A dialog represents a peer-to-peer SIP relationship between
    two user agents that persists for some time. ..."

    "...A dialog is identified at each UA with a dialog ID, which consists of a Call-ID value, a local tag and a remote
    tag. The dialog ID at each UA involved in the dialog is not the same. Specifically, the local tag at one UA is
    identical to the remote tag at the peer UA. The tags are opaque tokens that facilitate the generation of unique
    dialog IDs.
    A dialog ID is also associated with all responses and with any request that contains a tag in the To field..."

    Bye
    STeN

  4. #4
    Registered User
    Join Date
    Jul 2005
    Posts
    12

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi,
    Thanks for the Reply...
    i'm sending all the packet info..plzz help me in this..
    i'm still gettg 48i response for BYE

    /************************REGISTER************************/

    Frame 1325 (427 bytes on wire, 427 bytes captured)
    Ethernet II, Src: 00:40:43:25:22:4a, Dst: 00:d0:b7:72:99:83
    Internet Protocol, Src Addr: 172.19.25.22 (172.19.25.22), Dst Addr: 172.19.24.113 (172.19.24.113)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Request-Line: REGISTER sip:172.19.24.113 SIP/2.0
    Method: REGISTER
    Resent Packet: False
    Message Header
    Route: <sip:172.19.24.113>
    Via: SIP/2.0/UDP 172.19.25.22:5060;branch=z9hG4bKq972Q5SJsxd2r
    From: sip:minu@172.19.25.22;tag=c4f2QeDr1N
    SIP from address: sip:minu@172.19.25.22
    SIP tag: c4f2QeDr1N
    To: sip:minu:fd@172.19.24.113
    Contact: <sip:minu@172.19.25.22;comp=sigcomp>;expires=3600
    Supported: sec-agree
    Call-ID: hVH2Q7OfaP7YUwySQJfZ7mXLC8ICQT
    CSeq: 372 REGISTER
    Max-Forwards: 70
    Content-Length: 0
    /***********************200_OK_Register********************/


    Frame 1327 (610 bytes on wire, 610 bytes captured)
    Ethernet II, Src: 00:0f:fe:19:d0:ef, Dst: 00:40:43:25:22:4a
    Internet Protocol, Src Addr: 172.19.24.113 (172.19.24.113), Dst Addr: 172.19.25.22 (172.19.25.22)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Status-Code: 200
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.22:5060;branch=z9hG4bKq972Q5SJsxd2r
    From: sip:minu@172.19.25.22;tag=c4f2QeDr1N
    SIP from address: sip:minu@172.19.25.22
    SIP tag: c4f2QeDr1N
    To: sip:minu:fd@172.19.24.113;tag=e13f869e5c297be432dff76e3726d0a5.78a9
    SIP to address: sip:minu:fd@172.19.24.113
    SIP tag: e13f869e5c297be432dff76e3726d0a5.78a9
    Call-ID: hVH2Q7OfaP7YUwySQJfZ7mXLC8ICQT
    CSeq: 372 REGISTER
    Contact: <sip:minu@172.19.25.22;comp=sigcomp>;q=0.00;expires=3600
    Server: Sip EXpress router (0.8.14 (i386/linux))
    Content-Length: 0
    Warning: 392 172.19.24.113:5060 "Noisy feedback tells: pid=21132 req_src_ip=172.19.25.22 req_src_port=5060 in_uri=sip:172.19.24.113 out_uri=sip:172.19.24.113 via_cnt==1"

    /***********************INVITE ***************************/
    Frame 1537 (371 bytes on wire, 371 bytes captured)
    Ethernet II, Src: 00:40:43:24:fa:49, Dst: 00:40:43:25:22:4a
    Internet Protocol, Src Addr: 172.19.25.21 (172.19.25.21), Dst Addr: 172.19.25.22 (172.19.25.22)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Request-Line: INVITE sip:minu@172.19.25.22 SIP/2.0
    Method: INVITE
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKoHAq28p2Ob3PK
    From: sip:smilie@172.19.25.21;tag=-Fgq2aIjwX
    SIP from address: sip:smilie@172.19.25.21
    SIP tag: -Fgq2aIjwX
    To: sip:minu@172.19.25.22
    Contact: sip:smilie@172.19.25.21
    Supported: sec-agree
    CSeq: 295 INVITE
    Call-ID: b-8q238QLrfGzj9SImJc69W0OQoGQW
    Max-Forwards: 70
    Content-Length: 0


    /**************** TRYING ****************************/
    Frame 1604 (290 bytes on wire, 290 bytes captured)
    Ethernet II, Src: 00:40:43:25:22:4a, Dst: 00:40:43:24:fa:49
    Internet Protocol, Src Addr: 172.19.25.22 (172.19.25.22), Dst Addr: 172.19.25.21 (172.19.25.21)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Status-Code: 200
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKoHAq28p2Ob3PK
    To: sip:minu@172.19.25.22;tag=1VX2Q1whQN
    SIP to address: sip:minu@172.19.25.22
    SIP tag: 1VX2Q1whQN
    From: sip:smilie@172.19.25.21;tag=-Fgq2aIjwX
    SIP from address: sip:smilie@172.19.25.21
    SIP tag: -Fgq2aIjwX
    Call-ID: b-8q238QLrfGzj9SImJc69W0OQoGQW
    CSeq: 295 INVITE
    Content-Length: 0

    /******************** ACK ******************************/
    Frame 1615 (346 bytes on wire, 346 bytes captured)
    Ethernet II, Src: 00:40:43:24:fa:49, Dst: 00:40:43:25:22:4a
    Internet Protocol, Src Addr: 172.19.25.21 (172.19.25.21), Dst Addr: 172.19.25.22 (172.19.25.22)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Request-Line: ACK sip:minu@172.19.25.22 SIP/2.0
    Method: ACK
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bK21GBmxB5kR5kY
    To: sip:minu@172.19.25.22;tag=1VX2Q1whQN
    SIP to address: sip:minu@172.19.25.22
    SIP tag: 1VX2Q1whQN
    From: sip:smilie@172.19.25.21;tag=-Fgq2aIjwX
    SIP from address: sip:smilie@172.19.25.21
    SIP tag: -Fgq2aIjwX
    Supported: sec-agree
    Call-ID: b-8q238QLrfGzj9SImJc69W0OQoGQW
    CSeq: 295 ACK
    Max-Forwards: 70
    Content-Length: 0

    /******************MESSAGE******************************/
    Frame 1832 (376 bytes on wire, 376 bytes captured)
    Ethernet II, Src: 00:40:43:25:22:4a, Dst: 00:40:43:24:fa:49
    Internet Protocol, Src Addr: 172.19.25.22 (172.19.25.22), Dst Addr: 172.19.25.21 (172.19.25.21)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Request-Line: MESSAGE sip:smilie@172.19.25.21 SIP/2.0
    Method: MESSAGE
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.22:5060;branch=z9hG4bKrGz2Q4aPhgRZE
    From: sip:minu@172.19.25.22;tag=Q7P2Q9UESw
    SIP from address: sip:minu@172.19.25.22
    SIP tag: Q7P2Q9UESw
    To: sip:smilie@172.19.25.21
    Supported: sec-agree
    CSeq: 374 MESSAGE
    Call-ID: R-f2Qfr5c0V2Xa6aohMK0a9i8Ngk4T
    Max-Forwards: 70
    Content-Type: text/plain
    Content-Length: 9
    Message body


    /*******************200OK_Message*************************/
    Frame 1837 (291 bytes on wire, 291 bytes captured)
    Ethernet II, Src: 00:40:43:24:fa:49, Dst: 00:40:43:25:22:4a
    Internet Protocol, Src Addr: 172.19.25.21 (172.19.25.21), Dst Addr: 172.19.25.22 (172.19.25.22)
    User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 5060 (5060)
    Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Status-Code: 200
    Resent Packet: False
    Message Header
    Via: SIP/2.0/UDP 172.19.25.22:5060;branch=z9hG4bKrGz2Q4aPhgRZE
    To: sip:smilie@172.19.25.21;tag=FkQq2cf-qr
    SIP to address: sip:smilie@172.19.25.21
    SIP tag: FkQq2cf-qr
    From: sip:minu@172.19.25.22;tag=Q7P2Q9UESw
    SIP from address: sip:minu@172.19.25.22
    SIP tag: Q7P2Q9UESw
    Call-ID: R-f2Qfr5c0V2Xa6aohMK0a9i8Ngk4T
    CSeq: 374 MESSAGE
    Content-Length: 0

    /********************** BYE ****************************/
    Session Initiation Protocol
    Request-Line: BYE sip:minu@172.19.25.22 SIP/2.0
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKCew6vUOO2MXge
    To: sip:minu@172.19.25.22;tag=_zxwyt30no
    From: sip:smilie@172.19.25.21;tag=FjU6vPYYrk
    Supported: sec-agree
    Call-ID: FKM6vRvhxQ60RH2TswVdthy6hAenZx
    CSeq: 170 BYE
    Max-Forwards: 70
    Content-Length: 0


    /********************************************************/


    /***********************481 (No Dialog Found)*****************/

    Session Initiation Protocol
    Status-Line: SIP/2.0 481 No dialog found
    Message Header
    Via: SIP/2.0/UDP 172.19.25.21:5060;branch=z9hG4bKCew6vUOO2MXge
    To: sip:minu@172.19.25.22;tag=_zxwyt30no
    From: sip:smilie@172.19.25.21;tag=FjU6vPYYrk
    Call-ID: FKM6vRvhxQ60RH2TswVdthy6hAenZx
    CSeq: 170 BYE
    Content-Length: 0
    /******************************************************/

    Thanks a lot
    -Mini

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi,

    you're use different <tag> parameters for each sip transacion.

    Your BYE <To> anf <From> headers:
    To: sip:minu@172.19.25.22;tag=_zxwyt30no
    From: sip:smilie@172.19.25.21;tag=FjU6vPYYrk

    It shoud be:

    To: sip:minu@172.19.25.22;tag=1VX2Q1whQN
    From: sip:smilie@172.19.25.21;tag=-Fgq2aIjwX

    this is used in INVITE/200 OK/ACKand together with Call-ID it identifies the dialog.

    Bye
    STeN

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    12

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi Stenlik,

    But the nokia SIP Stack is creating the tag and i'm not able to manipulate any of the headers like Call-Id, CSeq, From, MAx-Fwds, Min-Expires, record Route, To, Via...

    I can set only the content header and in BYE the content header is not coming..
    Is it necessary that the contect header should be ther in BYE ??
    I tried setting the content too..but then the programme is crashing at SendByeL().

    Thanx a lot again ..
    -Mini

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hi,

    I don't know Nokia SIP stack API, because I use other vendor commercial SIP stack, but I saw Nokia applications, which use Nokia sip stack and they were able to use the same Dialog ID(Call-ID+both tags) for whole SIP session. It should be done in some way!!!, otherwise each SIP proxy will reject the BYE request.

    Anybody here on the forum tried it and ans send traces here ???
    Any SIP expert here???

    Thanks a lot for help
    Bye
    STeN

  8. #8
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    Chat with Nokia SIP Stack

    Hi,

    I also want to create a IMChat with presence using the Nokia SIP Stack, but I find not clearly in the Nokia API if it supports methods like "MESSAGE" or "PUBLISH". How can I use them with this SIP Stack? Anyone has tested it?

    Thanks in advance

  9. #9
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: Chat with Nokia SIP Stack

    Quote Originally Posted by diegodm
    Hi,

    I also want to create a IMChat with presence using the Nokia SIP Stack, but I find not clearly in the Nokia API if it supports methods like "MESSAGE" or "PUBLISH". How can I use them with this SIP Stack? Anyone has tested it?

    Thanks in advance
    Hi,

    you can have a look at the sip example (SIPEX) which comes along with 90 Series SDK(Nokia 7710 sdk).That example has used MESSAGE API's.Have a look on that.
    Hp thiz Helps

    Best Regardz
    Priju

  10. #10
    Registered User
    Join Date
    Oct 2006
    Posts
    6

    Re: SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!

    Hello,

    Thanks for answering. I am not sure if you talked about the Nokia 7710 Message API for SMS,MMS,.. or the Message API I am interesting in, to send a SIP 'MESSAGE' request. In 'Nokia 7710: Messaging APIs' talks about the first one, maybe I have not understood you... :-((

Similar Threads

  1. JAIN SIP and Symbian C++ SIP
    By RyanSantos in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2008-07-25, 15:44
  2. Any simple example using SIP Stack?
    By kkoon50 in forum Symbian
    Replies: 35
    Last Post: 2007-04-18, 08:32
  3. help !! about SIP errors
    By wgarnett in forum Symbian
    Replies: 3
    Last Post: 2006-05-17, 05:30
  4. SIP MESSAGE gets a 404 Not found answer
    By cryptor in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2006-02-27, 05:10
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×