<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<BR>
<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>
<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>
<BR>
Am I using the feature correctly?<BR>
<BR>
# IS PART OF EXISTING CALL<BR>if (get_dialog_info("server","$var(x)","user","$fU"))<BR>{<BR> xlog("************Log: Seen Before Call *************\n");<BR> xlog("Log: Belonds to server: $var(x)\n");<BR> $du=$var(x);<BR>
## ADD VARIABLE TO ROUTE GATEWAY<BR> $dlg_val("server") = $var(x);<BR> $dlg_val("user") = $fU;<BR> route(1);<BR> exit;<BR>}<BR>else<BR>{<BR>
xlog("************Log: New INVITE *************\n");<BR> ds_select_dst("1", "4");<BR>
xlog("LB Sent To $avp(i:271)\n");<BR>
<BR> store_dlg_value("server","$avp(i:271)");<BR> store_dlg_value("user","$fU");<BR> #$dlg_val(server) = $avp(i:271);<BR> #$dlg_val(user) = $fU;<BR> route(1);<BR>
exit;<BR>}<BR>
<BR>
Kind regards,<BR>
<BR>
Ross<BR>
<BR>
PS - Sorry this is a duplicate but my gmail account doesn't seam to post messages to the mailing list<BR>                                            </body>
</html>