Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
Thank you Fred, Yes I think I would go for that. On Sun, Jul 14, 2019 at 6:06 PM Fred Posner wrote: > All of these seem like hacks to resolve the problem of you not being able > to resolve the hostname. > > Perhaps there’s a docker setting or dns you can use to provide stability > or

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
Thank you David, I would try that later. On Sun, Jul 14, 2019 at 6:06 PM Fred Posner wrote: > All of these seem like hacks to resolve the problem of you not being able > to resolve the hostname. > > Perhaps there’s a docker setting or dns you can use to provide stability > or investigate why

[SR-Users] opt_reply(): called for non-OPTIONS request

2019-07-14 Thread Alexandru Covalschi
Hello list, if KSR.is_OPTIONS() and KSR.is_myself_ruri(): KSR.x.modf("options_reply"); exit(); with a valid URI (no username) gives the subj output (opt_reply(): called for non-OPTIONS request) How could that be? Python KEMI, 5.2.3, docker.

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread David Villasmil
If the dns resolution fails, don’t you get the event route dispatcher:dst-down fired? You could use that route to remove the entry from the dispatcher list. David On Sun, 14 Jul 2019 at 12:29, Amir wrote: > Thank you, Maybe I should develop a health check mechanism and save the > result in

Re: [SR-Users] Wrong $rm value

2019-07-14 Thread Alexandru Covalschi
Forgot to mention that I do a t_newtran() before t_suspend Regards, Alexandru Covalschi VoIP Engineer and System Administrator tel: +37367367850 > 14 июля 2019 г., в 14:40, Alexandru Covalschi <568...@gmail.com> написал(а): > > Hello list, > > I use kamailio

Re: [SR-Users] Check if an INVITE comes from uac_reg endpoint

2019-07-14 Thread Brandon Armstead
Perfect :) On Sat, Jul 13, 2019 at 10:51 PM Diogo Hartmann wrote: > Thank you Brandon. > > We did it with the uac_reg_lookup function. It worked fine :) > > -- > > > > *Diogo Hartmann* > *Co-founder @ 3C Plus * > Escritório: 11 4063-7921 ext. 6299 > Celular: 41

[SR-Users] Wrong $rm value

2019-07-14 Thread Alexandru Covalschi
Hello list, I use kamailio 5.2.3 from repo's on stretch in docker. I use python KEMI + async and encountered weird behaviour: after t_continue $rm shows OPTIONS instead of REGISTER/INVITE. I wonder if that's correct behaviour, because for me it looks like a bug. Repeating is easy - just check

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
Thank you, Maybe I should develop a health check mechanism and save the result in kamailio db and after that: kamctl dispatcher reload On Sun, Jul 14, 2019 at 3:23 PM Sergey Safarov wrote: > as option you can reload dispatcher table instead of kamailio restart. > kamctl dispatcher reload > > >

Re: [SR-Users] kamailio as ICSCF connection with FHoss

2019-07-14 Thread Mojtaba
Sure, No Problem Thank you On Sun, Jul 14, 2019 at 1:22 PM Henning Westerholt wrote: > Hello Mojtaba, > > thank you. If there is something that should be added to the kamailio.cfg > for this implementation (maybe some comments) just open a pull request. > > Cheers, > > Henning > Am 14.07.19 um

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Sergey Safarov
as option you can reload dispatcher table instead of kamailio restart. kamctl dispatcher reload On Sun, Jul 14, 2019 at 1:27 PM Amir wrote: > Sorry for mistyping : > I can make it work like this: > Start Kamailio first Then start asterisk containers Then restart > *KAMAILIO* > > > On Sun, Jul

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
Sorry for mistyping : I can make it work like this: Start Kamailio first Then start asterisk containers Then restart *KAMAILIO* On Sun, Jul 14, 2019 at 2:50 PM Amir wrote: > Hi Henning > Thank you for clearing that up, I have 3 problem which you have mentioned > 2 of them: > - because of the

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
Hi Henning Thank you for clearing that up, I have 3 problem which you have mentioned 2 of them: - because of the missing DNS entry your Kamailio would not (re)start properly: I tried flag 16 as you mentioned but still dose not work 1 sip:asterisk:7060 16 1 sip:asterisk2:7060 16 1

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Henning Westerholt
Hello Amir, what is your issue exactly: - because of the missing DNS entry the dispatcher module would not detect the asterisk server as "down" - because of the missing DNS entry your Kamailio would not (re)start properly You could try with flag 16 to disable DNS resolution at startup in your

Re: [SR-Users] kamailio as ICSCF connection with FHoss

2019-07-14 Thread Henning Westerholt
Hello Mojtaba, thank you. If there is something that should be added to the kamailio.cfg for this implementation (maybe some comments) just open a pull request. Cheers, Henning Am 14.07.19 um 10:28 schrieb Mojtaba: Hello Henning, According the 3GPP standards, the IMPU template would be

Re: [SR-Users] kamailio as ICSCF connection with FHoss

2019-07-14 Thread Henning Westerholt
Hello Maryam, don't worry. Good that you found it and that is sorted out in the end. Cheers, Henning Am 14.07.19 um 09:03 schrieb Maryam Baghdadi: Hello Henning, I checked every thing in my scenario again and I think Mojtaba was right. I modified icscf.cfg file and changed $ru before calling

Re: [SR-Users] kamailio as ICSCF connection with FHoss

2019-07-14 Thread Mojtaba
Hello Henning, According the 3GPP standards, the IMPU template would be started with '+', for this reason in icscf, we have to add '+' to $rU, But in FHOSS the is not any IMPU with '+' prefix as default. There is two way to solve this issue: 1) Add some new IMPU/IMPI according the 3GPP standards.

Re: [SR-Users] kamailio as ICSCF connection with FHoss

2019-07-14 Thread Mojtaba
Yes, In the request that you make, there isn't any '+', but when the request come to icscf, the '+' is added to request. After that the LIR message is issued. If you have look on kamailio.cfg in icscf node, the code is appear: # - request routing logic ---

Re: [SR-Users] Kamailio Asterisk integration with docker DNS Problem

2019-07-14 Thread Amir
I do not have a DNS server, Docker User-defined networks has it's own built in DNS server, The problem is when I stop a container its DNS record would be deleted and therefore kamailio server could not check server health. I think if I could tell kamailio server that IF you did not find a DNS