--- ./channels/chan_sip.c~ 2005-05-13 10:48:31.000000000 +0100 +++ ./channels/chan_sip.c 2005-05-13 18:45:03.000000000 +0100 @@ -7657,8 +7657,10 @@ } else p->subscribed = 1; - if (p->subscribed) + if (p->subscribed) { + strncpy(p->uri, e, sizeof(p->uri)-1); p->stateid = ast_extension_state_add(p->context, p->exten, cb_extensionstate, p); + } } } else