[sip-comm-dev] Re: [nist-sip] OUTBOUND_PROXY property in Sip Communicator


#1

Hello Hao,

Here's the problem:
javax.sip.ROUTER_PATH=net.java.sip.communicator\pCommRouter
and it should be
javax.sip.ROUTER_PATH=net.java.sip.communicator.SipCommRouter

Otherwise you shouldn't be having trouble with the SER proxy. (It's what we use here)

Hope this helps
Cheers
Emil

Hallo Emil,

i have downloaded the src code of Sip Communicator from CVS repositories
and tried to run it.

I got this exception.

Attachment is the "sip-communicator.properties" file, which i filled. I
use a SIP Proxy, namely SIP Express Router (SER, IP-Address:
195.37.77.101, Port: 5060, Transport: UDP), which is from www.iptel.org.
So i filled the "javax.sip.OUTBOUND_PROXY:" with
"195.37.77.101:5060/UDP" in properties file.

Thanks a lot for your helps.

Best regards,
Hao

------Exception------------------------------------------------------------------------------------------
net.java.sip.communicator.sip.CommunicationsException: Could not could
not create SipStack!
A possible reason is an incorrect OUTBOUND_PROXY property
(Syntax:<proxy_address:port/transport>)

    at net.java.sip.communicator.sip.SipManager.start(SipManager.java:213)

    at
net.java.sip.communicator.SipCommunicator.launch(SipCommunicator.java:153)

    at
net.java.sip.communicator.SipCommunicator.main(SipCommunicator.java:195)

Caused by: javax.sip.PeerUnavailableException: The Peer SIP Stack:
gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the
Path Name has been set.

    at javax.sip.SipFactory.createStack(Unknown Source)

    at javax.sip.SipFactory.createSipStack(Unknown Source)

    at net.java.sip.communicator.sip.SipManager.start(SipManager.java:209)

    ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

    ... 5 more

Caused by: javax.sip.PeerUnavailableException: Could not instantiate router

    at gov.nist.javax.sip.SipStackImpl.<init>(Unknown Source)

    ... 9 more

Caused by: java.lang.ClassNotFoundException:
net.java.sip.communicatorpCommRouter

    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:140)

    ... 10 more

Cheers
Emil

http://www.emcho.com

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello Emil,

thanks very much.
There is no exceptions anymore. But SIP Communicator can not register in SER. I will try to solve it at this
weekend.

Ciao
Hao

Emil Ivov schrieb:

···

Hello Hao,

Here's the problem:
javax.sip.ROUTER_PATH=net.java.sip.communicator\pCommRouter
and it should be
javax.sip.ROUTER_PATH=net.java.sip.communicator.SipCommRouter

Otherwise you shouldn't be having trouble with the SER proxy. (It's what we use here)

Hope this helps
Cheers Emil

Hallo Emil,
   
i have downloaded the src code of Sip Communicator from CVS repositories and tried to run it.
   
I got this exception.
   
Attachment is the "sip-communicator.properties" file, which i filled. I use a SIP Proxy, namely SIP Express Router (SER, IP-Address: 195.37.77.101, Port: 5060, Transport: UDP), which is from www.iptel.org.
So i filled the "javax.sip.OUTBOUND_PROXY:" with "195.37.77.101:5060/UDP" in properties file.
   
Thanks a lot for your helps.
   
Best regards,
Hao
   
------Exception------------------------------------------------------------------------------------------
net.java.sip.communicator.sip.CommunicationsException: Could not could not create SipStack!
A possible reason is an incorrect OUTBOUND_PROXY property
(Syntax:<proxy_address:port/transport>)
   
   at net.java.sip.communicator.sip.SipManager.start(SipManager.java:213)
   
   at net.java.sip.communicator.SipCommunicator.launch(SipCommunicator.java:153)
   
   at net.java.sip.communicator.SipCommunicator.main(SipCommunicator.java:195)
   
Caused by: javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
   
   at javax.sip.SipFactory.createStack(Unknown Source)
   
   at javax.sip.SipFactory.createSipStack(Unknown Source)
   
   at net.java.sip.communicator.sip.SipManager.start(SipManager.java:209)
   
   ... 2 more
   
Caused by: java.lang.reflect.InvocationTargetException
   
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   
   at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   
   ... 5 more
   
Caused by: javax.sip.PeerUnavailableException: Could not instantiate router
   
   at gov.nist.javax.sip.SipStackImpl.<init>(Unknown Source)
   
   ... 9 more
   
Caused by: java.lang.ClassNotFoundException: net.java.sip.communicatorpCommRouter
   
   at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
   
   at java.security.AccessController.doPrivileged(Native Method)
   
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   
   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
   
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
   
   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
   
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
   
   at java.lang.Class.forName0(Native Method)
   
   at java.lang.Class.forName(Class.java:140)
   
   ... 10 more
   
Cheers
Emil

http://www.emcho.com

_______________________________________________
nist-sip mailing list
nist-sip@antd.nist.gov
http://www.antd.nist.gov/mailman/listinfo/nist-sip


#3

In order to register you need to set the following properties:

net.java.sip.communicator.sip.REGISTRAR_ADDRESS
net.java.sip.communicator.sip.REGISTRAR_TRANSPORT
net.java.sip.communicator.sip.REGISTRATIONS_EXPIRATION
net.java.sip.communicator.sip.REGISTRAR_PORT

Cheers
Emil

--- Hao Wu <wu@fokus.fraunhofer.de> a �crit : > Hello Emil,

thanks very much.
There is no exceptions anymore. But SIP Communicator can not register in
SER. I will try to solve it at this
weekend.

Ciao
Hao

Emil Ivov schrieb:

>Hello Hao,
>
>Here's the problem:
>javax.sip.ROUTER_PATH=net.java.sip.communicator\pCommRouter
>and it should be
>javax.sip.ROUTER_PATH=net.java.sip.communicator.SipCommRouter
>
>Otherwise you shouldn't be having trouble with the SER proxy. (It's what we use here)
>
>Hope this helps
>Cheers
>Emil
>
>
>
>
>
>>Hallo Emil,
>>
>>
>
>
>
>>i have downloaded the src code of Sip Communicator from CVS repositories
>>and tried to run it.
>>
>>
>
>
>
>>I got this exception.
>>
>>
>
>
>
>>Attachment is the "sip-communicator.properties" file, which i filled. I
>>use a SIP Proxy, namely SIP Express Router (SER, IP-Address:
>>195.37.77.101, Port: 5060, Transport: UDP), which is from www.iptel.org.
>>So i filled the "javax.sip.OUTBOUND_PROXY:" with
>>"195.37.77.101:5060/UDP" in properties file.
>>
>>
>
>
>
>>Thanks a lot for your helps.
>>
>>
>
>
>
>>Best regards,
>>Hao
>>
>>
>
>
>

------Exception------------------------------------------------------------------------------------------

>>net.java.sip.communicator.sip.CommunicationsException: Could not could
>>not create SipStack!
>>A possible reason is an incorrect OUTBOUND_PROXY property
>>(Syntax:<proxy_address:port/transport>)
>>
>>
>
>
>
>> at net.java.sip.communicator.sip.SipManager.start(SipManager.java:213)
>>
>>
>
>
>
>> at
>>net.java.sip.communicator.SipCommunicator.launch(SipCommunicator.java:153)
>>
>>
>
>
>
>> at
>>net.java.sip.communicator.SipCommunicator.main(SipCommunicator.java:195)
>>
>>
>
>
>
>>Caused by: javax.sip.PeerUnavailableException: The Peer SIP Stack:
>>gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the
>>Path Name has been set.
>>
>>
>
>
>
>> at javax.sip.SipFactory.createStack(Unknown Source)
>>
>>
>
>
>
>> at javax.sip.SipFactory.createSipStack(Unknown Source)
>>
>>
>
>
>
>> at net.java.sip.communicator.sip.SipManager.start(SipManager.java:209)
>>
>>
>
>
>
>> ... 2 more
>>
>>
>
>
>
>>Caused by: java.lang.reflect.InvocationTargetException
>>
>>
>
>
>
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>
>>
>
>
>
>> at
>>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>>
>
>
>
>> at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

>>
>>
>
>
>
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>
>>
>
>
>
>> ... 5 more
>>
>>
>
>
>
>>Caused by: javax.sip.PeerUnavailableException: Could not instantiate router
>>
>>
>
>
>
>> at gov.nist.javax.sip.SipStackImpl.<init>(Unknown Source)
>>
>>
>
>
>
>> ... 9 more
>>
>>
>
>
>
>>Caused by: java.lang.ClassNotFoundException:
>>net.java.sip.communicatorpCommRouter
>>
>>
>
>
>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>>
>>
>
>

=== message truncated ===

···

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hallo Emil

Yes, i have done these four properties in sip-communicator.properties file.

···

-----------
#SIP properties
net.java.sip.communicator.sip.STACK_PATH=gov.nist
net.java.sip.communicator.sip.PUBLIC_ADDRESS=sip:hao@iptel.org
net.java.sip.communicator.sip.DISPLAY_NAME=Hao
net.java.sip.communicator.sip.TRANSPORT=UDP
net.java.sip.communicator.sip.PREFERRED_LOCAL_PORT=5060
net.java.sip.communicator.sip.REGISTRAR_ADDRESS=195.37.77.101
net.java.sip.communicator.sip.REGISTRAR_TRANSPORT=UDP
net.java.sip.communicator.sip.REGISTRATIONS_EXPIRATION=3600
net.java.sip.communicator.sip.REGISTRAR_PORT=5060
------------
Following is the fragment of the console.logEntry() and console.logExit().

thanks a lot for your helps.
Ciao
Hao

-------------
3885 [main] TRACE communicator.SipCommunicator - sipManager appears to be successfully started

3895 [main] TRACE sip.SipManager - [entry] register

3895 [main] TRACE sip.RegisterProcessing - [entry] register

3895 [main] TRACE sip.SipManager - [entry] getFromHeader

4015 [main] DEBUG sip.SipManager - Generated from header: From: "Hao" <sip:hao@iptel.org:19941;transport=udp>;tag=30866355

4015 [main] TRACE sip.SipManager - [exit] getFromHeader

4015 [main] TRACE sip.SipManager - [entry] fireRegistering

4015 [main] DEBUG sip.SipManager - registering with address="Hao" <sip:hao@iptel.org:19941;transport=udp>

4015 [main] TRACE communicator.SipCommunicator - [entry] registering

4035 [main] TRACE communicator.SipCommunicator - [exit] registering

4035 [main] TRACE sip.SipManager - [exit] fireRegistering

4266 [main] TRACE sip.SipManager - [entry] getLocalViaHeaders

4276 [main] DEBUG sip.SipManager - generated via headers:Via: SIP/2.0/UDP 192.168.235.36:19941

4276 [main] TRACE sip.SipManager - [exit] getLocalViaHeaders

4276 [main] TRACE sip.SipManager - [entry] getMaxForwardsHeader

4276 [main] DEBUG sip.SipManager - generate max forwards: Max-Forwards: 70

4276 [main] TRACE sip.SipManager - [exit] getMaxForwardsHeader

4426 [main] TRACE sip.SipManager - [entry] getContactHeader

4426 [main] TRACE sip.SipManager - [entry] getLocalHostAddress

4426 [main] TRACE common.Utils - [entry] getProperty

4426 [main] TRACE common.Utils - [exit] getProperty

4426 [main] DEBUG sip.SipManager - returning addres=192.168.235.36

4426 [main] TRACE sip.SipManager - [exit] getLocalHostAddress

4446 [main] DEBUG sip.SipManager - generated contactHeader:Contact: "Hao" <sip:192.168.235.36:19941;transport=udp>

4446 [main] TRACE sip.SipManager - [exit] getContactHeader

hop = 195.37.77.101:5060/udp

4486 [main] DEBUG sip.RegisterProcessing - sent request= REGISTER sip:195.37.77.101:5060;transport=udp SIP/2.0

Call-ID: 2348ffa7ef25d1cc15c41799a62249ce@192.168.235.36

CSeq: 1 REGISTER

From: "Hao" <sip:hao@iptel.org:19941;transport=udp>;tag=30866355

To: "Hao" <sip:hao@iptel.org:19941;transport=udp>

Via: SIP/2.0/UDP 192.168.235.36:19941;branch=z9hG4bK03a9fc79b8b9e4100dd9171fdd14e109

Max-Forwards: 70

Expires: 3600

Contact: "Hao" <sip:192.168.235.36:19941;transport=udp>

Content-Length: 0

4486 [main] TRACE sip.RegisterProcessing - [entry] scheduleReRegistration

4486 [main] TRACE sip.RegisterProcessing - [exit] scheduleReRegistration

4486 [main] TRACE sip.RegisterProcessing - [exit] register

4486 [main] TRACE sip.SipManager - [exit] register

4486 [main] TRACE communicator.SipCommunicator - [exit] launch

4486 [main] TRACE communicator.SipCommunicator - [exit] main

Emil Ivov schrieb:

In order to register you need to set the following properties:

net.java.sip.communicator.sip.REGISTRAR_ADDRESS
net.java.sip.communicator.sip.REGISTRAR_TRANSPORT
net.java.sip.communicator.sip.REGISTRATIONS_EXPIRATION
net.java.sip.communicator.sip.REGISTRAR_PORT

Cheers
Emil

--- Hao Wu <wu@fokus.fraunhofer.de> a �crit : > Hello Emil,

thanks very much.
There is no exceptions anymore. But SIP Communicator can not register in SER. I will try to solve it at this
weekend.

Ciao
Hao

Emil Ivov schrieb:

Hello Hao,

Here's the problem:
javax.sip.ROUTER_PATH=net.java.sip.communicator\pCommRouter
and it should be
javax.sip.ROUTER_PATH=net.java.sip.communicator.SipCommRouter

Otherwise you shouldn't be having trouble with the SER proxy. (It's what we use here)

Hope this helps
Cheers Emil

Hallo Emil,
  
i have downloaded the src code of Sip Communicator from CVS repositories and tried to run it.
  
I got this exception.
  
Attachment is the "sip-communicator.properties" file, which i filled. I use a SIP Proxy, namely SIP Express Router (SER, IP-Address: 195.37.77.101, Port: 5060, Transport: UDP), which is from www.iptel.org.
So i filled the "javax.sip.OUTBOUND_PROXY:" with "195.37.77.101:5060/UDP" in properties file.
  
Thanks a lot for your helps.
  
Best regards,
Hao
  
------Exception------------------------------------------------------------------------------------------
     
net.java.sip.communicator.sip.CommunicationsException: Could not could not create SipStack!
A possible reason is an incorrect OUTBOUND_PROXY property
(Syntax:<proxy_address:port/transport>)
  
  at net.java.sip.communicator.sip.SipManager.start(SipManager.java:213)
  
  at net.java.sip.communicator.SipCommunicator.launch(SipCommunicator.java:153)
  
  at net.java.sip.communicator.SipCommunicator.main(SipCommunicator.java:195)
  
Caused by: javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
  
  at javax.sip.SipFactory.createStack(Unknown Source)
  
  at javax.sip.SipFactory.createSipStack(Unknown Source)
  
  at net.java.sip.communicator.sip.SipManager.start(SipManager.java:209)
  
  ... 2 more
  
Caused by: java.lang.reflect.InvocationTargetException
  
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  
  at
       

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     

  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  
  ... 5 more
  
Caused by: javax.sip.PeerUnavailableException: Could not instantiate router
  
  at gov.nist.javax.sip.SipStackImpl.<init>(Unknown Source)
  
  ... 9 more
  
Caused by: java.lang.ClassNotFoundException: net.java.sip.communicatorpCommRouter
  
  at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
  

=== message truncated ===

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

_______________________________________________
nist-sip mailing list
nist-sip@antd.nist.gov
http://www.antd.nist.gov/mailman/listinfo/nist-sip