[OpenSIPS-Users] get_dialog_info Issues

Ross Beer ross_beer at hotmail.com
Wed Sep 1 10:44:04 CEST 2010


Hi,

 

I am using the following piece of code to set dlg_val and then using
get_dialog_info to check to see if a user already has a call and if so
pass the new call to the same gateway for attended transfer.

 

The code works perfectly if in the same dialog, i.e. when an invite is
sent and then requires authentication however it does not appear to
match any results across different dialogs. Also I can not see any
values in the 'vars' column in the dialog database.

 

Am I using the feature correctly?

 

  # IS PART OF EXISTING CALL
if (get_dialog_info("server","$var(x)","user","$fU"))
{
     xlog("************Log: Seen Before Call *************\n");
    xlog("Log: Belonds to server: $var(x)\n");
     $du=$var(x);

     ## ADD VARIABLE TO ROUTE GATEWAY
     $dlg_val("server") = $var(x);
     $dlg_val("user") = $fU;
      route(1);
      exit;
}
else
{

      xlog("************Log: New INVITE *************\n");
      ds_select_dst("1", "4");

      xlog("LB Sent To $avp(i:271)\n");


     store_dlg_value("server","$avp(i:271)");
     store_dlg_value("user","$fU");
     #$dlg_val(server) = $avp(i:271);
     #$dlg_val(user) = $fU;
     route(1);

     exit;
}

 

Kind regards,

 

Ross

 

PS - Sorry this is a duplicate but my gmail account doesn't seam to post messages to the mailing list
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100901/0c8546aa/attachment.htm 


More information about the Users mailing list