Re: SipStackImpl problem
jogin <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
burbi <burbi <at> gsmbox.it> writes:
>
> Hi, i have a problem when implementing SipStackImpl. My code
> is:
>
> sipFactory = SipFactory.getInstance();
>
> properties = new Properties();
> try
> {
> properties.setProperty("javax.sip.IP_ADDRESS",(InetAddress.getLocalHost
()).getHostAddress());
> }
> catch(Exception
> inetExc){System.out.println("error"+inetExc.toString());
>
> properties.setProperty("javax.sip.TRANSPORT", "udp" );
> properties.setProperty("javax.sip.OUTBOUND_PROXY",outBound);
> properties.setProperty("gov.nist.javax.sip.THREAD_POOL_SIZE
> ","1000");
> properties.setProperty("javax.sip.RETRANSMISSON_FILTER",
> "ON");
> properties.setProperty("javax.sip.AUTOMATIC_DIALOG_SUPPORT
> ", "true");
> properties.setProperty("gov.nist.javax.sip.REENTRANT_LISTENER"
> , "false");
> properties.setProperty("gov.nist.javax.sip.MAX_SERVER_TRANSACTIONS"
> ,"100");
> properties.setProperty("javax.sip.STACK_NAME",name);
>
> try
> {
> sipStack=(SipStackImpl)sipFactory.createSipStack(properties);
> }
> catch(Exception
> err){System.out.priintln("error"+err.toString());}
>
> My output print:
> WARNING: Instances of "gov.nist.javax.sip.SipStackImpl" will
> NOT be finalized .
>
> Why?what I can make ?my values are exact
> Thanks
>
I'm a beginner with SIP but let me try to solve ur problem...........
Dont cast sipstack to sipstackimpl
try
{
sipStack=(SipStackImpl)sipFactory.createSipStack(properties);
}
INSTEAD TRY
SipStack sipStack
sipStack=sipFactory.createSipStack(properties);
ALSO DONT FORGET TO SET THE PATH before setting the properties : as
sipFactory.setPathName("gov.nist");