Ignore:
Timestamp:
Jul 17, 2008 1:53:41 PM (16 years ago)
Author:
bennylp
Message:

Ticket #574: Add new API to know why the outgoing subscription request is terminated and added support for delaying subscription acceptance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c

    r2039 r2149  
    2020#include <pjsip/print_util.h> 
    2121#include <pjsip/sip_parser.h> 
     22#include <pjlib-util/string.h> 
    2223#include <pj/pool.h> 
    2324#include <pj/string.h> 
     
    167168    *p++ = ' '; 
    168169 
    169     copy_advance(p, hdr->sub_state); 
    170     copy_advance_pair(p, ";reason=", 8, hdr->reason_param); 
     170    copy_advance_escape(p, hdr->sub_state, pc->pjsip_TOKEN_SPEC); 
     171    copy_advance_pair_escape(p, ";reason=", 8, hdr->reason_param, 
     172                             pc->pjsip_TOKEN_SPEC); 
    171173    if (hdr->expires_param >= 0) { 
    172174        pj_memcpy(p, ";expires=", 9); 
Note: See TracChangeset for help on using the changeset viewer.