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

SOFIAPUBFUN nta_reliable_t* nta_reliable_treply ( nta_incoming_t irq,
nta_prack_f *  callback,
nta_reliable_magic_t rmagic,
int  status,
char const *  phrase,
tag_type_t  tag,
tag_value_t  value,
  ... 
)

Respond reliably.

Parameters:
irq 
callback 
rmagic 
status 
phrase 
tag,value,.. 

Definition at line 9978 of file nta.c.

References msg_destroy(), ta_end, ta_start, and ta_tags.

{
  ta_list ta;
  msg_t *msg;
  sip_t *sip;
  nta_reliable_t *retval = NULL;

  if (!reliable_check(irq) || (status <= 100 || status >= 200))
    return NULL;

  msg = nta_msg_create(irq->irq_agent, 0);
  sip = sip_object(msg);

  if (!sip)
    return NULL;

  ta_start(ta, tag, value);

  if (0 > nta_incoming_complete_response(irq, msg, status, phrase, 
                               ta_tags(ta)))
    msg_destroy(msg);
  else if (!(retval = reliable_mreply(irq, callback, rmagic, msg, sip)))
    msg_destroy(msg);

  ta_end(ta);

  return retval;
}


Generated by  Doxygen 1.6.0   Back to index