Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-02 Thread Jeff Pyle
Right.  Something like this:

if (list_hdr_has_option("Allow", "REFER"))
list_hdr_remove_option("Allow", "REFER");

We've used blind transfer successfully.  If I remember correctly it will
utilize re-INVITEs, possibly with Replaces.  I don't know that we've tested
attended transfer.

OpenSIPS is just a proxy (in this case), so it will pass the REFER just
fine.  You'd probably have to do a lot of cleanup of the Refer-to value to
make it usable in this case...I haven't checked.  It all depends on what
you have upstream and what it can handle.  We opted to strip REFER for
simplicity.


- Jeff


On Wed, Jun 2, 2021 at 5:38 AM Miha via Users 
wrote:

> yes. Thank you.
>
> is there any way to get also attended transfer working?
>
> Johan De Clercq je 6/2/2021 ob 11:21 AM napisal:
>
> remove Refer from your supported methods.
> Do note that attended transfer will not work in this case.
>
> wkr,
>
> Op wo 2 jun. 2021 om 10:15 schreef Miha via Users <
> users@lists.opensips.org>:
>
>> Hello
>>
>> i manage to fix this. I did not do t_relay() also seq Invites, after this
>> everything works ok.
>>
>> Just on question, regarding transfers, i see that MS Teams send REFER in
>> which trafter is defined. How do you deal with this? You do not allow REFER
>> from MS teams and hope that MS teams will send new INVITE?
>>
>>
>> thank you
>> miha
>>
>> Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:
>>
>> Miha,
>>
>> First, do you need to use "mtsbc.test.com:5060" in the first
>> record_route_preset() param?  Can you use the IP address of your proxy
>> instead?  FQDNs are legal of course, but outside of MS Teams'
>> implementation, they're rarely required.  It's just another thing to go
>> wrong.  Especially while testing.
>>
>> The ACK to the 200 OK is a sequential (in-dialog) request.  It's not part
>> of the original INVITE transaction.  Your script will have a section like
>>
>> if (has_totag()) {
>> if (loose_route()) {
>> t_relay();
>> }
>> }
>>
>> for sequential requests through a loose-routing proxy.  This is very
>> oversimplified and yours will have more.  In this section, however, is
>> where you'll process the ACK because it has a to-tag (line 293) and a route
>> header (line 298) so the conditions match.
>>
>> Use xlogs or the debug tool of your choice to diagnose what's happening
>> in this section with the ACK.  In my scripts, I use global flag 0 to
>> indicate when I want logging.  So, I might have something like this:
>>
>>if (has_totag()) {
>>if (is_gflag(0)) xlog("L_NOTICE", " ...in-dialog $rm
>> request\n");
>># ...do all the things...maybe more logging like the line
>> above...
>>
>>
>> - Jeff
>>
>>
>> On Tue, Jun 1, 2021 at 4:57 AM Miha via Users 
>> wrote:
>>
>>> Hello
>>>
>>>
>>> I have an issue and I am unable to find out what is wrong. Incoming
>>> calls are working but when doing outbound call after 200OK, which is send
>>> to Teams I get back ACK and after that Teams do again initial. I guess this
>>> is not ok.
>>>
>>> I am doing this for outband calls:
>>>
>>>
>>> xlog("L_INFO", "rtp rtps record route");
>>> record_route_preset("mtsbc.test.com:5060","mtsbc.test.com
>>> :5061;transport=tls");
>>> add_rr_param(";r2=on");
>>>
>>> I am pasting here trace. Opensips is in the middle.
>>>
>>> Thank you for help!
>>>
>>> https://pastebin.com/qM0dMiCc
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-02 Thread Miha via Users

yes. Thank you.

is there any way to get also attended transfer working?

Johan De Clercq je 6/2/2021 ob 11:21 AM napisal:

remove Refer from your supported methods.
Do note that attended transfer will not work in this case.

wkr,

Op wo 2 jun. 2021 om 10:15 schreef Miha via Users 
mailto:users@lists.opensips.org>>:


Hello

i manage to fix this. I did not do t_relay() also seq Invites,
after this everything works ok.

Just on question, regarding transfers, i see that MS Teams send
REFER in which trafter is defined. How do you deal with this? You
do not allow REFER from MS teams and hope that MS teams will send
new INVITE?


thank you
miha

Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:

Miha,

First, do you need to use "mtsbc.test.com:5060
" in the first record_route_preset()
param?  Can you use the IP address of your proxy instead?  FQDNs
are legal of course, but outside of MS Teams' implementation,
they're rarely required.  It's just another thing to go wrong. 
Especially while testing.

The ACK to the 200 OK is a sequential (in-dialog) request.  It's
not part of the original INVITE transaction.  Your script will
have a section like

if (has_totag()) {
if (loose_route()) {
t_relay();
}
}

for sequential requests through a loose-routing proxy.  This is
very oversimplified and yours will have more.  In this section,
however, is where you'll process the ACK because it has a to-tag
(line 293) and a route header (line 298) so the conditions match.

Use xlogs or the debug tool of your choice to diagnose what's
happening in this section with the ACK.  In my scripts, I use
global flag 0 to indicate when I want logging.  So, I might have
something like this:

   if (has_totag()) {
   if (is_gflag(0)) xlog("L_NOTICE", "...in-dialog
$rm request\n");
# ...do all the things...maybe more logging like the line above...


- Jeff


On Tue, Jun 1, 2021 at 4:57 AM Miha via Users
mailto:users@lists.opensips.org>> wrote:

Hello


I have an issue and I am unable to find out what is wrong.
Incoming calls are working but when doing outbound call after
200OK, which is send to Teams I get back ACK and after that
Teams do again initial. I guess this is not ok.

I am doing this for outband calls:


xlog("L_INFO", "rtp rtps record route");
record_route_preset("mtsbc.test.com:5060
","mtsbc.test.com
:5061;transport=tls");
add_rr_param(";r2=on");

I am pasting here trace. Opensips is in the middle.

Thank you for help!

https://pastebin.com/qM0dMiCc 
___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-02 Thread Johan De Clercq
remove Refer from your supported methods.
Do note that attended transfer will not work in this case.

wkr,

Op wo 2 jun. 2021 om 10:15 schreef Miha via Users :

> Hello
>
> i manage to fix this. I did not do t_relay() also seq Invites, after this
> everything works ok.
>
> Just on question, regarding transfers, i see that MS Teams send REFER in
> which trafter is defined. How do you deal with this? You do not allow REFER
> from MS teams and hope that MS teams will send new INVITE?
>
>
> thank you
> miha
>
> Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:
>
> Miha,
>
> First, do you need to use "mtsbc.test.com:5060" in the first
> record_route_preset() param?  Can you use the IP address of your proxy
> instead?  FQDNs are legal of course, but outside of MS Teams'
> implementation, they're rarely required.  It's just another thing to go
> wrong.  Especially while testing.
>
> The ACK to the 200 OK is a sequential (in-dialog) request.  It's not part
> of the original INVITE transaction.  Your script will have a section like
>
> if (has_totag()) {
> if (loose_route()) {
> t_relay();
> }
> }
>
> for sequential requests through a loose-routing proxy.  This is very
> oversimplified and yours will have more.  In this section, however, is
> where you'll process the ACK because it has a to-tag (line 293) and a route
> header (line 298) so the conditions match.
>
> Use xlogs or the debug tool of your choice to diagnose what's happening in
> this section with the ACK.  In my scripts, I use global flag 0 to indicate
> when I want logging.  So, I might have something like this:
>
>if (has_totag()) {
>if (is_gflag(0)) xlog("L_NOTICE", " ...in-dialog $rm
> request\n");
># ...do all the things...maybe more logging like the line
> above...
>
>
> - Jeff
>
>
> On Tue, Jun 1, 2021 at 4:57 AM Miha via Users 
> wrote:
>
>> Hello
>>
>>
>> I have an issue and I am unable to find out what is wrong. Incoming calls
>> are working but when doing outbound call after 200OK, which is send to
>> Teams I get back ACK and after that Teams do again initial. I guess this is
>> not ok.
>>
>> I am doing this for outband calls:
>>
>>
>> xlog("L_INFO", "rtp rtps record route");
>> record_route_preset("mtsbc.test.com:5060","mtsbc.test.com
>> :5061;transport=tls");
>> add_rr_param(";r2=on");
>>
>> I am pasting here trace. Opensips is in the middle.
>>
>> Thank you for help!
>>
>> https://pastebin.com/qM0dMiCc
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-02 Thread Miha via Users

ok, it does new seq invite, so not is is working.


thank you for help.
miha

Miha via Users je 6/2/2021 ob 10:11 AM napisal:

Hello

i manage to fix this. I did not do t_relay() also seq Invites, after 
this everything works ok.


Just on question, regarding transfers, i see that MS Teams send REFER 
in which trafter is defined. How do you deal with this? You do not 
allow REFER from MS teams and hope that MS teams will send new INVITE?



thank you
miha

Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:

Miha,

First, do you need to use "mtsbc.test.com:5060 
" in the first record_route_preset() 
param?  Can you use the IP address of your proxy instead?  FQDNs are 
legal of course, but outside of MS Teams' implementation, they're 
rarely required.  It's just another thing to go wrong. Especially 
while testing.


The ACK to the 200 OK is a sequential (in-dialog) request.  It's not 
part of the original INVITE transaction. Your script will have a 
section like


if (has_totag()) {
if (loose_route()) {
t_relay();
}
}

for sequential requests through a loose-routing proxy.  This is very 
oversimplified and yours will have more.  In this section, however, 
is where you'll process the ACK because it has a to-tag (line 293) 
and a route header (line 298) so the conditions match.


Use xlogs or the debug tool of your choice to diagnose what's 
happening in this section with the ACK.  In my scripts, I use global 
flag 0 to indicate when I want logging.  So, I might have something 
like this:


   if (has_totag()) {
   if (is_gflag(0)) xlog("L_NOTICE", "...in-dialog $rm 
request\n");

# ...do all the things...maybe more logging like the line above...


- Jeff


On Tue, Jun 1, 2021 at 4:57 AM Miha via Users 
mailto:users@lists.opensips.org>> wrote:


Hello


I have an issue and I am unable to find out what is wrong.
Incoming calls are working but when doing outbound call after
200OK, which is send to Teams I get back ACK and after that Teams
do again initial. I guess this is not ok.

I am doing this for outband calls:


xlog("L_INFO", "rtp rtps record route");
record_route_preset("mtsbc.test.com:5060
","mtsbc.test.com
:5061;transport=tls");
add_rr_param(";r2=on");

I am pasting here trace. Opensips is in the middle.

Thank you for help!

https://pastebin.com/qM0dMiCc 
___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-02 Thread Miha via Users

Hello

i manage to fix this. I did not do t_relay() also seq Invites, after 
this everything works ok.


Just on question, regarding transfers, i see that MS Teams send REFER in 
which trafter is defined. How do you deal with this? You do not allow 
REFER from MS teams and hope that MS teams will send new INVITE?



thank you
miha

Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:

Miha,

First, do you need to use "mtsbc.test.com:5060 
" in the first record_route_preset() 
param?  Can you use the IP address of your proxy instead?  FQDNs are 
legal of course, but outside of MS Teams' implementation, they're 
rarely required. It's just another thing to go wrong.  Especially 
while testing.


The ACK to the 200 OK is a sequential (in-dialog) request. It's not 
part of the original INVITE transaction.  Your script will have a 
section like


if (has_totag()) {
if (loose_route()) {
t_relay();
}
}

for sequential requests through a loose-routing proxy.  This is very 
oversimplified and yours will have more.  In this section, however, is 
where you'll process the ACK because it has a to-tag (line 293) and a 
route header (line 298) so the conditions match.


Use xlogs or the debug tool of your choice to diagnose what's 
happening in this section with the ACK.  In my scripts, I use global 
flag 0 to indicate when I want logging.  So, I might have something 
like this:


   if (has_totag()) {
   if (is_gflag(0)) xlog("L_NOTICE", "...in-dialog $rm 
request\n");

# ...do all the things...maybe more logging like the line above...


- Jeff


On Tue, Jun 1, 2021 at 4:57 AM Miha via Users 
mailto:users@lists.opensips.org>> wrote:


Hello


I have an issue and I am unable to find out what is wrong.
Incoming calls are working but when doing outbound call after
200OK, which is send to Teams I get back ACK and after that Teams
do again initial. I guess this is not ok.

I am doing this for outband calls:


xlog("L_INFO", "rtp rtps record route");
record_route_preset("mtsbc.test.com:5060
","mtsbc.test.com
:5061;transport=tls");
add_rr_param(";r2=on");

I am pasting here trace. Opensips is in the middle.

Thank you for help!

https://pastebin.com/qM0dMiCc 
___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-01 Thread Jeff Pyle
Miha,

First, do you need to use "mtsbc.test.com:5060" in the first
record_route_preset() param?  Can you use the IP address of your proxy
instead?  FQDNs are legal of course, but outside of MS Teams'
implementation, they're rarely required.  It's just another thing to go
wrong.  Especially while testing.

The ACK to the 200 OK is a sequential (in-dialog) request.  It's not part
of the original INVITE transaction.  Your script will have a section like

if (has_totag()) {
if (loose_route()) {
t_relay();
}
}

for sequential requests through a loose-routing proxy.  This is very
oversimplified and yours will have more.  In this section, however, is
where you'll process the ACK because it has a to-tag (line 293) and a route
header (line 298) so the conditions match.

Use xlogs or the debug tool of your choice to diagnose what's happening in
this section with the ACK.  In my scripts, I use global flag 0 to indicate
when I want logging.  So, I might have something like this:

   if (has_totag()) {
   if (is_gflag(0)) xlog("L_NOTICE", " ...in-dialog $rm
request\n");
   # ...do all the things...maybe more logging like the line
above...


- Jeff


On Tue, Jun 1, 2021 at 4:57 AM Miha via Users 
wrote:

> Hello
>
>
> I have an issue and I am unable to find out what is wrong. Incoming calls
> are working but when doing outbound call after 200OK, which is send to
> Teams I get back ACK and after that Teams do again initial. I guess this is
> not ok.
>
> I am doing this for outband calls:
>
>
> xlog("L_INFO", "rtp rtps record route");
> record_route_preset("mtsbc.test.com:5060","mtsbc.test.com
> :5061;transport=tls");
> add_rr_param(";r2=on");
>
> I am pasting here trace. Opensips is in the middle.
>
> Thank you for help!
>
> https://pastebin.com/qM0dMiCc
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] MS teams, reinvite after ACK

2021-06-01 Thread Miha via Users

Hello


I have an issue and I am unable to find out what is wrong. Incoming 
calls are working but when doing outbound call after 200OK, which is 
send to Teams I get back ACK and after that Teams do again initial. I 
guess this is not ok.


I am doing this for outband calls:


xlog("L_INFO", "rtp rtps record route");

record_route_preset("mtsbc.test.com:5060","mtsbc.test.com:5061;transport=tls");
add_rr_param(";r2=on");

I am pasting here trace. Opensips is in the middle.

Thank you for help!

https://pastebin.com/qM0dMiCc
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users