<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<BR>
&nbsp;<BR>
I am using the following piece of code to set dlg_val and then using<BR>get_dialog_info to check to see if a user already has a call and if so<BR>pass the new call to the same gateway for attended transfer.<BR>
&nbsp;<BR>
The code works perfectly if in the same dialog, i.e. when an invite is<BR>sent and then requires authentication however it does not appear to<BR>match any results across different dialogs. Also I can not see any<BR>values in the 'vars' column in the dialog database.<BR>
&nbsp;<BR>
Am I using the feature correctly?<BR>
&nbsp;<BR>
&nbsp;&nbsp;# IS PART OF EXISTING CALL<BR>if (get_dialog_info("server","$var(x)","user","$fU"))<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog("************Log: Seen Before Call *************\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;xlog("Log: Belonds to server: $var(x)\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$du=$var(x);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;## ADD VARIABLE TO ROUTE GATEWAY<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dlg_val("server") = $var(x);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dlg_val("user") = $fU;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>}<BR>else<BR>{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog("************Log: New INVITE *************\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ds_select_dst("1", "4");<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlog("LB Sent To $avp(i:271)\n");<BR>
<BR>&nbsp;&nbsp;&nbsp;&nbsp; store_dlg_value("server","$avp(i:271)");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;store_dlg_value("user","$fU");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#$dlg_val(server) = $avp(i:271);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#$dlg_val(user) = $fU;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;route(1);<BR>
&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>}<BR>
&nbsp;<BR>
Kind regards,<BR>
&nbsp;<BR>
Ross<BR>
&nbsp;<BR>
PS - Sorry this is a duplicate but my gmail account doesn't seam to post messages to the mailing list<BR>                                               </body>
</html>