[asterisk-commits] file: branch file/gulp_connected_line r389954 - /team/file/gulp_connected_lin...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue May 28 14:26:57 CDT 2013
Author: file
Date: Tue May 28 14:26:53 2013
New Revision: 389954
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389954
Log:
Add support for using UPDATE if the remote side supports it and a reinvite can't be sent immediately.
Modified:
team/file/gulp_connected_line/channels/chan_gulp.c
Modified: team/file/gulp_connected_line/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/file/gulp_connected_line/channels/chan_gulp.c?view=diff&rev=389954&r1=389953&r2=389954
==============================================================================
--- team/file/gulp_connected_line/channels/chan_gulp.c (original)
+++ team/file/gulp_connected_line/channels/chan_gulp.c Tue May 28 14:26:53 2013
@@ -869,7 +869,13 @@
}
}
} else {
- ast_sip_session_refresh(session, NULL, NULL, session->endpoint->connected_line_method, 0);
+ enum ast_sip_session_refresh_method method = session->endpoint->connected_line_method;
+
+ if (session->inv_session->invite_tsx && (session->inv_session->options & PJSIP_INV_SUPPORT_UPDATE)) {
+ method = AST_SIP_SESSION_REFRESH_METHOD_UPDATE;
+ }
+
+ ast_sip_session_refresh(session, NULL, NULL, method, 0);
}
return 0;
More information about the asterisk-commits
mailing list