[asterisk-commits] file: branch group/pimp_my_sip r379117 - /team/group/pimp_my_sip/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 15 10:59:27 CST 2013
Author: file
Date: Tue Jan 15 10:59:23 2013
New Revision: 379117
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379117
Log:
One must implement gulp_fixup if masquerades (hissssssss!) are to work.
Modified:
team/group/pimp_my_sip/channels/chan_gulp.c
Modified: team/group/pimp_my_sip/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/channels/chan_gulp.c?view=diff&rev=379117&r1=379116&r2=379117
==============================================================================
--- team/group/pimp_my_sip/channels/chan_gulp.c (original)
+++ team/group/pimp_my_sip/channels/chan_gulp.c Tue Jan 15 10:59:23 2013
@@ -160,7 +160,15 @@
/*! \brief Function called by core to change the underlying owner channel */
static int gulp_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
{
- return -1;
+ struct ast_sip_session *session = ast_channel_tech_pvt(ast);
+
+ if (session->channel != oldchan) {
+ return -1;
+ }
+
+ session->channel = newchan;
+
+ return 0;
}
/*! \brief Function called by core to ask the channel to indicate some sort of condition */
More information about the asterisk-commits
mailing list