Hello,

can you provide the output of kamcmd dlg.list for the call just before doing the refer?

Cheers,
Daniel


On 09.05.17 00:44, Pranathi Venkatayogi wrote:

Hi,

  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.

 But still I get the error “No contact available” when callee dialog is being created – see below.

  I am attaching the snippet of my config where I am calling dlg_refer as well..

 

  Is there something wrong with my usage? Please advise.

 

Thanks,

Pranathi

 

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

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

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

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

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

4724 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR: dialog [dlg_req_within.c:85]: build_dlg_t(): no contact available

4725 May  8 22:27:31 devsip00 /sbin/kamailio[1125]: ERROR: dialog [dlg_transfer.c:188]: dlg_refer_callee(): failed to create dlg_t

 

event_route[dialog:start] {
   if(is_known_dlg()) {
       $var(agentUri) = $dlg_var("agenturi");
       xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) and agenturi: $var(agentUri)");
       if ($(var(agentUri){uri.user}) != "")
       {
           xlog("L_INFO", "Translation: Referring dialog from $dlg(from_contact)");
           dlg_refer("caller",  "$var(agentUri)");
       }
       else
       {
           xlog("L_INFO", "Translation: Dialog confirmed $dlg(state) but no agent info yet\n");
       }
   }
}

 

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

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.

 



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com