hs.OpenComPortEx(cPort1,cConfig,cMode,cScript,cFunc1,vTerminator,cResource1)
That call passes the script file name (cScript) and the function to call (cFunc1).
when I open the 2nd com port it passes cFunc2.
cScript is a constant that hold the script filename "NetCID.txt"
cFunc1 and cFunc2 are constants that contain the name of the function to call when data for the respective comports arrives.
ie
CID comes in on line 1 and CallBackLine1 function is called
CID comes in on line 2 and CallBackLine2 function is called
Then those functions call the common call back function and pass the line number as a paramter ie "CallBack 1,data"
So I know which line it comes in on because each comport has a seperate callback function.
As it turns out I personally don't do any different processing or announcements based on which line is ringing. I just have HS announce the calls the same as both my lines are for personal use. Now if one was a work line then I might have different announcements.