<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>can you provide the output of kamcmd dlg.list for the call just
      before doing the refer?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09.05.17 00:44, Pranathi Venkatayogi
      wrote:<br>
    </div>
    <blockquote
      cite="mid:b2db71792c2344d98f5038d0c15c270b@TACEXH01.cyracom.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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]-->
      <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: <a class="moz-txt-link-freetext" href="sip:agent1@devtranslation.sms-test.cyracom.com">sip:agent1@devtranslation.sms-test.cyracom.com</a><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
            <a class="moz-txt-link-freetext" href="sip:71594386@10.11.200.59:49376;alias=10.11.200.59~49376~1">sip:71594386@10.11.200.59:49376;alias=10.11.200.59~49376~1</a><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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
            <span style="color:windowtext;text-decoration:none"><img
                style="width:.1666in;height:.1666in"
                id="Picture_x0020_22"
                src="cid:part2.DFB3668D.55820F9C@gmail.com"
                alt="cid:image001.gif@01D1C9C9.C4E8B6D0" border="0"
                height="16" width="16"></span></a> <a
            moz-do-not-send="true" href="https://twitter.com/cyracom"><span
              style="color:windowtext;text-decoration:none"><img
                style="width:.1666in;height:.1666in"
                id="Picture_x0020_23"
                src="cid:part4.CDA0C16D.9935A683@gmail.com"
                alt="cid:image002.gif@01D1C9C9.C4E8B6D0" border="0"
                height="16" width="16"></span></a> <a
            moz-do-not-send="true"
            href="http://www.linkedin.com/company/cyracom"><span
              style="color:windowtext;text-decoration:none"><img
                style="width:.1666in;height:.1666in"
                id="Picture_x0020_24"
                src="cid:part6.FDBE8173.5F47A40E@gmail.com"
                alt="cid:image003.gif@01D1C9C9.C4E8B6D0" border="0"
                height="16" width="16"></span></a> <a
            moz-do-not-send="true" href="http://www.cyracom.com/blog/"><span
              style="color:windowtext;text-decoration:none"><img
                style="width:.1666in;height:.1666in"
                id="Picture_x0020_25"
                src="cid:part8.185FC234.9F885B19@gmail.com"
                alt="cid:image004.gif@01D1C9C9.C4E8B6D0" border="0"
                height="16" width="16"></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
              style="width:2.0833in;height:.3083in"
              id="Picture_x0020_26"
              src="cid:part10.2C14EB4D.10B00D2C@gmail.com"
              alt="cid:image005.png@01D1C9C9.C4E8B6D0" border="0"
              height="30" width="200"></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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>