Re: [mobicents-public] Mobicents RestComm - Illegal character in authority at index 7

242 views
Skip to first unread message

Charles Roufay

unread,
Mar 1, 2013, 5:00:01 PM3/1/13
to mobicent...@googlegroups.com

Hi,

When you say that it was successful, did you hear th voice recording? Did the error occur after you ran curl multiple times?

Regards

charles
Telestax_doc_team

On Mar 1, 2013 3:06 AM, "vixmemon" <waqas...@gmail.com> wrote:

I am following Tutorials by RestComm for their Mobicents Implementation. I successully bind and register users through CURL for Hello-World demo and DTMF Demo.

Whenever i place a call on sip:12...@127.0.0.1:5080 or sip:33...@127.0.0.1:5080 i receive following exception


 13:29:58,728 INFO  [InitialRequestDispatcher] Request event dispatched to RestComm
    13:29:58,767 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,768 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav
    13:29:58,769 WARN  [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war\/audio/one-second-silence.wav

The Headers of the call are fine i think,


13:42:05,514 INFO [SIPTransactionStack]

;tag=1545 To: Call-ID: 23338 CSeq: 20 OPTIONS Accept: application/sdp Max-Forwards: 70 User-Agent: Linphone/3.5.2 (eXosip2/3.6.0) Content-Length: 0

]]>

13:42:05,518 INFO [SIPTransactionStack]

;tag=97936972_57a5b08a_d49670a8-7483-482d-b493-47b6f0ffb64a Via: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK24540;received=127.0.0.1 CSeq: 20 OPTIONS Call-ID: 23338 From: ;tag=1545 Content-Length: 0

]]>

13:42:05,524 INFO [InitialRequestDispatcher] Request event dispatched to RestComm 13:42:05,546 INFO [SIPTransactionStack]

;tag=32134 To: Call-ID: 23679 CSeq: 20 INVITE Contact: Content-Type: application/sdp Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,NOTIFY,MESSAGE,SUBSCRIBE,INFO Max-Forwards: 70 User-Agent: Linphone/3.5.2 (eXosip2/3.6.0) Subject: Phone call Content-Length: 479

v=0 o=toto 294 294 IN IP4 192.168.132.86 s=Talk c=IN IP4 192.168.132.86 t=0 0 m=audio 7078 RTP/AVP 112 111 110 3 0 8 101 a=rtpmap:112 speex/32000 a=fmtp:112 vbr=on a=rtpmap:111 speex/16000 a=fmtp:111 vbr=on a=rtpmap:110 speex/8000 a=fmtp:110 vbr=on a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-11 m=video 9078 RTP/AVP 103 99 98 a=rtpmap:103 VP8/90000 a=rtpmap:99 MP4V-ES/90000 a=fmtp:99 profile-level-id=3 a=rtpmap:98 H263-1998/90000 a=fmtp:98 CIF=1;QCIF=1 ]]>

13:42:05,558 INFO [SIPTransactionStack]

Via: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK2917;received=127.0.0.1 CSeq: 20 INVITE Call-ID: 23679 From: ;tag=32134 Content-Length: 0

]]>

13:42:05,573 INFO [SIPTransactionStack]

;tag=51502709_57a5b08a_2e371fbf-827f-4e13-be37-4ba38c93a9c9 Via: SIP/2.0/UDP 192.168.132.86:5060;rport=5060;branch=z9hG4bK2917;received=127.0.0.1 CSeq: 20 INVITE Call-ID: 23679 From: ;tag=32134 Contact: Content-Length: 0

]]>

13:42:05,576 INFO [InitialRequestDispatcher] Request event dispatched to RestComm 13:42:05,593 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war/audio/one-second-silence.wav 13:42:05,634 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war/audio/one-second-silence.wav 13:42:05,634 WARN [RcmlInterpreter] org.mobicents.servlet.sip.restcomm.xml.VisitorException: java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:\restcomm-saas-jboss-1.0.0.CR2-SNAPSHOT\server\default\deploy\restcomm.war/audio/one-second-silence.wav

--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thomas Quintana

unread,
Mar 4, 2013, 8:41:00 AM3/4/13
to mobicent...@googlegroups.com
Hi,

The problem is not the headers. I believe the issue is in the path that Windows is returning since windows uses '\' instead of '/' as the path delimiter. I will resolve this issue for you today.

Best Regards,
Thomas Quitana

On Mon, Mar 4, 2013 at 1:38 AM, vixmemon <waqas...@gmail.com> wrote:
Please help me. I am in trouble with this path issue. 

Waqas Memon

unread,
Mar 4, 2013, 8:48:54 AM3/4/13
to mobicent...@googlegroups.com
As i said,
I have tried every path possible that windows can accept.. I have tried even linux paths on windows.. nothing works..

I had to made modifications in code to have this work.




Waqas Ali Memon
Senior Software Engineer,
Systems Ltd. Pakistan
Personal Mobile: +92 (333) 7545255
Email: waqas...@systemsltd.com
Skype: waqas_memon
Blog: http://vixmemon.blogspot.com


--
You received this message because you are subscribed to a topic in the Google Groups "mobicents-public" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobicents-public/l-MlL-OS53U/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mobicents-publ...@googlegroups.com.

Waqas Memon

unread,
Mar 4, 2013, 9:29:31 AM3/4/13
to mobicent...@googlegroups.com
I know there would probably be a good fix for this, but for a quick fix, i have changed DiskCache.java

following method.. commented line was original, un commented is my change

private URI toUri(final String file) {
   
      File f = new File(file);
      return f.toURI();
     
//    return URI.create(file);
  }





Waqas Ali Memon
Blog: http://socialsindhis.com



On Mon, Mar 4, 2013 at 6:41 PM, Thomas Quintana <quintan...@gmail.com> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "mobicents-public" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobicents-public/l-MlL-OS53U/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mobicents-publ...@googlegroups.com.

Thomas Quintana

unread,
Mar 4, 2013, 1:22:35 PM3/4/13
to mobicent...@googlegroups.com
Hi,

Great Job! This is actually a solid fix. Please change to 

private URI toUri(final String file) {
  return new File(file).toURI();
}

Then open an issue and add the patch. You will be given credit for your contribution in the RestComm 1.0.0.CR2 release. :)

Also, since it seems you're not afraid to jump in maybe you would like to become a contributor? Please visit http://www.telestax.com/opensource/

Best Regards,
Thomas Quintana

Waqas Memon

unread,
Mar 4, 2013, 2:02:57 PM3/4/13
to mobicent...@googlegroups.com
Thomas,

I have filled in Contributor's form. Please tell me where I can open the issue and provide the patch?

Thomas Quintana

unread,
Mar 4, 2013, 2:08:41 PM3/4/13
to mobicent...@googlegroups.com
Great, you can go to https://code.google.com/p/restcomm/issues/list

Good to have you aboard!

Cheers,
Thomas Quintana

vixmemon

unread,
Mar 4, 2013, 2:14:57 PM3/4/13
to mobicent...@googlegroups.com
I have reported the issue, and also posted the code in the same issue. 
I dont know how else i can provide the patch... 

Thomas Quintana

unread,
Mar 4, 2013, 2:55:25 PM3/4/13
to mobicent...@googlegroups.com
Hi,

I apologize, I will provide instructions in a bit.

Best Regards,
Thomas Quintana
Reply all
Reply to author
Forward
0 new messages