Returning the ip address of a registered user
Hello everyone, What's the easiest/lightest way to return just the IP address and port of a registered user? So far I can see using function_sofia_contact and parsing that (not preferred because it won't detect NAT) OR executing the SQL lookups from FS and returning the IP and port as known to FreeSWITCH. Any ideas? -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Kristian, with sofia_contact, you should get a string which contains fs_path=sip %3Auserid%40NAT_IP%3ANAT_PORT%3B..... where NAT_IP and NAT_PORT are the values you are looking for. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 26/03/2010 à 16:26, Kristian Kielhofner a écrit :
Hello everyone,
What's the easiest/lightest way to return just the IP address and port of a registered user?
So far I can see using function_sofia_contact and parsing that (not preferred because it won't detect NAT) OR executing the SQL lookups from FS and returning the IP and port as known to FreeSWITCH.
Any ideas?
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
David Ponzone
-
Kristian Kielhofner