Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Daniel-Constantin Mierla
On 9/17/13 2:43 PM, Steve Davies wrote: On 17 September 2013 14:23, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: For the received field, you should call fix_nated_register() when you get the REGISTER (not for the reply). Or build the value for received_avp (htt

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Steve Davies
On 17 September 2013 14:23, Daniel-Constantin Mierla wrote: > For the received field, you should call fix_nated_register() when you get > the REGISTER (not for the reply). Or build the value for received_avp ( > http://kamailio.org/docs/modules/stable/modules/registrar.html#idp84696) > manually i

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Olle E. Johansson
17 sep 2013 kl. 14:22 skrev Steve Davies : > > > > On 17 September 2013 14:02, Olle E. Johansson wrote: > > Because the REGISTER has expires=0 on the contact, so this is a > DEREGISTRATION, > and that's why you do not see any contacts in the 200 OK. > You need to check that you have contac

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Daniel-Constantin Mierla
Hello, On 9/17/13 1:52 PM, Steve Davies wrote: Hi Daniel, Olle, On 16 September 2013 21:30, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: you can call save() for 200ok received from downstream. In case you deal with nat or multiple local sockets, you need to call the

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Steve Davies
On 17 September 2013 14:02, Olle E. Johansson wrote: > > Because the REGISTER has expires=0 on the contact, so this is a > DEREGISTRATION, > and that's why you do not see any contacts in the 200 OK. > You need to check that you have contact headers before saving based on the > 200 OK. Or possibly

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Olle E. Johansson
17 sep 2013 kl. 13:52 skrev Steve Davies : > Hi Daniel, Olle, > > > On 16 September 2013 21:30, Daniel-Constantin Mierla > wrote: > > you can call save() for 200ok received from downstream. In case you deal with > nat or multiple local sockets, you need to call the functions for fixing th

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-17 Thread Steve Davies
Hi Daniel, Olle, On 16 September 2013 21:30, Daniel-Constantin Mierla wrote: > you can call save() for 200ok received from downstream. In case you deal > with nat or multiple local sockets, you need to call the functions for > fixing the registration as well as storing the local socket. > > The

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Olle E. Johansson
16 sep 2013 kl. 19:11 skrev Steve Davies : >> Why not forward the registration from the endpoint and let them handle >> authentication? >> > > I need to push the registration upstream. But I also need a local > location record since I have an Asterisk on the side that also needs > to send cal

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Daniel-Constantin Mierla
Hello, you can call save() for 200ok received from downstream. In case you deal with nat or multiple local sockets, you need to call the functions for fixing the registration as well as storing the local socket. The processing can be like: - forward register - if getting 200ok, call save() fo

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Steve Davies
On 16 September 2013 21:30, Daniel-Constantin Mierla wrote: > > you can call save() for 200ok received from downstream. In case you deal > with nat or multiple local sockets, you need to call the functions for > fixing the registration as well as storing the local socket. > > The processing can be

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Steve Davies
On 16 September 2013 19:49, Olle E. Johansson wrote: > > 16 sep 2013 kl. 19:11 skrev Steve Davies : > > Why not forward the registration from the endpoint and let them handle > authentication? > > > I need to push the registration upstream. But I also need a local > location record since I have

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Steve Davies
On 16 September 2013 21:03, Olle E. Johansson wrote: > I say you're making it too complex. Let the proxy be a proxy and force the > client to behave properly. > > > The client is an ordinary SIP phone. I don't have any control over its behaviour. But I'm not sure in what way it is behaving impr

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Olle E. Johansson
16 sep 2013 kl. 20:54 skrev Steve Davies : > > > > On 16 September 2013 19:49, Olle E. Johansson wrote: > > 16 sep 2013 kl. 19:11 skrev Steve Davies : > >>> Why not forward the registration from the endpoint and let them handle >>> authentication? >>> >> >> I need to push the registrati

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Olle E. Johansson
16 sep 2013 kl. 18:08 skrev Steve Davies : > Hi, > > I'm making slow but steady progress with my Kamailio project. > > My next task: I need to "relay" a registration to an upstream service. IE > when one or more devices registers against my local registration service, I > need to initiate a

Re: [SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Steve Davies
> Why not forward the registration from the endpoint and let them handle > authentication? > I need to push the registration upstream. But I also need a local location record since I have an Asterisk on the side that also needs to send calls to the phones via the Kamailio instance. The device o

[SR-Users] Registering "upstream" with the uac module, but with authentication

2013-09-16 Thread Steve Davies
Hi, I'm making slow but steady progress with my Kamailio project. My next task: I need to "relay" a registration to an upstream service. IE when one or more devices registers against my local registration service, I need to initiate a corresponding registration upstream. If all my local devices