Jasminko Mulahusic
2004-Jul-06 01:11 UTC
[Asterisk-Users] is srv lookup being done when REGISTERing?
it looks (to me) like asterisk is not doing an SRV lookup when REGISTERing with another sip proxy. is that correct? what i am trying to achieve is to register jasko@telia.net with a proxy using register => jasko:secret:dilbert@telia.net my problem is that asterisk is doing a simple A RR lookup for the domain telia.net which is pointing to a host that is NOT the proxy for that domain (resulting in the REGISTER message ending up with the wrong host). if an SRV lookup had been done instead, the REGISTER message would have be sent to the right host. [i cannot change telia.net in the above line as that messes up the authentication instead. and i do not have control over the dns for the domain in question]. is there any other way to force the REGISTER message through a certain proxy/host? am i missing something? jasko
Senad Jordanovic
2004-Jul-06 01:36 UTC
[Asterisk-Users] is srv lookup being done when REGISTERing?
Jasminko Mulahusic wrote:> it looks (to me) like asterisk is not doing an SRV lookup when > REGISTERing with another sip proxy. is that correct? > > what i am trying to achieve is to register jasko@telia.net with a > proxy using > > register => jasko:secret:dilbert@telia.net > > my problem is that asterisk is doing a simple A RR lookup for the > domain telia.net which is pointing to a host that is NOT the proxy > for that domain (resulting in the REGISTER message ending up with the > wrong host). > > if an SRV lookup had been done instead, the REGISTER message would > have be sent to the right host. [i cannot change telia.net in the > above line as that messes up the authentication instead. and i do not > have control over the dns for the domain in question]. > > is there any other way to force the REGISTER message through a > certain proxy/host? > > am i missing something? > > jaskoThis issued has been discussed few weeks ago into great depth. Look into May/June 04 archive! Ta Senad
Jasminko Mulahusic
2004-Jul-06 02:32 UTC
[Asterisk-Users] RE: is srv lookup being done when REGISTERing?
> This issued has been discussed few weeks ago into great depth. > Look into May/June 04 archive!i have indeed looked into archives (wiki, googled using tabs, asked my barber) and what have been discussed were SRV records for outgoing calls. the same seems not to work for REGISTER. jasko
Senad Jordanovic
2004-Jul-06 02:57 UTC
[Asterisk-Users] RE: is srv lookup being done when REGISTERing?
Jasminko Mulahusic wrote:>> This issued has been discussed few weeks ago into great depth. Look >> into May/June 04 archive! > > i have indeed looked into archives (wiki, googled using tabs, asked my > barber) and what have been discussed were SRV records for outgoing > calls. > > the same seems not to work for REGISTER.Well, I have not followed that thread into great details but my understanding is that * does not support SRV records properly! If you find a concrete answer I would be interested to know about it! BTW... Jasko, gdje se ti nalazis/radis? Ta Senad
Chris A. Icide
2004-Jul-06 15:29 UTC
[Asterisk-Users] is srv lookup being done when REGISTERing?
On 03:16 AM 7/6/2004, Jasminko Mulahusic wrote: >it looks (to me) like asterisk is not doing an SRV lookup when >REGISTERing with another sip proxy. is that correct? > >what i am trying to achieve is to register jasko@telia.net with a >proxy using > >register => jasko:secret:dilbert@telia.net > >my problem is that asterisk is doing a simple A RR lookup for the >domain telia.net which is pointing to a host that is NOT the proxy for >that domain (resulting in the REGISTER message ending up with the >wrong host). > have you set srvlookup = yes ;Enable <http://www.voip-info.org/wiki-DNS+SRV>DNS SRV lookups on calls in your sip.conf file? see: http://www.voip-info.org/tiki-index.php?page=Asterisk+config+sip.conf -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040706/1ce8d8d4/attachment.htm
Jasminko Mulahusic
2004-Jul-07 05:12 UTC
[Asterisk-Users] RE: is srv lookup being done when REGISTERing?
> It's correct that neither the SRV lookup is handled correctly or > completely, nore is there in standard distro a way to register with the > proxy for a domain, if those names differ.ok. let's fix that.> It wasn't a difficult task to change this. > If there is interest I might release the patch for this as part of > another development.yes please. thank you!> > The syntax I implemented was this: > register => > user[:secret[:authname[:displayname]]][@domain]@proxyhost[:port][/contact] > > Would this fit your needs?i guess so. i cannot say for sure as i do not know how the syntax above would affect uri:s in the REGISTER message.> Or any other ideas?why is not an SRV lookup being done first for the proxyhost and if no answer received than do an A lookup for proxyhost (as explained in rfc3263)?> > There is also the option of expanding, or better redesigning, the [peer] > sections with proper and logical configuration options > and adding a register=yes flag. > Both have been tried, and have their pro's and con's > Any thoughts? >would that affect register => ? [ i was thinking of registering asterisk with a provider through which i will be able to receive incoming calls from the pstn]. what is causing problems (at least for me) is that domain and proxyhost are treated as same things. for instance, when i am transfering call thru a sip extenstion it is sending INVITEs with the uri sip:user@proxyhost to the host proxyhost instad of uri sip:user@domain to the host proxyhost. let's just make sure that the meaning of domain and proxyhost are well understood in the sip context and are treated right. jasko
Jasminko Mulahusic
2004-Jul-07 05:31 UTC
[Asterisk-Users] Re: is srv lookup being done when REGISTERing?
> have you set > > srvlookup = yes ;Enable <http://www.voip-info.org/wiki-DNS+SRV>DNS SRV > lookups on calls > > in your sip.conf file? >yes. [ i consider an A RR for a domain name pointing to the right proxy server more of a coincidence than deliberate configuration. how do you otherwise express preferences when you have several servers, failback etc. ]