Hi all,
I have a similar problem: I am trying to connect from an Android emulator to a SIP servlet running on another computer (windows 7). Like this:
Address to = addressFactory.createAddress("sip:[email protected]:5060");
Address from = addressFactory.createAddress(addressFactory.createSipURI("310260000000000", "10.0.2.15:8070"));
ArrayList viaHeaders = new ArrayList();
viaHeaders.add(headerFactory.createViaHeader("10.0.2.15", 5070, "udp", null));
ToHeader toHeader = headerFactory.createToHeader(to, null);
FromHeader fromHeader = headerFactory.createFromHeader(from, "310260000000000");
fromHeader.setTag("12345");
Request request = messageFactory.createRequest(addressFactory.createURI("sip:[email protected]:5060"), Request.REGISTER, udpProvider.getNewCallId(),headerFactory.createCSeqHeader(1L, Request.REGISTER),fromHeader, toHeader, viaHeaders, headerFactory.createMaxForwardsHeader(70));
request.addHeader(getContactHeader());
clientTransaction = udpProvider.getNewClientTransaction(request);
clientTransaction.sendRequest();
The server listens at address 192.168.2.145:8060.
I can see - with a packet sniffer app - the UDP packets being sent away, but nothing arrives to the server pc. Otherwise I can ping the server machine from my pc.
Can anybody help?