<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have installed Asterisk 1.2 on a server pc and I
have created three extensions 111,142,150. I have installed X-Lite soft phone on
three separate pcs on LAN. I have configured these extensions on these pcs.
Communication is possible successfully.Now I want to transfer a call from one
soft phone to other and I have written a AGI in perl (test.plx) as</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#! usr/bin/perl</FONT></DIV>
<DIV><FONT face=Arial size=2>use Asterisk::AGI;</FONT></DIV>
<DIV><FONT face=Arial size=2>my %agi = new Asterisk::AGI;</FONT></DIV>
<DIV><FONT face=Arial size=2>$agi->setcallback(/&callback);</FONT></DIV>
<DIV><FONT face=Arial size=2>$agi->answer();</FONT></DIV>
<DIV><FONT face=Arial
size=2>$agi->exec('Playback','ss-noservice');</FONT></DIV>
<DIV><FONT face=Arial size=2>$agi->exec('Transfer','SIP/111');</FONT></DIV>
<DIV><FONT face=Arial size=2>sub callback()</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2> warn "Line droped";</FONT></DIV>
<DIV><FONT face=Arial size=2> exit;</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have changed the extensions.conf in [incoming]
section</FONT></DIV>
<DIV><FONT face=Arial size=2>exten=>142,1,AGI(test.plx)</FONT></DIV>
<DIV><FONT face=Arial size=2>exten=>142,2,Hangup()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I dial 142 from 150 soft phone then
'ss-noservice' file played successfully but transfer failed. Can any body help
to transfer the call from one soft phone to another. Thanks in
advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks & Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ram Narayan Mishra</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>