Pergunta

Is there a way of getting the IP address/port of an incoming request? (I don't want the data in the message, but I'd like information from the SIP stack itself, and preferably also the listening point the request had been received on.)

So far I have not find any solution by parsing the Javadocs.

Foi útil?

Solução

Pending you are using http://java.net/projects/jsip

Cast RequestEvent to gov.nist.javax.sip.RequestEventExt in

public void processRequest(RequestEvent requestEvent) {
    RequestEventExt requestEventExt = (RequestEventExt) requestEvent;
    requestEventExt.getRemoteIpAddress();
    requestEventExt.getRemotePort();
}

Best Regards Jean

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top