[SR-Users] dlg_refer caller fails to create callee dialog

Pranathi Venkatayogi pvenkatayogi at cyracom.com
Tue May 9 17:49:00 CEST 2017


Here is the kamcmd output. Strangely the state is showing as 4/terminated, while I don’t see any bye message/logs to that extent in Kamailio. And my chat session is still on.

kamcmd> dlg.list
{
        h_entry: 3772
        h_id: 5660
        call-id: e6b6863121c7420cbded82574cff12d0my
        from_uri: sip:cust1 at devtranslation.sms-test.cyracom.com
        to_uri: sip:spanish at devtranslation.sms-test.cyracom.com
        state: 4
        start_ts: 1494343858
        init_ts: 1494343857
        timeout: 1494387058
        lifetime: 43200
        dflags: 643
        sflags: 0
        iflags: 0
        caller: {
                tag: 69786a5fef6a48bb89b8277cc485d82d
                contact: sip:71594386 at 10.11.200.59:49376;alias=10.11.200.59~49376~1
                cseq: 9739
                route_set:
                socket: udp:10.99.52.17:5060
        }
        callee: {
                tag: 408c77a154484b5083f5a895e8fc664b
                contact: sip:48751293 at 10.99.54.28:55933
                cseq: 0
                route_set: <sip:10.99.52.17:5060;lr;nat=yes>
                socket: udp:10.99.52.17:5060
        }
        profiles: {
        }
        variables: {
                {
                        "agenturi": sip:agent1 at devtranslation.sms-test.cyracom.com
                }
        }
}
kamcmd>

From: sr-users [mailto:sr-users-bounces at lists.kamailio.org] On Behalf Of Daniel-Constantin Mierla
Sent: Monday, May 08, 2017 11:42 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] dlg_refer caller fails to create callee dialog


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 at 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 at 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<http://www.cyracom.com/>

Join us:   [cid:image001.gif at 01D1C9C9.C4E8B6D0] <https://www.facebook.com/pages/CyraCom-LLC/134704783312720>  [cid:image002.gif at 01D1C9C9.C4E8B6D0] <https://twitter.com/cyracom>  [cid:image003.gif at 01D1C9C9.C4E8B6D0] <http://www.linkedin.com/company/cyracom>  [cid:image004.gif at 01D1C9C9.C4E8B6D0] <http://www.cyracom.com/blog/>

[cid:image005.png at 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 at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



--

Daniel-Constantin Mierla

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com<http://www.asipto.com>

Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com<http://www.kamailioworld.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 405 bytes
Desc: image001.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 458 bytes
Desc: image002.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 607 bytes
Desc: image003.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 516 bytes
Desc: image004.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 14153 bytes
Desc: image005.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170509/42c5683d/attachment-0004.png>


More information about the sr-users mailing list