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

sip_route_t* sip_route_pop ( msg_t msg,
sip_t sip 

Get last route header and remove it from its fragment chain.

Definition at line 511 of file sip_util.c.

References sip_route_s::r_next, and sip_s::sip_route.

  sip_route_t *r;

  for (r = sip->sip_route; r; r = r->r_next)
    if (r->r_next == NULL) {
      msg_header_remove(msg, (msg_pub_t *)sip, (msg_header_t *)r);
      return r;

  return NULL;

Generated by  Doxygen 1.6.0   Back to index