Commit fb553cac authored by Pekka Pessi's avatar Pekka Pessi

Added usage_peer_info method to dialog usage.

darcs-hash:20060322130400-65a35-f80ef9c140c165d9b2d77a8a5d5a4864e39c7d5d.gz
parent cbb23f3d
......@@ -123,6 +123,7 @@ void nua_dialog_store_peer_info(nua_owner_t *own,
sip_t const *sip)
{
nua_remote_t *nr = ds->ds_remote_ua;
nua_dialog_usage_t *du;
nua_remote_t old[1];
*old = *nr;
......@@ -169,6 +170,11 @@ void nua_dialog_store_peer_info(nua_owner_t *own,
nr->nr_user_agent = sip_user_agent_dup(own, sip->sip_server);
su_free(own, old->nr_user_agent);
}
for (du = ds->ds_usage; du; du = du->du_next) {
if (du->du_class->usage_peer_info)
du->du_class->usage_peer_info(du, ds, sip);
}
}
/** Get dialog usage slot */
......
......@@ -95,6 +95,9 @@ typedef struct {
nua_dialog_state_t *ds,
nua_dialog_usage_t *du);
char const *(*usage_name)(nua_dialog_usage_t const *du);
void (*usage_peer_info)(nua_dialog_usage_t *du,
nua_dialog_state_t const *ds,
sip_t const *sip);
} nua_usage_class;
struct nua_dialog_usage {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment