Re #1668: fixed silly crash in pjsua_media.c:245 caused by r4543

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4544 74dad513-b988-da41-8d7b-12977e46ad98
Re #1630: fixed bug with via_rewrite feature. The via address is not updated on second IP change

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4545 74dad513-b988-da41-8d7b-12977e46ad98
More re #1683:
 - also update the Via port when only the port has changed AND either the received IP is public OR allow_contact_rewrite is set to 2


git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4546 74dad513-b988-da41-8d7b-12977e46ad98
More re #1683: added two SIPP scenarios to simulate IP/port change

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4547 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1684 (Failed assertion when scheduling timer in the registration client):
 - There is a potential race condition in pjsip_regc_set_delay_before_refresh() because it calls schedule_registration() without mutex protection
 - Check if the timer is active and cancel it in schedule_registration() as precaution


git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4548 74dad513-b988-da41-8d7b-12977e46ad98
Re #1680:
 - Win64 Project properties modification, using x64 as target machine.
 - Fix incorrect data type which might result in unsafe code.



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4550 74dad513-b988-da41-8d7b-12977e46ad98
Fix #1685: When TURN destroy is requested in state RESOLVING, pending the destroy until resolver callback is invoked.



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4551 74dad513-b988-da41-8d7b-12977e46ad98
Fix #1686: release mutex when invoking callback to avoid deadlock. Also a bit memory usage optimization, i.e: avoid bloated pool by unfreed old/expired packet in cache entry.



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4552 74dad513-b988-da41-8d7b-12977e46ad98
Re #1686: avoid cache entry destroy in update_res_cache() when it is being used by callback.



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4553 74dad513-b988-da41-8d7b-12977e46ad98
Closed #1687: Allow media type change during SDP negotiation



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4554 74dad513-b988-da41-8d7b-12977e46ad98
Closed #1688: Add support for different To and Target URI in outgoing call and sending IM



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4555 74dad513-b988-da41-8d7b-12977e46ad98
Re #1687: Add SDP negotiation flags in invite session



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4556 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1689: The bound address is not updated when UDP transport is restarted



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4559 74dad513-b988-da41-8d7b-12977e46ad98
Re #1630: Fixed crash due to uninitialized dialog variable in pjsua_call_set_vid_strm()



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4560 74dad513-b988-da41-8d7b-12977e46ad98
Re #1688: Add fix to check whether msg_data is null



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4561 74dad513-b988-da41-8d7b-12977e46ad98
Re #817: Initial work for allowing application to respond to re-INVITE manually.

Patches integrated in this fix (with some modifications for adjustment to the current trunk):
 - sip_inv-on_rx_reinvite.patch
 
 Move the place where to call the callback so the callback will still be called when the re-invite contains no SDP
 - sdp_neg_cancel_remote_offer
 
 pjmedia_sdp_neg_cancel_remote_offer() is no longer necessary since pjmedia_sdp_neg_cancel_offer() can already handle that. Only integrate the chart for sdp negotiation doc.
 - sip_inv-terminate-reinvite-tsx-on-cancel
 - sip_inv-cancel_sdp_neg_on_sending_negative_reply_to_reinvite
 - pjsip-allow_cancel_reinvite



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4562 74dad513-b988-da41-8d7b-12977e46ad98
Misc re #1630: stop MWI subscription when account is unregistered, because we only start it after acc is registered

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4564 74dad513-b988-da41-8d7b-12977e46ad98
More re #817: added logging

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4565 74dad513-b988-da41-8d7b-12977e46ad98
Closed #1690: Assertion in timer in SIP transaction: Timer being rescheduled when already running

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4567 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1630): Add randomizing interval for subscription refresh.



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4572 74dad513-b988-da41-8d7b-12977e46ad98