[asterisk-commits] file: branch file/pimp_sip_media r381157 - in /team/file/pimp_sip_media: ./ c...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Feb 11 06:35:31 CST 2013


Author: file
Date: Mon Feb 11 06:35:27 2013
New Revision: 381157

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

Merged revisions 381156 from http://svn.asterisk.org/svn/asterisk/team/group/pimp_my_sip

Modified:
    team/file/pimp_sip_media/   (props changed)
    team/file/pimp_sip_media/channels/chan_gulp.c

Propchange: team/file/pimp_sip_media/
------------------------------------------------------------------------------
--- pimp-integrated (original)
+++ pimp-integrated Mon Feb 11 06:35:27 2013
@@ -1,1 +1,1 @@
-/team/group/pimp_my_sip:1-381150
+/team/group/pimp_my_sip:1-381156

Modified: team/file/pimp_sip_media/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_media/channels/chan_gulp.c?view=diff&rev=381157&r1=381156&r2=381157
==============================================================================
--- team/file/pimp_sip_media/channels/chan_gulp.c (original)
+++ team/file/pimp_sip_media/channels/chan_gulp.c Mon Feb 11 06:35:27 2013
@@ -159,8 +159,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 asterisk-commits mailing list