<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">  I am calling dlg_refer after dialog is confirmed on both sides. This time the callee is a real client, so call was established end to end.<o:p></o:p></p>
<p class="MsoNormal"> But still I get the error “No contact available” when callee dialog is being created – see below.<o:p></o:p></p>
<p class="MsoNormal">  I am attaching the snippet of my config where I am calling dlg_refer as well..<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  Is there something wrong with my usage? Please advise.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Pranathi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4719 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: INFO: <script>: Translation: Dialog confirmed 3 and agenturi: sip:agent1@devtranslation.sms-test.cyracom.com<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4720 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=573
 a=16 n=if<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4721 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=567
 a=26 n=xlog<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4722 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: INFO: <script>: Translation: Referring dialog from sip:71594386@10.11.200.59:49376;alias=10.11.200.59~49376~1<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4723 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: exec: *** cfgtrace:local_route=[dialog:start] c=[routingdev.cfg] l=568
 a=26 n=dlg_refer<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4724 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR:
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:red;background:white">dialog [dlg_req_within.c:85]: build_dlg_t(): no contact available</span></b><b><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#6D6D6D;background:white">4725 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR: dialog [dlg_transfer.c:188]: dlg_refer_callee(): failed to create
 dlg_t<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:Consolas;color:#222222">event_route[dialog:start] {</span><span style="font-size:12.0pt;font-family:Consolas"><br>
<span style="color:#222222">   if(is_known_dlg()) {</span><br>
<span style="color:#222222">       $var(agentUri) = $dlg_var("agenturi");</span><br>
<span style="color:#222222">       xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) and agenturi: $var(agentUri)");</span><br>
<span style="color:#222222">       if ($(var(agentUri){uri.user}) != "")</span><br>
<span style="color:#222222">       {</span><br>
<span style="color:#222222">           xlog("L_INFO", "Translation: Referring dialog from $dlg(from_contact)");</span><br>
<span style="color:#222222">           <span style="background:yellow;mso-highlight:yellow">dlg_refer("caller",  "$var(agentUri)");</span></span><br>
<span style="color:#222222">       }</span><br>
<span style="color:#222222">       else</span><br>
<span style="color:#222222">       {</span><br>
<span style="color:#222222">           xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) but no agent info yet\n");</span><br>
<span style="color:#222222">       }</span><br>
<span style="color:#222222">   }</span><br>
<span style="color:#222222">}</span></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif">
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Pranathi Venkatayogi<o:p></o:p></b></p>
<p class="MsoNormal"><i>System Developer II<o:p></o:p></i></p>
<p class="MsoNormal">(520) 745-9447 x4466<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.cyracom.com/"><span style="color:blue">www.cyracom.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Join us:   <a href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
<span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_22" src="cid:image001.png@01D2C822.B146B4D0" alt="cid:image001.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="https://twitter.com/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_23" src="cid:image002.png@01D2C822.B146B4D0" alt="cid:image002.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.linkedin.com/company/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_24" src="cid:image003.png@01D2C822.B146B4D0" alt="cid:image003.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.cyracom.com/blog/"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_25" src="cid:image004.png@01D2C822.B146B4D0" alt="cid:image004.gif@01D1C9C9.C4E8B6D0"></span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6"><img border="0" width="200" height="30" style="width:2.0833in;height:.3083in" id="Picture_x0020_26" src="cid:image005.png@01D2C822.B146B4D0" alt="cid:image005.png@01D1C9C9.C4E8B6D0"></span><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6">DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure
 by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan
 this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom,
 LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.</span><span style="font-size:8.0pt;color:#A6A6A6"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>