Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIA_BEGIN_DECLS SOFIAPUBFUN sip_contact_t* sip_contact_create_from_via_with_transport ( su_home_t home,
sip_via_t const *  v,
char const *  user,
char const *  transport 

Convert a header to header.

The URI will contain the port number and transport parameters if needed. If transport protocol name starts with "TLS", "SIPS:" URI schema is used.

home memory home
v header field structure (with <sent-by> parameter containing host and port)
user username for URI (may be NULL)
transport transport name for URI (may be NULL)
Return values:
contact header structure
NULL upon an error
See also:
sip_contact_create_from_via(), sip_contact_string_from_via()

Definition at line 191 of file sip_util.c.

References sip_contact_make(), and su_free().

  char *s = sip_contact_string_from_via(NULL, v, user, transport);
  sip_contact_t *m = sip_contact_make(home, s);
  su_free(NULL, s);
  return m;

Generated by  Doxygen 1.6.0   Back to index