Logo Search packages:      
Sourcecode: wengophone version File versions  Download package

int osip_dialog_update_route_set_as_uas ( osip_dialog_t dialog,
osip_message_t invite 

Update the Route-Set as UAS of a dialog. NOTE: bis-09 says that only INVITE transactions can update the route-set. NOTE: bis-09 says that updating the route-set means: update the contact field only (AND NOT THE ROUTE-SET). This method follow this behaviour. NOTE: This method should be called for each request (except 100 Trying) received for a dialog.

dialog The element to work on.
invite The invite received.

Definition at line 34 of file osip_dialog.c.

References osip_message::contacts, osip_contact_clone(), osip_contact_free(), osip_list_eol(), osip_list_get(), and osip_dialog::remote_contact_uri.

  osip_contact_t *contact;
  int i;

  if (osip_list_eol (invite->contacts, 0))
      OSIP_TRACE (osip_trace
              (__FILE__, __LINE__, OSIP_WARNING, NULL,
               "missing a contact in invite!\n"));
      if (dialog->remote_contact_uri != NULL)
        osip_contact_free (dialog->remote_contact_uri);
      dialog->remote_contact_uri = NULL;
      contact = osip_list_get (invite->contacts, 0);
      i = osip_contact_clone (contact, &(dialog->remote_contact_uri));
      if (i != 0)
      return -1;
  return 0;

Generated by  Doxygen 1.6.0   Back to index