Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
Hi, this is not a question related to Kamailio. Please ask in Asterisk maillist by also providing a more detailed explanation of your issue. Regards.
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Lucas
On Tue, Jul 6, 2010 at 6:51 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
Hi, this is not a question related to Kamailio. Please ask in Asterisk maillist by also providing a more detailed explanation of your issue. Regards.
-- Iñaki Baz Castillo ibc@aliax.net
Lucas,
When you restart Asterisk, all registration information is lost. The clients must resend their registration information. This has nothing to do with Kamailio, all it does is forward the registrations (as you said). Unfortunately, on an Asterisk reload, all that information is lost.
For further information please ask in the Asterisk mailing list.
Michael Young
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Lucas Alvarez Sent: Tuesday, July 06, 2010 4:00 PM To: Iñaki Baz Castillo Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio integration - Registration issue
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Lucas
On Tue, Jul 6, 2010 at 6:51 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
Hi, this is not a question related to Kamailio. Please ask in Asterisk maillist by also providing a more detailed explanation of your issue. Regards.
-- Iñaki Baz Castillo ibc@aliax.net
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.830 / Virus Database: 271.1.1/2985 - Release Date: 07/06/10 01:36:00
Thank you Michael for you answer, but does kamailio have any method to resend all the registrations again? In the asterisk list will appear someone else thinking that this a competition and will tell me go and ask to kamailio list. It has more sense that kamailio could resend all the registration than making an script from asterisk side, connect to database, check who is registered and fake all the registrations, that is the reason I'm asking here, but it's ok, if I had to ask to the asterisk list if kamailio has such method I will, I hope Iñaki doesn't popup to told to come here :) Regards.
Lucas
On Tue, Jul 6, 2010 at 7:23 PM, Michael Young myoung@redmonsters.net wrote:
Lucas,
When you restart Asterisk, all registration information is lost. The clients must resend their registration information. This has nothing to do with Kamailio, all it does is forward the registrations (as you said). Unfortunately, on an Asterisk reload, all that information is lost.
For further information please ask in the Asterisk mailing list.
Michael Young
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Lucas Alvarez Sent: Tuesday, July 06, 2010 4:00 PM To: Iñaki Baz Castillo Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio integration - Registration issue
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Lucas
On Tue, Jul 6, 2010 at 6:51 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
Hi, this is not a question related to Kamailio. Please ask in Asterisk maillist by also providing a more detailed explanation of your issue. Regards.
-- Iñaki Baz Castillo ibc@aliax.net
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.830 / Virus Database: 271.1.1/2985 - Release Date: 07/06/10 01:36:00
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Tuesday 06 July 2010 22:44:29 Lucas Alvarez wrote:
Thank you Michael for you answer, but does kamailio have any method to resend all the registrations again?
No, also if you are asking that, that means that you don't know how SIP works, so please first take a time to investigate how SIP works before doing that kind of answers.
In the asterisk list will appear someone else thinking that this a competition and will tell me go and ask to kamailio list.
That would mean that you have reach someone ALSO without knowleadge about how SIP works, that's all.
It has more sense that kamailio could resend all the registration than making an script from asterisk side, connect to database, check who is registered and fake all the registrations, that is the reason I'm asking here, but it's ok, if I had to ask to the asterisk list if kamailio has such method I will, I hope Iñaki doesn't popup to told to come here :)
It have no sense at all ... Kamailio only forward your request, it could not "re-register" or "fake-register" your UAC's agains your Asterisk boxes without knowing all the passwords of the UAC's, also it would have to behave as every UAC that was registered (that means, faking it's IP's, contact uri's, ports, etc.), because REGISTERing it's not only a matter of seding a request, you must take into account the replies and so on.
So, again ... please, FIRST read, read, re-read, re-re-read, about how SIP works, then come back with a smarter question and i'm sure you will get the help you need.
Best regards
On 07/06/2010 05:44 PM, Lucas Alvarez wrote:
Thank you Michael for you answer, but does kamailio have any method to resend all the registrations again?
No. Kamailio is just a proxy in the scenario you are describing; all it can do is act on SIP messages it receives by forwarding them to the appropriate endpoint. It cannot originate these messages, store them, re-apply them, or anything of that nature whatsoever. It just routes them.
All,
I have SER sitting in front of Asterisk. It is useful to me for Call Forking purposes as I do not think Asterisk handle multiple registered endpoints (against a single username) However, since both SER and Asterisk are Registrars, and Asterisk need to know register info to work properly, I need to forward Registers from SER to Asterisk.... It works ok, but it means I have to turn off the RFC2617 auth mech on Asterisk.
Rupert
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Michael Young Sent: 06 July 2010 22:24 To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio integration - Registration issue
Lucas,
When you restart Asterisk, all registration information is lost. The clients must resend their registration information. This has nothing to do with Kamailio, all it does is forward the registrations (as you said). Unfortunately, on an Asterisk reload, all that information is lost.
For further information please ask in the Asterisk mailing list.
Michael Young
-----Original Message----- From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Lucas Alvarez Sent: Tuesday, July 06, 2010 4:00 PM To: Iñaki Baz Castillo Cc: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio integration - Registration issue
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Lucas
On Tue, Jul 6, 2010 at 6:51 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
Hi, this is not a question related to Kamailio. Please ask in Asterisk maillist by also providing a more detailed explanation of your issue. Regards.
-- Iñaki Baz Castillo ibc@aliax.net
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.830 / Virus Database: 271.1.1/2985 - Release Date: 07/06/10 01:36:00
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 07/07/2010 03:37 AM, rupert.organ@bt.com wrote:
I have SER sitting in front of Asterisk. It is useful to me for Call Forking purposes as I do not think Asterisk handle multiple registered endpoints (against a single username)
You are correct.
However, since both SER and Asterisk are Registrars, and Asterisk need toknow register info to work properly, I need to forward Registers from SER to Asterisk....
There is an element of this reasoning that is flawed: it is not "since" SER and Asterisk are "both" registrars. In this scenario, SER is not acting a UAS; it is not the logical target of the REGISTER request. Therefore, it is not behaving as a "registrar." Only Asterisk is the registrar in that scenario.
There is nothing in RFC 3261 preventing you from fronting a registrar with a proxy and statefully relaying REGISTER requests; in principle, a proxy can forward any request. However, proxies (and UASs) cannot add Record-Route headers to the request, and since REGISTER does not establish a dialog, route sets have no meaning in relation to it anyhow. This means there is no way to establish a pre-determined route set in any scenario ("trapezoid") involving one or more proxies between the registrant and the registrar.
The solution to that problem is Path (RFC 3327).
On 6 July 2010 21:59, Lucas Alvarez lucasaa@gmail.com wrote:
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Lucas
Lucas,
Where did you get this attitude from?? Iñaki was answering your question.
Sounds like an Asterisk issue to me also. If you have a endpoint registered directly on the Asterisk what happens when you restart?
Regards.
On Tuesday 06 July 2010 21:59:44 Lucas Alvarez wrote:
Iñaki, if you don't know the answer, please don't answer with trash, my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again? Do you understand now? Regards
Hello Lucas, Please, if you don't know about what you are speaking, don't go agains the one who gave you the indications to the right path.
Iñaki it's ok, on you scenario, that question is ALL RELATED to Asterisk, not to Kamailio, that it's acting only as a forwarder.
Best regards
2010/7/6 Lucas Alvarez lucasaa@gmail.com:
Iñaki, if you don't know the answer, please don't answer with trash,
You can consider "trash" my response as I can consider "trash" your question.
my question is all related with kamailio, is an integration of two software, since kamailio forward the registrations request to asterisk what happen when asterisk has to restart, how do I get those registrations again?
Do you understand now?
And do you understand that your issues has *nothing* to do with Kamailio but just with Asterisk?:
- Asterisk shouldn't loss the registration information after restart/reload as it stores it in /var/lib/asterisk/astdb file, so recheck your realtime configuration (if you use it).
- You would have the same problem in case there is not a Kamailio in front of your Asterisk, have you checked it at least?
- As you insist on "kamailio resending registration to asterisk" I strongly recommend you to read the RFC 3261 to understand how SIP works.
Am 06.07.2010 20:48, schrieb Lucas Alvarez:
Hi, I new with kamailio, I've been able to integrate kamailio 3.02 with asterisk 1.6. The only issue I'm having is if I have to restart asterisk( for some config update) I loose all the sip registration in asterisk, is there any way of fixing this?
which protocol do you use between Kamailio and Asterisk? UDP? TCP? TLS?
Asterisk does not remember registrations when registration was peformed via TCP/TLS
regards klaus