<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>So I guess I made my question too complicated :)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>So I will simplify, does anyone have an example of sharing session info between two applications that they are willing to share, preferably the actual scripts, as I seem to learn best by seeing and replicating something?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks in advance<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='color:black'>Matthew Loraditch, CCNA</span></b><span style='color:black'><br>1965 Greenspring Drive<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Timonium, MD 21093 <br><a href="mailto:support@heliontechnologies.com"><span style='color:black'>support@heliontechnologies.com</span></a><br>(p) (410) 252-8830<br>(F) (443) 541-1593<br><br>Visit us at <a href="http://www.heliontechnologies.com/"><span style='color:black'>www.heliontechnologies.com</span></a> <br>Support Issue? Email <a href="mailto:support@heliontechnologies.com"><span style='color:black'>support@heliontechnologies.com</span></a> for fast assistance!</span><span style='color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> cisco-voip-bounces@puck.nether.net [mailto:cisco-voip-bounces@puck.nether.net] <b>On Behalf Of </b>Matthew Loraditch<br><b>Sent:</b> Tuesday, February 23, 2010 6:54 PM<br><b>To:</b> cisco-voip@puck.nether.net<br><b>Subject:</b> [cisco-voip] Tracking Calls Across Scripts with Sessions<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I kinda get this but am having issues in converting from my lab where it worked to my production where it’s not working the same.<o:p></o:p></p><p class=MsoNormal>I have one script that most of my work happens in, if a customer chooses they can setup a callback for themselves.<o:p></o:p></p><p class=MsoNormal>My script was written to dequeue the call when they do this, gather their data and then basically loop through a menu option for an agent to listen to the message and connect to the caller. Right before the loop starts the script calls another script via it’s CTI port, the sole purpose of the other script is to basically put the call back in the queue and connect it to an agent.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In my testing environment I am pulling the session id via Get Contact Info and then converting it a readable integer via a guide I found from Tanner (Thanks Tanner!). I use that ID to uniquely identify a call record I am dumping to an sql database. I pull the session in both scripts and use it in second script to select the correct record to update with the agent that the call went to.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In all of my testing the Session ID was always the same between the two scripts, but when I flipped this over to production I am getting records that have the same session ID.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m guessing I need to do this some other way. I know about the steps set session and get session and session mapping and am guessing I need to use them, but don’t understand how they really work. I just need some unique number or other variable that I can pass between the two script so I can update the correct record. I read on netpro about implementation ID but when I tried to use that I got unique IDs.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks in advance!!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='color:black'>Matthew Loraditch, CCNA</span></b><span style='color:black'><br>1965 Greenspring Drive<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>Timonium, MD 21093 <br><a href="mailto:support@heliontechnologies.com"><span style='color:black'>support@heliontechnologies.com</span></a><br>(p) (410) 252-8830<br>(F) (443) 541-1593<br><br>Visit us at <a href="http://www.heliontechnologies.com/"><span style='color:black'>www.heliontechnologies.com</span></a> <br>Support Issue? Email <a href="mailto:support@heliontechnologies.com"><span style='color:black'>support@heliontechnologies.com</span></a> for fast assistance!</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>