<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16421">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hello all,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I'm having problems with attended transfer in 
certain scenarios. Let me first try to document the relevant parts of the 
setup:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>There are two&nbsp;load-balanced Asterisk gateways 
connected to the old Nortel system. Currently, PSTN connections are done by 
Nortel. We then have two load-balanced kamailio servers. The phones are 
connected to these. There are several other servers not relevant to this 
question.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Blind transfer works in any scenario. I've been 
told that attended transfer works in any scenario if the original call 
is&nbsp;SIP to SIP. If the original call is from Nortel/PSTN to SIP, then 
attended transfer will usually not work.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Scenarios:</FONT></DIV>
<DIV><FONT size=2 face=Arial>A&nbsp;call comes in from Nortel/PSTN (user A) 
through Nortel1 to a SIP device (user B).&nbsp;User&nbsp;B pushes the transfer 
button (puts current call&nbsp;on hold and makes a new call) and&nbsp;dials a 
Nortel / PSTN number to user C. This call goes out through the nortel2 
server.&nbsp;Users B and C talk a short while before user B pushes the Transfer 
button again to connect users A and C. In this scenario, the REFER is forwarded 
by kamailio to nortel1, which replies "SIP/2.0 481 Call leg/transaction does not 
exist." The call to join is of course on the other asterisk 
(nortel2).</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>A similar scenario is where user B transfers to 
another SIP user. This call will only exist in one of the kamailio servers, and 
Asterisk will give the same response to the REFER.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>A third scenario is where both calls are handled by 
the same Asterisk server. This scenario works.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>I'm assuming I'll have to build REFER-handling 
logic into kamailio, but am unsure of how to proceed. Any 
suggestions?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thanks in advance.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>With kind regards,</FONT></DIV>
<DIV><FONT size=2 face=Arial>Pan</FONT></DIV></BODY></HTML>