Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't send outgoing MESSAGE sip request
    text
    copied!<p><br> <br> I'm trying to send an outgoing sip request to another server but the request is just routing back to my server. I need to send the request via UDP. I'm using MOBICENTS Sip Servlets.</p> <p>Here's the logs:</p> <blockquote> <p>2013-05-20 23:30:35,175 INFO [gov.nist.javax.sip.stack.SIPTransactionStack] (SelfRoutingThread-19) <br> from="10.214.77.65:5060" <br> to="10.214.77.65:5060" <br> time="0" <br> isSender="false" <br> transactionId="z9hg4bk1a739dca-0982-4c19-91c2-d6b30cde0e44_8017d156_6924298232771001" <br> callId="cec3692d7ee2e3771d3b2ecbd5408cf5@10.214.77.65" <br> firstLine="MESSAGE sip:1404xxxxxxx@sms-proxy-01.bandwidthclec.com:5060 SIP/2.0" <br> <br> <code>&lt;![CDATA[MESSAGE sip:1404xxxxxxx@sms-proxy-01.bandwidthclec.com:5060 SIP/2.0` <br> Call-ID: cec3692d7ee2e3771d3b2ecbd5408cf5@10.214.77.65 <br> CSeq: 1 MESSAGE <br> From:`&lt;sip:1404xxxxxxx@216.27.87.216&gt;`;tag=32496860_8017d156_1a739dca-0982-4c19-91c2- d6b30cde0e44 <br> To:`&lt;sip:63917xxxxxxx@216.27.87.216&gt;` <br> Max-Forwards: 70 <br> Content-Type: text/plain <br> Via: SIP/2.0/UDP 23.21.213.9:5060;branch=z9hG4bK1a739dca-0982-4c19-91c2- <br> d6b30cde0e44_8017d156_6924298232771001 <br> Route: <br> pid=1a739dca-0982-4c19-91c2-d6b30cde0e44> <br> Content-Length: 7 <br> <br> foo-bar]]> <br> <br></p> </blockquote> <p>Here's my DAR config:</p> <blockquote> <p>ALL:("RestComm", "DAR:From", "NEUTRAL", "", "NO_ROUTE", "0") <br> INVITE:("org.mobicents.servlet.sip.example.CallBlockingApplication", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0") <br> REGISTER:("RestComm", "DAR:From", "NEUTRAL", "", "NO_ROUTE", "0") <br> MESSAGE:("SmsReceiver", "DAR:TO", "ORIGINATING", "", "NO_ROUTE", "0", "DIRECTION=OUTBOUND")</p> </blockquote> <p>Here's my code (using HttpServlet) that sends the message:</p> <pre> public void doGet(HttpServletRequest request, HttpServletResponse response) { SipFactory sf = (SipFactory) getServletContext().getAttribute( "javax.servlet.sip.SipFactory"); SipApplicationSession appSession = ((ConvergedHttpSession) request .getSession()).getApplicationSession(); logger.info("sipfactory= " + sf); logger.info("appSession=" + appSession); try { SipServletRequest sipRequest = sf.createRequest(appSession, "MESSAGE","sip:1404xxxxxxx8@216.27.87.216", "sip:63917xxxxxxx@216.27.87.216"); //the uri where I want to send my message SipURI uri = sf.createSipURI("1404xxxxxxx", "sms-proxy-01.bandwidthclec.com"); uri.setPort(5060); sipRequest.setRequestURI(uri); //message content sipRequest.setContent("foo-bar", "text/plain"); logger.info("sipRequest= " + sipRequest); sipRequest.send(); } catch (ServletParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } </code></pre> <p>any help/advice would be great.</p> <p>thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload