[svn-commits] file: branch group/pimp_my_sip r381156 - /team/group/pimp_my_sip/channels/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 11 06:24:22 CST 2013


Author: file
Date: Mon Feb 11 06:24:17 2013
New Revision: 381156

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381156
Log:
Use the endpoint name and dialog call-id for the channel name.

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=381156&r1=381155&r2=381156
==============================================================================
--- team/group/pimp_my_sip/channels/chan_gulp.c (original)
+++ team/group/pimp_my_sip/channels/chan_gulp.c Mon Feb 11 06:24:17 2013
@@ -150,8 +150,8 @@
 	struct ast_channel *chan;
 	struct ast_format fmt;
 
-	/* TODO: Fix channel name generation */
-	if (!(chan = ast_channel_alloc(1, state, "", S_OR(cid_name, ""), "", "", "", linkedid, 0, "Gulp/%04lx", ast_random() & 0xffff))) {
+	if (!(chan = ast_channel_alloc(1, state, "", S_OR(cid_name, ""), "", "", "", linkedid, 0, "Gulp/%s-%.*s", ast_sorcery_object_get_id(session->endpoint),
+		(int)session->inv_session->dlg->call_id->id.slen, session->inv_session->dlg->call_id->id.ptr))) {
 		return NULL;
 	}
 




More information about the svn-commits mailing list