[Kamailio-Users] Using Asterisk as media server

Iñaki Baz Castillo ibc at aliax.net
Wed Mar 18 11:16:48 CET 2009


2009/3/18 Olle E. Johansson <oej at edvina.net>:
>>>> Then I hope you don't need Asterisk pickup code (since it doesn't
>>>> work in
>>>> 1.4.23 due to a regression).


> Is there a bug report on this? What the result?


Yes:

http://bugs.digium.com/view.php?id=14206
http://svn.digium.com/view/asterisk/tags/1.4.24/asterisk-1.4.24-summary.html?view=co

The patch is simple:

Index: main/channel.c
===================================================================
--- main/channel.c	(revision 170304)
+++ main/channel.c	(working copy)
@@ -3683,7 +3683,7 @@
 	/* XXX What about blocking, softhangup, blocker, and lock and
blockproc? XXX */
 	/* Application and data remain the same */
 	/* Clone exception  becomes real one, as with fdno */
-	ast_copy_flags(original, clone, AST_FLAG_EXCEPTION | AST_FLAG_OUTGOING);
+	ast_set_flag(original, ast_test_flag(clone, AST_FLAG_OUTGOING |
AST_FLAG_EXCEPTION));
 	original->fdno = clone->fdno;
 	/* Schedule context remains the same */
 	/* Stream stuff stays the same */




-- 
Iñaki Baz Castillo
<ibc at aliax.net>




More information about the sr-users mailing list