Fix typo
authorMark Spencer <markster@digium.com>
Tue, 19 Aug 2003 21:26:29 +0000 (21:26 +0000)
committerMark Spencer <markster@digium.com>
Tue, 19 Aug 2003 21:26:29 +0000 (21:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1380 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 85dd349..1a2c479 100755 (executable)
@@ -711,7 +711,7 @@ static int check_availability(struct agent_pvt *newlyavailable, int needlock)
                                /* Adjustable agent */
                                newlyavailable->chan = ast_request("Local", AST_FORMAT_SLINEAR, newlyavailable->loginchan);
                                if (newlyavailable->chan) {
-                                       if (agent_call(newlyavailable->chan, newlyavailable->loginchan, 0))
+                                       if (ast_call(newlyavailable->chan, newlyavailable->loginchan, 0))
                                                ast_log(LOG_WARNING, "Call failed on channel '%s'\n", newlyavailable->chan->name);
                                        chan = agent_new(p, AST_STATE_DOWN);
                                } else {