Next try.
Right now I can connect to Asterisk and hear sound, I can disconnect from
softphone, Asterisk can't disconnect call with hangup(). According to
screenshot, 10.0.90.12 and 10.0.116.2 is Kamailio, 10.0.116.11 - Asterisk
wt., 27 sie 2019 o 23:34 przeqpiciel <przeqpiciel(a)gmail.com> napisał(a):
Nope, its broken again. I am probably too stupid for
this.
wt., 27 sie 2019 o 23:12 przeqpiciel <przeqpiciel(a)gmail.com> napisał(a):
> Right now it works.
> I added additional network card to my virtual kamailio, then put this NIC
> to asterisks network also i configured multiple listen and mhomed=1
>
> wt., 27 sie 2019 o 20:54 Alex Balashov <abalashov(a)evaristesys.com>
> napisał(a):
>
>> I can see the temptation, but that’s actually looking at it backwards.
>>
>> If you have multiple listeners, e.g.
>>
>> listen=udp:x.x.x.x:5060
>> listen=udp:y.y.y.y:5060
>>
>> or multiple listeners on the same interface with multiple ports, if it’s
>> NAT’d AWS-style, e.g.
>>
>> listen=udp:x.x.x.x:5060
>> listen=udp:x.x.x.x:5080 advertise “y.y.y.y:5080”
>>
>> you can steer the traffic by manipulating the $fs pseudovar:
>>
>>
>>
https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#fs_-_forced_s…
>>
>> or, in the case of bridging between two disparate networks as formerly,
>> just make use of automated outgoing interface discovery behaviour:
>>
>>
https://www.kamailio.org/wiki/cookbooks/5.2.x/core#mhomed
>>
>> Assuming you have the ‘enable_double_rr’ parameter enabled, which you
>> should:
>>
>>
>>
https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.p.enable_double_…
>>
>> you will find that the Record-Route headers automatically contain the
>> correct ingress and egress listener addresses in the right directions at
>> the right times, and you don’t need to do any byzantine management of their
>> content. :-)
>>
>> —
>> Sent from mobile, with due apologies for brevity and errors.
>>
>> On Aug 27, 2019, at 9:43 AM, Sergiu Pojoga <pojogas(a)gmail.com> wrote:
>>
>> Do you have: mhomed=1 ?
>>
>> On Tue, Aug 27, 2019 at 8:52 AM przeqpiciel <przeqpiciel(a)gmail.com>
>> wrote:
>>
>>> Thank you for the reply. It little help for me, Right now probably I
>>> have to make logic which change record route depends on it where Kamailio
>>> send packets internal / outside
>>>
>>> pon., 26 sie 2019 o 22:21 Alex Balashov <abalashov(a)evaristesys.com>
>>> napisał(a):
>>>
>>>> Hi,
>>>>
>>>> You may wish to have a look at the ‘advertise’ directive to the core
>>>> listen= parameter:
>>>>
>>>>
https://www.kamailio.org/wiki/cookbooks/5.2.x/core#listen
>>>>
>>>> For more fine-grained control, record_route_preset() takes an argument:
>>>>
>>>>
>>>>
https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.f.record_route_p…
>>>>
>>>> But the first approach is better and more comprehensive for your
>>>> situation, since it also covers Via.
>>>>
>>>> — Alex
>>>>
>>>> —
>>>> Sent from mobile, with due apologies for brevity and errors.
>>>>
>>>> On Aug 26, 2019, at 4:12 PM, przeqpiciel <przeqpiciel(a)gmail.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>> I have some issue and dont have enought knowledge to fix it. I have
>>>> simple infrastructure.
>>>> Internet -> router (NAT) -> kamailio
>>>> -> asterisk
>>>> Kamailio and Asterisk are inside the network and Kamailio places his
>>>> own private address in the "record-route" headers instead of
who's public.
>>>> There is configuration to said to him what IP is proper ?
>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users(a)lists.kamailio.org
>>>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users(a)lists.kamailio.org
>>>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users(a)lists.kamailio.org
>>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users(a)lists.kamailio.org
>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users(a)lists.kamailio.org
>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>