Re: [SR-Users] Dialog module problem.

2020-04-25 Thread Voip support
I would like to mention one more thing. Documentation says:

The dialog is automatically destroyed when a “BYE” is received. In case of
no “BYE”, the dialog lifetime is controlled via the default timeout (see “
default_timeout” - Section 6.6, “default_timeout (integer)”
)
and custom timeout (see “timeout_avp” - Section 6.5, “timeout_avp (string)”
).
The dialog timeout is reset each time a sequential request is processed.

But in my case i can see on wireshark BYE received from caller and callee
side but when running kamctl dialog show command the dialog is still on the
list.

Best regards,
Tom

pt., 24 kwi 2020 o 23:21 Voip support  napisał(a):

> Hello,
> i am using dialog module in-memory to get all dialogs and show in a
> website.
> I use for this kamctl dialog show which is run quite often for autorefresh.
>
> I noticed that some calls get hung on kamailio while on caller side and
> callee side calls are disconnected.
>
> I captured a wireshark trace and for same caller IP i get many good calls
> as well some bad calls (not disconnected properly). When comparing the BYE
> packets i could not notice any difference.
>
> However in the "BAD" calls it looks like the BYE from caller get stuck on
> kamailio and is not sent/forwarded to callee side. I get BYE
> retransmissions from caller and all BYE requests got stuck on kamailio.
>
> After few seconds Callee side sends BYE and that BYE also get stuck.
>
> I am wondering how to trace this issue (differently than taking a
> wireshark trace) as i dont see any difference in the good BYE and the bad
> BYE.
>
> It looks like for any reason from time to time BYE is not forwarded to the
> other side and when the other side sents BYE its also not forwarded to call
> initiator.
>
> Please give me a clue how to continue on this.
>
> I am using dispatcher module to send the calls.
>
> Best regards
> Tom
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] DMQ broadcasting crashes kamailio

2020-04-25 Thread kachi communication
Am sorry! Thanks for the information.

On Fri, Apr 24, 2020, 11:13 PM Alex Balashov 
wrote:

> On Fri, Apr 24, 2020 at 08:25:15PM -0400, kachi communication wrote:
>
> > I need someone to build a calling card switch for my company for a
> > fee.
>
> 1. This has nothing to do with the mailing list thread to which you are
> replying, and as such is quite a rude and inconsiderate intrusion;
>
> 2. There is a business mailing list specifically for commercial
> solicitations of this nature:
>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/business
>
> 3. You can find a list of providers of commercial Kamailio consulting
> and support here:
>
> https://www.kamailio.org/w/business-directory/
>
> -- Alex
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Nasida Yuriy
Thanks for the answer Sergiu, but this shoud not be static domain name. I need 
to have different domains in Via for different calls.
Is it possible ?

От: sr-users  от имени Sergiu Pojoga 

Отправлено: 24 апреля 2020 г. 21:35
Кому: Kamailio (SER) - Users Mailing List 
Тема: Re: [SR-Users] how to use get my domain name in VIA header (INVITE) 
instead of IP address.

Most common way is by using `advertise`  in the `listen` directive.

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy 
mailto:nas...@live.ru>> wrote:

Hi guys,

It sounds simple but I can not get  domain name in VIA header (INVITE) instead 
of IP address.

It is just

FS ---INVITE --> Kamailio --INVITE--> endpoint

Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get 
domain name instead ?

Please advice.

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Sergiu Pojoga
Yuriy,

The 'advertise' parameter doesn't support vars. (
https://github.com/kamailio/kamailio/issues/2137)

As an alternative, you could use a combination of xavps and corex module
function via_use_xavp_fields() -- see:

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields

If you're building this for what I think you are, most likely you think you
need this - but you actually don't. Or may be I'm wrong and your specifics
do require it.

Good luck comrade.

On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:

> Thanks for the answer Sergiu, but this shoud not be static domain name. I
> need to have different domains in Via for different calls.
> Is it possible ?
> --
> *От:* sr-users  от имени Sergiu
> Pojoga 
> *Отправлено:* 24 апреля 2020 г. 21:35
> *Кому:* Kamailio (SER) - Users Mailing List 
> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
> (INVITE) instead of IP address.
>
> Most common way is by using `advertise`  in the `listen` directive.
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>
> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>
>
> Hi guys,
>
> It sounds simple but I can not get  domain name in VIA header (INVITE)
> instead of IP address.
>
> It is just
>
> FS ---INVITE --> Kamailio --INVITE--> endpoint
>
> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
> get domain name instead ?
>
> Please advice.
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Yuriy Nasida
Comrade :)

Thanks for the advices! I will try them.

And yes, that is for inbound calls to MS teams. We just got outbound calls
working by the way (had to do a lot of kamailio tweaks honestly).
As for inbound calls to MS - I just looking at their docs
(picute attached). Looks like MS expect domain name in VIA.
I have all other sip headers like they want, but MS still ignore our
INVITEs. That is why I think how to change VIA.

If you have example of INVITE to MS teams that is working - that can help a
lot.


[image: image_2020-04-24_08-26-25.png]

On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:

> Yuriy,
>
> The 'advertise' parameter doesn't support vars. (
> https://github.com/kamailio/kamailio/issues/2137)
>
> As an alternative, you could use a combination of xavps and corex module
> function via_use_xavp_fields() -- see:
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>
> If you're building this for what I think you are, most likely you think
> you need this - but you actually don't. Or may be I'm wrong and your
> specifics do require it.
>
> Good luck comrade.
>
> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>
>> Thanks for the answer Sergiu, but this shoud not be static domain name. I
>> need to have different domains in Via for different calls.
>> Is it possible ?
>> --
>> *От:* sr-users  от имени Sergiu
>> Pojoga 
>> *Отправлено:* 24 апреля 2020 г. 21:35
>> *Кому:* Kamailio (SER) - Users Mailing List 
>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>> (INVITE) instead of IP address.
>>
>> Most common way is by using `advertise`  in the `listen` directive.
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>
>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>
>>
>> Hi guys,
>>
>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>> instead of IP address.
>>
>> It is just
>>
>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>
>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>> get domain name instead ?
>>
>> Please advice.
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Sergiu Pojoga
Well, you just posted an example of a valid INVITE. Nothing wrong with it.

Have you tried the `advertise` FQDN that was previously suggested? I
understand it would be static domain, but in most cases - it's all you
need, unless you're building a multi-tenant solution. If it's the later
option - then try xavp_via_fields, but I can tell you upfront if you do
that - then you must be doing something conceptually wrong (I'll leave the
details to my know-how and let you figure out the rest)

On Sat, Apr 25, 2020 at 1:09 PM Yuriy Nasida  wrote:

> Comrade :)
>
> Thanks for the advices! I will try them.
>
> And yes, that is for inbound calls to MS teams. We just got outbound calls
> working by the way (had to do a lot of kamailio tweaks honestly).
> As for inbound calls to MS - I just looking at their docs
> (picute attached). Looks like MS expect domain name in VIA.
> I have all other sip headers like they want, but MS still ignore our
> INVITEs. That is why I think how to change VIA.
>
> If you have example of INVITE to MS teams that is working - that can help
> a lot.
>
>
> [image: image_2020-04-24_08-26-25.png]
>
> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>
>> Yuriy,
>>
>> The 'advertise' parameter doesn't support vars. (
>> https://github.com/kamailio/kamailio/issues/2137)
>>
>> As an alternative, you could use a combination of xavps and corex module
>> function via_use_xavp_fields() -- see:
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>>
>> If you're building this for what I think you are, most likely you think
>> you need this - but you actually don't. Or may be I'm wrong and your
>> specifics do require it.
>>
>> Good luck comrade.
>>
>> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>>
>>> Thanks for the answer Sergiu, but this shoud not be static domain name.
>>> I need to have different domains in Via for different calls.
>>> Is it possible ?
>>> --
>>> *От:* sr-users  от имени Sergiu
>>> Pojoga 
>>> *Отправлено:* 24 апреля 2020 г. 21:35
>>> *Кому:* Kamailio (SER) - Users Mailing List >> >
>>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>>> (INVITE) instead of IP address.
>>>
>>> Most common way is by using `advertise`  in the `listen` directive.
>>>
>>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>>
>>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>>
>>>
>>> Hi guys,
>>>
>>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>>> instead of IP address.
>>>
>>> It is just
>>>
>>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>>
>>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>>> get domain name instead ?
>>>
>>> Please advice.
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users