I'm using nua_subscribe to send a subscription out. Apparently, sofia 
then helpfully immediately unsubscribes me right after the 200 OK comes 
in. I want to stay subscribed so that I keep seeing NOTIFY messages and 
having r_notify events generated, rather than just getting one NOTIFY 
that comes in right after the unsubscribe (and which sofia then sends a 
"481 Call Does Not Exist" to).

I'm relatively new to sofia and nua, so I'm sure there's something I 
need to do beyond keeping a reference to the nua_handle (which I've 
tried) to keep it alive?

Trace is below.

Matthew Kaufman

nua(0x2aaab00649b0): recv signal r_subscribe
nua: nua_stack_set_params: entering
soa_clone(static::0x6ea4890, 0x6e9a3a0, 0x2aaab00649b0) called
soa_set_params(static::0x2aaab006d0a0, ...) called
soa_set_params(static::0x2aaab006d0a0, ...) called
nta_leg_tcreate(0x2aaab0083370)
nua(0x2aaab00649b0): adding subscribe usage with event dialog
nta: selecting scheme sip
send 709 bytes to udp/[10.10.155.212]:5060 at 06:28:41.784462:
    ------------------------------------------------------------------------
    SUBSCRIBE sip:1...@10.10.155.212 SIP/2.0
    Via: SIP/2.0/UDP 198.202.199.1;rport;branch=z9hG4bKFQKHQKgm4S37c
    Max-Forwards: 70
    From: <sip:1...@198.202.199.1>;tag=Q9ZaSZjmcZHKg
    To: <sip:1...@198.202.199.1>
    Call-ID: 96692185-6227-122c-4987-0019b9f9b243
    CSeq: 110141324 SUBSCRIBE
    Contact: <sip:1...@198.202.199.1>
    Expires: 3500
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, 
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
    Supported: timer, precondition, path, replaces
    Event: dialog;sla
    Allow-Events: talk, presence, dialog, call-info, sla, 
include-session-description, presence.winfo, message-summary, refer
    Content-Length: 0

    ------------------------------------------------------------------------
nta: sent SUBSCRIBE (110141324) to */10.10.155.212:5060
nta: timer shortened to 500 ms
nua(0x6eee760): recv signal r_destroy
nta_leg_destroy((nil))
soa_destroy(static::0x6f00800) called
nh_destructor(0x6eee760)
recv 425 bytes from udp/[10.10.155.212]:5060 at 06:28:41.799571:
    ------------------------------------------------------------------------
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP 198.202.199.1;rport;branch=z9hG4bKFQKHQKgm4S37c
    From: <sip:1...@198.202.199.1>;tag=Q9ZaSZjmcZHKg
    To: <sip:1...@198.202.199.1>;tag=CA9F1728-12FBA437
    CSeq: 110141324 SUBSCRIBE
    Call-ID: 96692185-6227-122c-4987-0019b9f9b243
    Contact: <sip:1...@10.10.155.212>
    Event: dialog;sla
    User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.1.1.0137
    Accept-Language: en
    Expires: 3500
    Content-Length: 0

    ------------------------------------------------------------------------
nta: received 200 OK for SUBSCRIBE (110141324)
nta: 200 OK is going to a transaction
nta_outgoing: RTT is 15.28 ms
nua(): refresh subscribe after 2445 seconds (in [875..2625])
nua(): refresh subscribe after 2445 seconds
nua(0x2aaab00649b0): event r_subscribe 200 OK
nua: nua_application_event: entering
nua: nua_handle_magic: entering
nua: nua_handle_destroy: entering
nua(0x2aaab00649b0): sent signal r_destroy
nua(0x2aaab00649b0): recv signal r_destroy
nta: selecting scheme sip
send 605 bytes to udp/[10.10.155.212]:5060 at 06:28:41.800025:
    ------------------------------------------------------------------------
    SUBSCRIBE sip:1...@10.10.155.212 SIP/2.0
    Via: SIP/2.0/UDP 198.202.199.1;rport;branch=z9hG4bKg0caSe1Q12Str
    Max-Forwards: 70
    From: <sip:1...@198.202.199.1>;tag=Q9ZaSZjmcZHKg
    To: <sip:1...@198.202.199.1>;tag=CA9F1728-12FBA437
    Call-ID: 96692185-6227-122c-4987-0019b9f9b243
    CSeq: 110141325 SUBSCRIBE
    Contact: <sip:1...@198.202.199.1>
    Expires: 0
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, 
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
    Supported: timer, precondition, path, replaces
    Event: dialog;sla
    Content-Length: 0

    ------------------------------------------------------------------------
nta: sent SUBSCRIBE (110141325) to */10.10.155.212:5060
nua(0x2aaab00649b0): removing subscribe usage with event dialog
nta_leg_destroy(0x2aaab0083370)
soa_destroy(static::0x2aaab006d0a0) called
recv 675 bytes from udp/[10.10.155.212]:5060 at 06:28:41.802550:
    ------------------------------------------------------------------------
    NOTIFY sip:1...@198.202.199.1 SIP/2.0
    Via: SIP/2.0/UDP 10.10.155.212;branch=z9hG4bK31fbe836F6A5B225
    From: <sip:1...@198.202.199.1>;tag=CA9F1728-12FBA437
    To: <sip:1...@198.202.199.1>;tag=Q9ZaSZjmcZHKg
    CSeq: 1 NOTIFY
    Call-ID: 96692185-6227-122c-4987-0019b9f9b243
    Contact: <sip:1...@10.10.155.212>
    Event: dialog;sla
    User-Agent: PolycomSoundPointIP-SPIP_650-UA/3.1.1.0137
    Accept-Language: en
    Subscription-State: active;expires=3500
    Max-Forwards: 70
    Content-Type: application/dialog-info+xml
    Content-Length: 152

    <?xml version="1.0"?>
    <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" 
state="full" entity="sip:1...@198.202.199.1">
    </dialog-info>
    ------------------------------------------------------------------------
nta: received NOTIFY sip:1...@198.202.199.1 SIP/2.0 (CSeq 1)
nta: canonizing sip:1...@198.202.199.1 with contact
nta: NOTIFY (1) going to a default leg
nua: nua_stack_process_request: entering
send 498 bytes to udp/[10.10.155.212]:5060 at 06:28:41.802761:
    ------------------------------------------------------------------------
    SIP/2.0 481 Call Does Not Exist
    Via: SIP/2.0/UDP 10.10.155.212;branch=z9hG4bK31fbe836F6A5B225
    From: <sip:1...@198.202.199.1>;tag=CA9F1728-12FBA437
    To: <sip:1...@198.202.199.1>;tag=Q9ZaSZjmcZHKg
    Call-ID: 96692185-6227-122c-4987-0019b9f9b243
    CSeq: 1 NOTIFY
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, 
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
    Supported: timer, precondition, path, replaces
    Content-Length: 0

    ------------------------------------------------------------------------
nta: sent 481 Call Does Not Exist for NOTIFY (1)

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to