Misc (re #1134): added Supported header in outgoing SUBSCRIBE request. Although RFC 3265 says it is only optional, some downstream RFC may bring this requirement to SHOULD strength - e.g. RFC 5373 (thanks Johan Lantz for the suggestion)

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3331 74dad513-b988-da41-8d7b-12977e46ad98
Re #1136 (Basic and digest authentication in the HTTP client): fixed error in parsing URL if the path contains at ("@") character

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3332 74dad513-b988-da41-8d7b-12977e46ad98
Another fix for authentication in HTTP client (re #1136):
 - missing opaque parameter in the response
 - also replaced "\n" with "\r\n"


git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3333 74dad513-b988-da41-8d7b-12977e46ad98
Fix #1143:
 - Fixed no audio bug when pjsua with SRTP optional-with-duplicated-offer calls pjsua with SRTP disabled, by updating active media index after SDP negotiation done.
 - Fixed bug in generating SDP, pjsua_media_channel_create_sdp(), by making sure all media in the SDP candidate are aligned with current active SDP before calling pjmedia_transport_encode_sdp().
 - Fixed bug in modifying SDP for call hold, the media index to be modified was hardcoded to 0, should be active media index.
 - Added python tests for calls with SRTP optional-with-duplicated-offer.




git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3334 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): Fixed memory leak after getting audio route capability in coreaudio_dev



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3335 74dad513-b988-da41-8d7b-12977e46ad98
Fix #1145: API to enable/disable support for iOS BG feature during runtime



git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3336 74dad513-b988-da41-8d7b-12977e46ad98
Closed #1146: support for multipart message bodies in incoming NOTIFY requests

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3337 74dad513-b988-da41-8d7b-12977e46ad98
Re #1146: minor fix in test file comments

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3338 74dad513-b988-da41-8d7b-12977e46ad98
Closed #1144: New presence callback to report subscription state (thanks Johan Lantz for the suggestion):
 - added on_buddy_evsub_state() callback
 - added sample implementation in pjsua_app.c


git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3339 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1147: Bug in parsing multipart message bodies (thanks Johan Lantz for the report)

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3340 74dad513-b988-da41-8d7b-12977e46ad98
Misc (Re #1134): do not allow subscription state callback to be called with NULL event parameter as application may not expect this

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3341 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1147 (Bug in parsing multipart message bodies (thanks Johan Lantz for the report)): leave the quote in parameter values and let the multipart code handle this instead

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3342 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): added the missing ARCH environment variable in CPP command in configure-iphone script (thanks MrGecko for the patch)

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3343 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): fixed failure in resolving DNS A resolution if the answer contains more than one CNAME redirection before an A record is found (thanks Régis Montoya for the report)

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3344 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): changed dynamic payload type starting value for internal codecs to 96 (from 101) as we are running out of constants. Also added more comments to clarify the restriction on the value, i.e. it must be less than 128 (thanks Robbie Hanson  for the suggestion)

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3345 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): fixed failed unit tests due to changes in DNS resolver code in r3344

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3346 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1148:
 - Added check in processing answer, if media offer port is zero, just skip negotiation process.
 - Added SIPp test scenario.




git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3347 74dad513-b988-da41-8d7b-12977e46ad98
Re #1140, cleaned up the mutex usages in SRTP transport:
 - using mutex in accessing application callback pointers
 - releasing mutex before calling application callbacks to avoid deadlock
 - refine the synchronization of backend/libsrtp states




git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3348 74dad513-b988-da41-8d7b-12977e46ad98
Fixed #1149 (Crash when holding the call after receiving SDP answer with multiple codecs (thanks Cyril GY for the report)):
 - avoid using pre-created SDP, but rather use timer and create SDP right when the UPDATE/re-INVITE is about to be sent, to avoid the use of stale pool
 - also fixed bug in the old code when the lock codec feature is not activated after the call is confirmed


git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3349 74dad513-b988-da41-8d7b-12977e46ad98
Misc (re #1134): enable doxygen documentation for pj_actievsock_set_iphone_os_bg()

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