How to link to the sip server though IP?
I used the listeningPoint
to link with the local unused IP, it works; when I link to the SIP phone's IP, it doesn't.
Can I direct my link to the SIP server?
I just want to create a JAVA SE Application to receive the phone number and display the information of the caller.
Here's what I've tried so far:
Properties properties = new Properties();
properties.setProperty("javax.sip.STACK_NAME", "GetPhoneNum");
properties.setProperty("javax.sip.IP_ADDRESS", "192.168.1.2");
sipStack = sipFactory.createSipStack(properties);
ListeningPoint udp = sipStack.createListeningPoint(port, "udp");
sipProvider = sipStack.createSipProvider(udp);
sipProvider.addSipListener(this)
I createed the sipFactory
and the sipStack
the with the parameter (properties
), then I added the javax.sip.IP_ADDRESS
properties with the my local IP address.
"javax.sip.InvalidArgumentException: Cannot assign requested address: Cannot bind" – Ronnie Tws Aug 06 '14 at 02:19