[svn-commits] tilghman: branch 1.4 r103607 - /branches/1.4/channels/chan_agent.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 13 00:25:04 CST 2008


Author: tilghman
Date: Wed Feb 13 00:25:03 2008
New Revision: 103607

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103607
Log:
We aren't talking to ourselves; we're talking to someone else.
(closes issue #11771)
 Reported by: msetim
 Patches: 
       ami_agent_talkingto-1.4.diff uploaded by caio1982 (license 22)
 Tested by: caio1982, msetim

Modified:
    branches/1.4/channels/chan_agent.c

Modified: branches/1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_agent.c?view=diff&rev=103607&r1=103606&r2=103607
==============================================================================
--- branches/1.4/channels/chan_agent.c (original)
+++ branches/1.4/channels/chan_agent.c Wed Feb 13 00:25:03 2008
@@ -1495,7 +1495,11 @@
 		} else if (p->chan) {
 			loginChan = ast_strdupa(p->chan->name);
 			if (p->owner && p->owner->_bridge) {
-        			talkingtoChan = p->chan->cid.cid_num;
+				if (ast_bridged_channel(p->owner)) {
+					talkingtoChan = ast_strdupa(ast_bridged_channel(p->owner)->cid.cid_num);
+				} else {
+					talkingtoChan = "n/a";
+				}
         			status = "AGENT_ONCALL";
 			} else {
         			talkingtoChan = "n/a";




More information about the svn-commits mailing list