How to find out phone connected with a PC
Is there a way to programatically find out which IP phone is connected with a given PC? We have a need where an application will be installed on each PC, but instead of having the user manually enter the information about the PC, we want auto detect the phone connected with that PC.
Old topic, but if anyone is interested I played around and got something working in VS 2005/C# using SharpPcap and the PacketCDP class from an app on codeproject called Pacanal. I had to make some changes to the PacketCDP.cs code to get it to work, but if you can get that far I believe it was relatively minor. The app I made sniffed the CDP packet for the phone devicename and then used that to call a CUAE app to log a phone into extension mobility. Here's some partial code:
PcapDeviceList devices = SharpPcap.GetAllDevices();
PcapDevice device = devices[i];
device.PcapOnPacketArrival += new SharpPcap.PacketArrivalEvent( device_PcapOnPacketArrival );
device.PcapOpen(true, 1000);
string filter = "ether host 01:00:0c:cc:cc:cc";
device.PcapSetFilter( filter );
device.PcapStartCapture();
private static void device_PcapOnPacketArrival(object sender, Packet packet)
EthernetPacket eth = (EthernetPacket)packet;
returnbool = PacketCDP.Parser(myTreeNode.Nodes, eth.Data, index, LItem, ref deviceName);
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://10.10.50.75:8000/emLogin?phone=" + deviceName + "&user=testuser");
Similar Messages
-
How reliable is home phone connect with weak signal strength?
I live in an area that for the first year had decent signal strength. It was never strong but for the past 4 months my cell phones frequently can't make or receive calls. I complained to Verizon so much they finally gave me a network extender and now the service in my home is fine. My question is about a home phone connect for my Mother next door. She doesn't have internet so she can't have a network extender and mine won't reach that far (about 100 yards). I am able to make and receive calls at her house on my cell about 80% of the time, about the same as my house before the network extender. I just have a basic LG phone and I usually have 1 bar of service down there, never more. I have asked the sales people at Verizon and they all say SURE the home phone direct will work fine. It has a better antenna and transmitter than your cell phone. You won't have a problem. Has anyone had similar experience with using the home phone connect in a marginal signal area? If so did it have substantially better signal strength than a cell phone? My son has a new IPhone 4S and he always has a better signal than my little cheapie.
THANKS for the reply. I went to the Verizon store today and picked one up. I have a 14 day trial where it can be returned for a full refund if it doesn't work. The $35 activation fee is supposed to be nonrefundable but the guy said if it doesn't work right off the bat to call him (within a couple of days) and he could stop the activation without any charges.
In response to lewisr13 I don't have a home phone direct, only 3 cells at my house with the network extender. I have a very poor signal on my cell at my Moms house. She can't have a network extender because she doesn't have internet.
Anyway I brought the unit home today and walked all over her house. Sometimes I had one signal (out of 3) and about half the time I didn't have any. Of course when I had none I could not make or receive a call. I was about ready to box it up and take it back when I decided to go to an outside utility room, where I intended to mount it in the first place.
Low and behold there is a spot on the east facing wall of the utility room where it has TWO signals. If I move it more than 3-4 inches in any direction I lose one of them. It's been about an hour and so far they have glowed blue without blinking as long as I don't move it. Of course the phone works fine as long as they stay that way.
I am both pleased and worried. Pleased that it is performing so well and worried that it won't remain that way. The guy at the Verizon store was extremely helpful and told me to call him with any questions or problems. I called him and asked if he thought the signal would remain that way. He said he thought it would but didn't really know for sure. I have got my fingers crossed and will watch it very closely for the 14 days. Just my luck on the 15th day it might be lights out.
I hope not - I am looking so forward to porting her AT&T number to Verizon and saying Adios to Ma Bell and her whole family. My Mother is 86 years old and has had phone service for about 55 years. She's never been late with a payment in all those years and when she called them with a problem they treated her like &$#@%. -
How to find out which connection is used for access to Bex query?
Hello,
in our BO 4.0 environment we have a lot of different connections to Bex queries.
There exist more connections to one Bex query.
For example to Bexquery1 we can access with 2 connections, connection : BX1 (connection specific for one query) and connection DEVcubes(generic connection to all cubes)
How can I check in Webi report over Bex query which connection is currently used?
Thanks a lot !
RudolfHi Rudolf,
Your requirement can be achieved using QueryBuilder.
Please refer to following QueryBuilder step-by-step post by Manikandan:
http://scn.sap.com/community/bi-platform/blog/2012/10/11/businessobjects-query-builder-queries
In bove post, Go to Universe Queries section -> All webi report using one connection
In case you dont know how to use QueryBuilder, please refer to following post:
http://scn.sap.com/docs/DOC-42952
Please let us know if you get any doubt. -
How to find out the projects with status "Invalid"?
I'm new to Oracle Projects -OP. We are on 12.0.4. This' my new job.
I have a task of "Remove projects with status 'Invalid' ".
Questions:
How to access the OP forms to verify the existent of the invalid projects?
What are the PA tables having the status info -- I mean those showing the status with 'Invalid'?
Thanks A lot.
an apps dbaI could not find a sample for the DELETE_PROJECT. I have coded the delete project by modifying the sample of the CREATE_PROJECT.
-- delete a project with the status INVALID shown in pa_project_statuses.project_status_name
--set serveroutput on size 20000
DECLARE
-- Variables needed for API standard parameters
l_api_version_number NUMBER := 1.0;
l_commit VARCHAR2(1) := 'F';
l_return_status VARCHAR2(1);
l_init_msg_list VARCHAR2(1) := 'F';
l_msg_count NUMBER;
l_msg_index_out NUMBER;
l_msg_data VARCHAR2(2000);
l_data VARCHAR2(2000);
l_pm_product_code VARCHAR2(10);
l_responsibiity_id NUMBER;
l_user_id NUMBER;
l_pm_project_reference PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
l_pa_project_id PA_PROJECT_PUB.PROJECT_IN_REC_TYPE;
API_ERROR EXCEPTION;
BEGIN
-- GET GLOBAL VALUES
select user_id, responsibility_id
into l_user_id, l_responsibiity_id
from pa_user_resp_v
where user_name = 'J23N'; -- need to get from Apps
--SET GLOBAL VALUES
pa_interface_utils_pub.set_global_info(
p_api_version_number => 1.0,
p_responsibility_id => l_responsibiity_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
-- PRODUCT RELATED DATA
l_pm_product_code := 'R_INVALID'; -- can be user defined
-- PRODUCT DATA (PROJECT_IN_REC_TYPE)
l_pm_project_reference.pm_project_reference := null;
l_pa_project_id.pa_project_id := 1001;
--INIT_CREATE_PROJECT
--pa_project_pub.init_project;
dbms_output.put_line('Before delete_project');
--DELETE_PROJECT
pa_project_pub.delete_project(
p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_pm_project_code => l_pm_product_code,
p_pm_project_reference => l_pm_project_reference,
p_pa_project_id => l_pa_project_id
-- Check for errors
if l_return_status != 'S'
then
raise API_ERROR;
end if;
dbms_output.put_line('Deleted Project Id: ' || l_pa_project_id.pa_project_id);
--dbms_output.put_line('Deleted Project Number: ' || l_project_out.pa_project_number);
Commit;
--HANDLE EXCEPTIONS
-- Get the error message that were returned if it did not complete sucessfully
EXCEPTION
When API_ERROR then
dbms_output.put_line('An API_ERROR occurred');
if l_msg_count >= 1
then
for i in 1..l_msg_count loop
pa_interface_utils_pub.get_messages(
p_msg_data => l_msg_data,
p_encoded => 'F',
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('error message: ' || l_data);
end loop;
rollback;
end if;
When OTHERS then
dbms_output.put_line('An error occured, sqlcode = ' || sqlcode);
if l_msg_count >= 1
then
for i in 1..l_msg_count loop
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => 'F',
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('error message: ' || l_data);
end loop;
rollback;
end if;
END;Can anyone with the experience of PA_PROJECT_PUB make comment on this Delete Project block? On the struncture level is it correct?
I run it and get
pa_project_pub.delete_project(
ERROR at line 48:
ORA-06550: line 48, column 3:
PLS-00306: wrong number or types of arguments in call to 'DELETE_PROJECT'
ORA-06550: line 48, column 3:
PL/SQL: Statement ignored
Please make your comment on the structure (the logic) of the delete project before providing the advice on the debug.
I would like to make sure the logic is correct first.
TIA -
How do i remove a device from my apple id on find my phone app with out erasing the device.
How do I remove a device from my apple id on the find my phone app with out erasing it becase it still belongs to my child? I need to remove a iPad mini and a iPod 4th gen.
ThanksIf you haven't already, do Settings > iCloud and turn off Find My iPhone. You will have to supply your Apple ID and password.
Then do Settings > General > Reset > Erase All Content and Settings to make the iPhone appear as if it just came out of the box. -
How to find out i phone is unlock with out sim card
how to find out i phone is unlock without sim card
Put a SIM in the device from a carrier that it is not locked to.
Contact Apple Customer support, provide them the Serial number and they may be able to provide that information. -
How to find out which jobs are connected to the user
Hello, i have a question, but i was unable to find the answer. The problem is that our internal consultant left the company, and there are certain jobs that run under his account. We want now to switch this jobs to other accounts. The problem we are facing is how to find out what jobs, or job steps are connected with his account, so we can safely demote his account, so that no other jobs will be run under his account. Thank you very much
Sincerely,
Luka Prijicthe only reliable way to do this is by scanning table TBTCP using the person's userID in field AUTHCKNAM and filtering by job statuses: scheduled, released, ready and active (sorry I can't remember the code#'s off top of my head, something like P=scheduled, S=scheduled...you have to look it up). When you search SM37 it only permits you to scan by the userID who created the job, but it won't tell you if a different userID is defined in a job step. That's why you need to scan TBTCP. Don't forget that you should also check for a user's open Workflow items before deletion.
I noticed some posts in this forum that suggest a userID should never be deleted, only locked, added to a special user group, and all role assignments removed. However I've never worked somewhere that does this. -
How to find out whether my Iphone 3Gs (OS version 3.1.3) is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its current OS 3.1.3 to OS 5 even if my phone is not officlially unlocked ? how to up grade its OS ? what are there any better ways to do it ?
Thanks,
PRANAJDepends wher you obtained the iPhone from and it's original supplier
If the iPhone is an authorised unlock ( approved by the carrier) or was
purchased from Apple as an unlocked iPhone updating the iOS
will have no effect on the iPhone and it's lock status
HOWEVER if the software has been tampered with to remove the lock,
updating the iOs will lock the iPhone back to the original carrier who holds the lock
To find out the status of your iPhone you could call Apple support
and they may tell you if the iPhone is locked or not and if it is which carrier -
How do I find the phone # associated with my dryloop account?
Customer service said they would be open til midnight but they're closed at 11:20. How do I find the phone # associated with my dryloop account so that I can pay online.
Hi, yogaonmain!
I'm sorry we were not available to get that information to you. Your mobile telephone number will be listed on your paper statement. It is also typically listed inside your phone under the Settings/Phone info section.
If you need this information immediately, please call our customer service line at 800-922-0204.
Thank you,
AdamE_VZW
Follow us on Twitter @VZWSupport -
How to find out the IBU of the logges in user with some relationship?
Hi,
How to find out the IBU of the logges in user with some relationship?
Regards,
JayaHi Jaya,
I am not sure if i understood you correctly. Do you want to find the corresponding account of logged in User? If yes, then you can use the below FM:-
CALL FUNCTION 'BP_CENTRALPERSON_GET'
EXPORTING
IV_USERNAME = im_usr_name
IMPORTING
EV_BU_PARTNER_GUID = lv_partner_guid
EXCEPTIONS
NO_CENTRAL_PERSON = 1
NO_BUSINESS_PARTNER = 2
NO_ID = 3
OTHERS = 4.
Thanks and Regars,
Rohit -
Need to know how to find out the Variant associated with a background job
Hello,
Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
Thanks in anticipationYes it is possible which is variant, input fields are choosen
- go to SM37 and locate the background job which was processed using proper selection criteria
- select the Job and click on 'Step' button availabe in the screen
- the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
which gives the list of input values.
hope this helps
Thanks
JK -
How to find out original i phone 4s
how to find out original i phone 4s, Location services centre in bahrain
"find out"? Do you mean find? Do you want to find a lost iPhone?
"original iPhone 4S"? There are no other iPhone 4S!
"Location services centre in bahrain"? No clue what you mean. -
Is it possible and how to find out what host, if any, is connected to a remote PXI prior to switching execution target programmatically or in devlopment environment?
This functionality is not available in LabVIEW RT. If you attempt to switch execution target to an RT controller already targetted by someone else, it will tell you too many hosts are connected and fail. Of course if it allows you to switch, then no one was connected. By attempting to switch execution target you can use the message above to determine if anyone is targetted or not, but if someone is, there is no way to determine who.
If you are concerned about this sort of thing, you might check the RT target options in LabVIEW RT to change the IP access list for hosts that are allowed to switch execution target to it. -
How to find out is my phone lock or unlock
How to find out is my phone lock or unlock
Put in a sim from another wireless carrier. Does the receipt say
unlocked? -
what is ilife ?? is it comes with macbook pro 13in ?? how to find out in the system?? I am using OSX 10.8.5
These are the iLife applications:
http://www.apple.com/ilife/
They come with every new Mac. If they are not in your applications folder, download them from the App store.
Ciao.
Maybe you are looking for
-
Since having my MacBook Pro repaired (for a video problem) Time Capsule returns the following message: "This backup is too large for the backup disk. The backup requires 428.08 GB but only 192.14 GB are available." I notice that there is also a new
-
Hello fellow Archers, Although a brand new Arch user, I am really excited with Arch and hopefully I will stay on this distro till the end of days. Anyway, enough with the introductions... let get to business... I am having issues with problematic DSD
-
If the app is free, why ask me for my appleID and password. I tried to download FB Messenger for example. Just got my phone today so I have mountains of questions !!
-
Hi All, I am facing a strange issue. I have forecast in D1 and D2 in Demantra DM. This published to ASCP. ASCP runs with D1,D2 and M1 organization where M1 is central purchasing. All the demand from D1 and D2 is fulfilled in M1. Dependent demand from
-
Has anyone ever got there ipod screen Repaired for free
I cracked my screen!!