On 10/16/08, Jean Deruelle <jean.d...@gmail.com> wrote:
> Oops I didn't notice it was a jain sip thread. Maybe we should move this
> conversation to Mobicents now since this becomes a bit Mobicents specific...
>
> On Thu, Oct 16, 2008 at 3:02 PM, aayush bhatnagar <
> abhatnag...@gmail.com> wrote:
>
>> I have been using JSIP in the slee sip ra.
>> This property is present in the stack code..and the sipstackimpl class
>> does a prop lookup too. The defaultrouter class then uses the address
>> resolver to get the next hop.
>> However in the slee sipra.properties file, this property is
>> missing..all others are present. I think i will need to add it there.
>> I think i will need to write the logic of dns lookup in the
>> DefaultAddressResolver.java class.
>>
>>
>> On 10/16/08, aayush bhatnagar <abhatnag...@gmail.com> wrote:
>> > Ok...thanks a ton Jean.
>> > I will need to set the stack props.
>> >
>> > On 10/16/08, Jean Deruelle <jean.d...@gmail.com> wrote:
>> >> Yes we do DNS SRV lookups of the host of the Hop as mandated by rfc3263
>> in
>> >> Mobicents Sip servlets for that.
>> >> look at
>> >>
>> http://code.google.com/p/mobicents/source/browse/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/DNSAddressResolver.java
>> >> you need to set the Address Resolver this way in the jain sip stack
>> >> ((SipStackImpl) sipStack).setAddressResolver(new
>> >> DNSAddressResolver(sipApplicationDispatcher));
>> >>
>> >> if your DNS Address Resolver does take any argument you can set it
>> through
>> >> the stack properties "gov.nist.javax.sip.ADDRESS_RESOLVER" (See the
>> >> javadoc
>> >> at
>> >>
>> http://is2.antd.nist.gov/proj/iptel/jain-sip-1.2/javadoc/gov/nist/javax/sip/SipStackImpl.html
>> >> )
>> >>
>> >> Best regards
>> >> Jean
>> >>
>> >> On Thu, Oct 16, 2008 at 2:23 PM, aayush bhatnagar <
>> >> abhatnag...@gmail.com> wrote:
>> >>
>> >>> Hi guys..
>> >>> I have an application on top of jsip. While sending out requests
>> >>> inside a dialog, i insert the saved route set. However..i get an
>> >>> exception saying..that the hop could not be resolved.
>> >>> i think this is because i know only the domain name of the next hop. I
>> >>> would need to do a dns query and resolve its IP address.
>> >>> Is there a way of doing a DNS lookup from the stack and configuring a
>> >>> DNS server for it?
>> >>> Aayush
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-un...@jain-sip.dev.java.net
>> >>> For additional commands, e-mail: users...@jain-sip.dev.java.net
>> >>>
>> >>>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-un...@jain-sip.dev.java.net
>> For additional commands, e-mail: users...@jain-sip.dev.java.net
>>
>>
>
Caused by: javax.sip.PeerUnavailableException: can't find or instantiate AddressResolver implementation: org.mobicents.servlet.sip.core.DNSAddressResolver
at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:556)
I think that it is unable to make out the constructor of the DNS address resolver class...which is something like this :17:40:51,693 ERROR [SipResourceAdaptor] error in initializing resource adaptor
javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
Also in the source code that Eduardo pointed me to, the method resolveHostbyDnsSrvLookup (...), right at the bottom of the class, is not fully implemented.
At the last resort, i tried setting the javax.sip.OUTBOUND_PROXY property to the IP address, port and transport of the S-CSCF (next hop)...but unfortunately, it also didnt work.
Requset for comments :)
Aayush
---------- Forwarded message ----------
From: aayush bhatnagar <abhatnag...@gmail.com>
Date: Fri, 17 Oct 2008 10:50:02 +0530
Subject: Fwd: [mobicents-public] Re: Configuring DNS with JSIP stack.
To: nitin...@rancoretech.com, aayush.b...@rancoretech.com,
shailend...@rancoretech.com
Tomorrow...the SIP RA will include the jsip logic minus the logic i
wud have used. Then i will need to rebuild the stack from source and
bundle it with the SIP RA and use it..
Sounds like fun ;) DNS queries are cruicial for me..maybe in the
future dns will be there either in jsip stack or the slee sip RA.
Thanks so much once again..for helping me out Jean..and Eduardo.