Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-28 Thread Iñaki Baz Castillo
2009/9/27 Olle E. Johansson : >> As far as I understood, the original mail talks about Kamailio as proxy >> and >> Asterisk as registrar behind the proxy. Asterisk is not ready for that >> scenario. > > Well, if Asterisk has proper support for outbound proxys compiled, it will > work, > but only wi

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-27 Thread Olle E. Johansson
26 sep 2009 kl. 20.22 skrev Iñaki Baz Castillo: El Jueves, 24 de Septiembre de 2009, Daniel-Constantin Mierla escribió: Hello, On 24.09.2009 12:10 Uhr, catalina oancea wrote: Hi, In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-26 Thread Iñaki Baz Castillo
El Sábado, 26 de Septiembre de 2009, Daniel-Constantin Mierla escribió: > On 26.09.2009 21:48 Uhr, Iñaki Baz Castillo wrote: > > El Sábado, 26 de Septiembre de 2009, Daniel-Constantin Mierla escribió: > >> it was about possibility to consider "register" as dialog and try to > >> route next registra

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-26 Thread Daniel-Constantin Mierla
On 26.09.2009 21:48 Uhr, Iñaki Baz Castillo wrote: El Sábado, 26 de Septiembre de 2009, Daniel-Constantin Mierla escribió: it was about possibility to consider "register" as dialog and try to route next registrations without doing dns. Ok. Then she would do better by doing fixed rout

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-26 Thread Iñaki Baz Castillo
El Sábado, 26 de Septiembre de 2009, Daniel-Constantin Mierla escribió: > it was about possibility to consider "register" as dialog and try to > route next registrations without doing dns. Ok. Then she would do better by doing fixed routing of REGISTER requests (based on From for example). She c

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-26 Thread Daniel-Constantin Mierla
On 26.09.2009 20:22 Uhr, Iñaki Baz Castillo wrote: [...] - the provider should add its own record route to REGISTER reply -- if it is kamailio, that is simple via append_to_reply() from textops, just before save() call. This "hack" would work just in both, proxy and registrar, are Kamai

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-26 Thread Iñaki Baz Castillo
El Jueves, 24 de Septiembre de 2009, Daniel-Constantin Mierla escribió: > Hello, > > On 24.09.2009 12:10 Uhr, catalina oancea wrote: > > Hi, > > > > In my scenario kamailio is not a registrar, it's just a proxy > > forwarding requests from asterisk to the provider. > > I see. > > As Juha said, R

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-25 Thread Daniel-Constantin Mierla
Hello, On 25.09.2009 17:16 Uhr, Olle E. Johansson wrote: [...] In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider. I see. As Juha said, REGISTER does not create a real dialog, since the contact in 200OK is the address of publis

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-25 Thread catalina oancea
As I said earlier, I misunderstood some things. sorry for the trouble. 2009/9/25 Olle E. Johansson : > > 24 sep 2009 kl. 12.46 skrev Daniel-Constantin Mierla: > >> Hello, >> >> On 24.09.2009 12:10 Uhr, catalina oancea wrote: >>> >>> Hi, >>> >>> In my scenario kamailio is not a registrar, it's jus

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-25 Thread Olle E. Johansson
24 sep 2009 kl. 12.46 skrev Daniel-Constantin Mierla: Hello, On 24.09.2009 12:10 Uhr, catalina oancea wrote: Hi, In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider. I see. As Juha said, REGISTER does not create a real dialog, si

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-25 Thread Olle E. Johansson
24 sep 2009 kl. 12.04 skrev catalina oancea: According to rfc3261, REGISTER is a dialog. Just to seek clarity, I started reading the good old document again. In section 10.2 I found this very clear statement: "A REGISTER request does not establish a dialog." /O _

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-25 Thread Olle E. Johansson
24 sep 2009 kl. 12.04 skrev catalina oancea: According to rfc3261, REGISTER is a dialog. As I have been discussing this many times and you seem so sure, can you please point out where this is documented? I've seen both kinds of implementations, some that assume that REGISTER/40x and the

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Juha Heinanen
catalina oancea writes: > I understand your point, but let's say the dialog is created: > > asteriskkamailioprovider(hostname) > >dns lookup > > INVITE

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Daniel-Constantin Mierla
Hello, On 24.09.2009 13:22 Uhr, catalina oancea wrote: Hi again I probably misunderstood the RFC. I misunderstood your first email, I though is about registration refreshes (send updates to same server). Not the authentication case, because there is no dialog created in this situation, not

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread catalina oancea
I understand your point, but let's say the dialog is created: asteriskkamailioprovider(hostname) >dns lookup > INVITE INVITE <

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Juha Heinanen
catalina oancea writes: > I probably misunderstood the RFC. But an INVITE does create a dialog, > and the situation: > > asteriskkamailioprovider(hostname) > >dns lookup > > INVITE 1

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread catalina oancea
Hi again I probably misunderstood the RFC. But an INVITE does create a dialog, and the situation: asteriskkamailioprovider(hostname) >dns lookup > INVITE 1 IN

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Klaus Darilion
Daniel-Constantin Mierla schrieb: Hello, On 24.09.2009 12:10 Uhr, catalina oancea wrote: Hi, In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider. I see. As Juha said, REGISTER does not create a real dialog, since the contact i

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Klaus Darilion
catalina oancea schrieb: According to rfc3261, REGISTER is a dialog. Where did you found this. The second REGISTER does not have a to-tag - thus it is clearly out-of-dialog. My problem is: if this hostname resolves to more than one IP addresses, and the 401 comes from IP1, then the second R

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Daniel-Constantin Mierla
Hello, On 24.09.2009 12:10 Uhr, catalina oancea wrote: Hi, In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider. I see. As Juha said, REGISTER does not create a real dialog, since the contact in 200OK is the address of publisher n

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread catalina oancea
Hi, In my scenario kamailio is not a registrar, it's just a proxy forwarding requests from asterisk to the provider. Thanks, Catalina 2009/9/24 Daniel-Constantin Mierla : > Hello, > > On 24.09.2009 11:47 Uhr, catalina oancea wrote: >> >> Hi all, >> >> >> I tested the following scenario: >> >> a

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Daniel-Constantin Mierla
Hello, On 24.09.2009 11:47 Uhr, catalina oancea wrote: Hi all, I tested the following scenario: astreiskkamailioprovider(hostname) >dns lookup > REGISTER 1 RE

Re: [Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread catalina oancea
According to rfc3261, REGISTER is a dialog. My problem is: if this hostname resolves to more than one IP addresses, and the 401 comes from IP1, then the second REGISTER goes to IP2, then IP will continue to reject the message etc. Also, I am not completely sure but I think the same problem occurs

[Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread Juha Heinanen
catalina oancea writes: > It seems that kamailio does dns lookup again when receiving REGISTER > 2, although both registers are part of the same dialog. Is this the > expected behavior? i don't think that register requests establish any dialogs. when registrar receives the second register, it

[Kamailio-Users] DNS lookup for requests within dialog

2009-09-24 Thread catalina oancea
Hi all, I tested the following scenario: astreiskkamailioprovider(hostname) >dns lookup > REGISTER 1 REGISTER 1 <