Ignore:
Timestamp:
Sep 22, 2006 4:55:42 PM (16 years ago)
Author:
bennylp
Message:

Fixed few bugs that seem to have been introduced by new dialog
locking algorithm:

  • Fixed crash in PJSUA-API when initiating client subscription
  • Fixed another crash in PJSUA-API when hanging-up call

Also fixed SDP negotiator:

  • add a=inactive when rejecting media line

Also increase maximum log size from 1500 to 2000 since some
SIP packet is quite large. A little bit of Warning:
THIS MAY AFFECT APPLICATION'S STACK USAGE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c

    r582 r734  
    895895             * Reject the offer by setting the port to zero in the answer. 
    896896             */ 
     897            pjmedia_sdp_attr *a; 
     898 
    897899            /* For simplicity in the construction of the answer, we'll 
    898900             * just clone the media from the offer. Anyway receiver will 
     
    903905            am->desc.port = 0; 
    904906 
    905             /* Match direction */ 
    906             update_media_direction(pool, om, am); 
     907            /* Remove direction attribute, and replace with inactive */ 
     908            remove_all_media_directions(am); 
     909 
     910            a = pjmedia_sdp_attr_create(pool, "inactive", NULL); 
     911            pjmedia_sdp_media_add_attr(am, a); 
    907912 
    908913        } else { 
Note: See TracChangeset for help on using the changeset viewer.