Re: [OpenSIPS-Users] b2b terminate_call!

2013-03-07 Thread Nick Altmann
Why just not to fix 200 OK?

--
Nick

2013/3/7 Jorge Henrique Pinho 

> Hi, I am using opensips with b2b module with topology hiding.
>
> I am trying to terminate a call when i receive the 200OK response to a
> Re-Invite. To accomplish this i am using the 'terminate_call' function
> defined in b2b_logic module.
>
> The dialog is establish and an user sends an in dialog Invite to
> renegotiate codecs, but the 200OK reply is mal formed. In consequence I
> need to terminate the call at this stage.
>
> To accomplish this I am using the terminate_call function present in
> b2b_logic module. When I receive the 200OK bad formatted message, I invoke
> the terminate_call function. The behavior of b2b is this :
>
> ** **
>
> A - Opensips (B2B)  B
>
> ** **
>
> A   Re-Invite à| Re-Invite à   B
>
> ** **
>
> A | 200 OK*  ß  B
> *Bad formatted 200OK
>
> ** **
>
> ABYE ß|
>B
>
> ** **
>
> A |  BYE à
> B
>
> ** **
>
> A |  ACK à
> B
>
> ** **
>
> A |  BYE à
> B
>
> ** **
>
> It seems that b2b is sending a first BYE to B that was not supposed to.***
> *
>
> Can you help me fix this?
>
> ** **
>
> Kind regards
>
> ** **
>
> Jorge Pinho
>
> ** **
>
> ___
> 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] b2b terminate_call!

2013-03-07 Thread Jorge Henrique Pinho
Hi Nick.
It could be bad formatted or other errors that I cannot fix, i.e. codec names 
and attributes that do not comply with the RFC.
In the cases in which I can’t fix the message, I need to terminated the call.

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Nick Altmann
Sent: quinta-feira, 7 de Março de 2013 15:48
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Why just not to fix 200 OK?

--
Nick

2013/3/7 Jorge Henrique Pinho 
mailto:jorge-h-pi...@ext.ptinovacao.pt>>
Hi, I am using opensips with b2b module with topology hiding.
I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function defined 
in b2b_logic module.
The dialog is establish and an user sends an in dialog Invite to renegotiate 
codecs, but the 200OK reply is mal formed. In consequence I need to terminate 
the call at this stage.
To accomplish this I am using the terminate_call function present in b2b_logic 
module. When I receive the 200OK bad formatted message, I invoke the 
terminate_call function. The behavior of b2b is this :

A - Opensips (B2B)  B

A   Re-Invite -->| Re-Invite -->   B

A | 200 OK*  <--  B 
*Bad formatted 200OK

ABYE <--|B

A |  BYE -->B

A |  ACK -->B

A |  BYE -->B

It seems that b2b is sending a first BYE to B that was not supposed to.
Can you help me fix this?

Kind regards

Jorge Pinho


___
Users mailing list
Users@lists.opensips.org<mailto: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] b2b terminate_call!

2013-03-07 Thread Bogdan-Andrei Iancu

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to 
terminate the whole call :).


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:


Hi, I am using opensips with b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The dialog is establish and an user sends an in dialog Invite to 
renegotiate codecs, but the 200OK reply is mal formed. In consequence 
I need to terminate the call at this stage.


To accomplish this I am using the terminate_call function present in 
b2b_logic module. When I receive the 200OK bad formatted message, I 
invoke the terminate_call function. The behavior of b2b is this :


A - Opensips (B2B)  B

A   Re-Invite à   | Re-Invite à   B

A | 200 OK* ß  
B *Bad formatted 200OK


ABYE ß| 
   B


A |  BYE 
àB


A |  ACK 
àB


A |  BYE 
àB


It seems that b2b is sending a first BYE to B that was not supposed to.

Can you help me fix this?

Kind regards

Jorge Pinho


___
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] b2b terminate_call!

2013-03-07 Thread Jorge Henrique Pinho
Hi Bogdan!
The call is terminated in both clients, the issue is that b2b is sending two 
BYE messages to B instead of one.
Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 7 de Março de 2013 17:44
To: OpenSIPS users mailling list
Cc: Jorge Henrique Pinho
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to terminate 
the whole call :).

Regards,


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:
Hi, I am using opensips with b2b module with topology hiding.
I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function defined 
in b2b_logic module.
The dialog is establish and an user sends an in dialog Invite to renegotiate 
codecs, but the 200OK reply is mal formed. In consequence I need to terminate 
the call at this stage.
To accomplish this I am using the terminate_call function present in b2b_logic 
module. When I receive the 200OK bad formatted message, I invoke the 
terminate_call function. The behavior of b2b is this :

A - Opensips (B2B)  B

A   Re-Invite -->| Re-Invite -->   B

A | 200 OK*  <--  B 
*Bad formatted 200OK

ABYE <--|B

A |  BYE -->B

A |  ACK -->B

A |  BYE -->B

It seems that b2b is sending a first BYE to B that was not supposed to.
Can you help me fix this?

Kind regards

Jorge Pinho






___

Users mailing list

Users@lists.opensips.org<mailto: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] b2b terminate_call!

2013-03-07 Thread Bogdan-Andrei Iancu

Are you sure it is not a retransmission ??

Could you post a SIP capture of the entire call ?

Regards

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 07:49 PM, Jorge Henrique Pinho wrote:


Hi Bogdan!

The call is terminated in both clients, the issue is that b2b is 
sending two BYE messages to B instead of one.


Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 7 de Março de 2013 17:44
*To:* OpenSIPS users mailling list
*Cc:* Jorge Henrique Pinho
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to 
terminate the whole call :).


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:

Hi, I am using opensips with b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The dialog is establish and an user sends an in dialog Invite to 
renegotiate codecs, but the 200OK reply is mal formed. In consequence 
I need to terminate the call at this stage.


To accomplish this I am using the terminate_call function present in 
b2b_logic module. When I receive the 200OK bad formatted message, I 
invoke the terminate_call function. The behavior of b2b is this :


A - Opensips (B2B)  B

A   Re-Invite à   | Re-Invite à   B

A | 200 OK* ß  
B *Bad formatted 200OK


ABYE ß| 
   B


A |  BYE 
àB


A |  ACK 
àB


A |  BYE 
àB


It seems that b2b is sending a first BYE to B that was not supposed to.

Can you help me fix this?

Kind regards

Jorge Pinho

  
  
___

Users mailing list
Users@lists.opensips.org  <mailto: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] b2b terminate_call!

2013-03-08 Thread Bogdan-Andrei Iancu

Hi Jorge,

The flow itself is not sufficient, if you could send the pcap (off list) 
to check, it will great.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/08/2013 01:13 PM, Jorge Henrique Pinho wrote:


Hi Bogdan!

Here is the sip trace, opensips is on ip 10.112.137.205:5065:


Don't mind the duplicate '100 Trying' message. I send one in my config 
file before calling b2b_init_request, and b2b send the other after this.


In attachment I send the log where the opensips generates the BYE and 
ACK messages.


Kind regards.

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 7 de Março de 2013 17:53
*To:* Jorge Henrique Pinho
*Cc:* OpenSIPS users mailling list
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Are you sure it is not a retransmission ??

Could you post a SIP capture of the entire call ?

Regards

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 07:49 PM, Jorge Henrique Pinho wrote:

Hi Bogdan!

The call is terminated in both clients, the issue is that b2b is 
sending two BYE messages to B instead of one.


Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 7 de Março de 2013 17:44
*To:* OpenSIPS users mailling list
*Cc:* Jorge Henrique Pinho
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to 
terminate the whole call :).


Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:

Hi, I am using opensips with b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The dialog is establish and an user sends an in dialog Invite to 
renegotiate codecs, but the 200OK reply is mal formed. In consequence 
I need to terminate the call at this stage.


To accomplish this I am using the terminate_call function present in 
b2b_logic module. When I receive the 200OK bad formatted message, I 
invoke the terminate_call function. The behavior of b2b is this :


A - Opensips (B2B)  B

A   Re-Invite à   | Re-Invite à   B

A | 200 OK* ß  
B *Bad formatted 200OK


ABYE ß| 
   B


A |  BYE 
àB


A |  ACK 
àB


A |  BYE 
àB


It seems that b2b is sending a first BYE to B that was not supposed to.

Can you help me fix this?

Kind regards

Jorge Pinho

  
  
___

Users mailing list
Users@lists.opensips.org  <mailto: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] b2b terminate_call!

2013-03-08 Thread Jorge Henrique Pinho
Hi Bogdan!
Yes I can, it is in attachment.

Thank you

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: sexta-feira, 8 de Março de 2013 11:55
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

The flow itself is not sufficient, if you could send the pcap (off list) to 
check, it will great.

Regards,



Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/08/2013 01:13 PM, Jorge Henrique Pinho wrote:
Hi Bogdan!
Here is the sip trace, opensips is on ip 10.112.137.205:5065:




Don't mind the duplicate '100 Trying' message. I send one in my config file 
before calling b2b_init_request, and b2b send the other after this.
In attachment I send the log where the opensips generates the BYE and ACK 
messages.

Kind regards.

Jorge Pinho


From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 7 de Março de 2013 17:53
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Are you sure it is not a retransmission ??

Could you post a SIP capture of the entire call ?

Regards



Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/07/2013 07:49 PM, Jorge Henrique Pinho wrote:
Hi Bogdan!
The call is terminated in both clients, the issue is that b2b is sending two 
BYE messages to B instead of one.
Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 7 de Março de 2013 17:44
To: OpenSIPS users mailling list
Cc: Jorge Henrique Pinho
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to terminate 
the whole call :).

Regards,




Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:
Hi, I am using opensips with b2b module with topology hiding.
I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function defined 
in b2b_logic module.
The dialog is establish and an user sends an in dialog Invite to renegotiate 
codecs, but the 200OK reply is mal formed. In consequence I need to terminate 
the call at this stage.
To accomplish this I am using the terminate_call function present in b2b_logic 
module. When I receive the 200OK bad formatted message, I invoke the 
terminate_call function. The behavior of b2b is this :

A - Opensips (B2B)  B

A   Re-Invite -->| Re-Invite -->   B

A | 200 OK*  <--  B 
*Bad formatted 200OK

ABYE <--|B

A |  BYE -->B

A |  ACK -->B

A |  BYE -->B

It seems that b2b is sending a first BYE to B that was not supposed to.
Can you help me fix this?

Kind regards

Jorge Pinho






___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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


Re: [OpenSIPS-Users] b2b terminate_call!

2013-03-08 Thread Bogdan-Andrei Iancu

Hi Jorge,

Strange indeed - the second BYE is not retransmission, it has a 
different cseq number.


I suspect the second BYE is triggered by the ACK (for 200 OK).

As per an older email , I still think it is not correct (from SIP point 
of view) to force sending BYE (to callee) before sending the ACK to it. 
First you have to finish the call setup (sending ACK back) and then to 
terminate it.


Could you provide logs in debug 4 covering the entire call ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/08/2013 05:18 PM, Jorge Henrique Pinho wrote:


Hi Bogdan!

Yes I can, it is in attachment.

Thank you

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* sexta-feira, 8 de Março de 2013 11:55
*To:* Jorge Henrique Pinho
*Cc:* OpenSIPS users mailling list
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

The flow itself is not sufficient, if you could send the pcap (off 
list) to check, it will great.


Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/08/2013 01:13 PM, Jorge Henrique Pinho wrote:

Hi Bogdan!

Here is the sip trace, opensips is on ip 10.112.137.205:5065:



Don't mind the duplicate '100 Trying' message. I send one in my config 
file before calling b2b_init_request, and b2b send the other after this.


In attachment I send the log where the opensips generates the BYE and 
ACK messages.


Kind regards.

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 7 de Março de 2013 17:53
*To:* Jorge Henrique Pinho
*Cc:* OpenSIPS users mailling list
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Are you sure it is not a retransmission ??

Could you post a SIP capture of the entire call ?

Regards


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 07:49 PM, Jorge Henrique Pinho wrote:

Hi Bogdan!

The call is terminated in both clients, the issue is that b2b is 
sending two BYE messages to B instead of one.


Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 7 de Março de 2013 17:44
*To:* OpenSIPS users mailling list
*Cc:* Jorge Henrique Pinho
*Subject:* Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to 
terminate the whole call :).


Regards,



Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:

Hi, I am using opensips with b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The dialog is establish and an user sends an in dialog Invite to 
renegotiate codecs, but the 200OK reply is mal formed. In consequence 
I need to terminate the call at this stage.


To accomplish this I am using the terminate_call function present in 
b2b_logic module. When I receive the 200OK bad formatted message, I 
invoke the terminate_call function. The behavior of b2b is this :


A - Opensips (B2B)  B

A   Re-Invite à   | Re-Invite à   B

A | 200 OK* ß  
B *Bad formatted 200OK


ABYE ß| 
   B


A |  BYE 
àB


A |  ACK 
àB


A |  BYE 
àB


It seems that b2b is sending a first BYE to B that was not supposed to.

Can you help me fix this?

Kind regards

Jorge Pinho

  
  
___

Users mailing list
Users@lists.opensips.org  <mailto: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] b2b terminate_call!

2013-04-16 Thread Jorge Henrique Pinho
Hi Bogdan!
Sure, it is in attachment.

Kind regards!

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: sexta-feira, 8 de Março de 2013 18:01
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Strange indeed - the second BYE is not retransmission, it has a different cseq 
number.

I suspect the second BYE is triggered by the ACK (for 200 OK).

As per an older email , I still think it is not correct (from SIP point of 
view) to force sending BYE (to callee) before sending the ACK to it. First you 
have to finish the call setup (sending ACK back) and then to terminate it.

Could you provide logs in debug 4 covering the entire call ?

Regards,



Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/08/2013 05:18 PM, Jorge Henrique Pinho wrote:
Hi Bogdan!
Yes I can, it is in attachment.

Thank you

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: sexta-feira, 8 de Março de 2013 11:55
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

The flow itself is not sufficient, if you could send the pcap (off list) to 
check, it will great.

Regards,




Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/08/2013 01:13 PM, Jorge Henrique Pinho wrote:
Hi Bogdan!
Here is the sip trace, opensips is on ip 10.112.137.205:5065:





Don't mind the duplicate '100 Trying' message. I send one in my config file 
before calling b2b_init_request, and b2b send the other after this.
In attachment I send the log where the opensips generates the BYE and ACK 
messages.

Kind regards.

Jorge Pinho


From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 7 de Março de 2013 17:53
To: Jorge Henrique Pinho
Cc: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Are you sure it is not a retransmission ??

Could you post a SIP capture of the entire call ?

Regards




Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/07/2013 07:49 PM, Jorge Henrique Pinho wrote:
Hi Bogdan!
The call is terminated in both clients, the issue is that b2b is sending two 
BYE messages to B instead of one.
Is there any way to fix this behavior?

Kind regards,

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 7 de Março de 2013 17:44
To: OpenSIPS users mailling list
Cc: Jorge Henrique Pinho
Subject: Re: [OpenSIPS-Users] b2b terminate_call!

Hi Jorge,

Why is the order important ( A or B first) ? as you simply want to terminate 
the whole call :).

Regards,





Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 03/07/2013 05:35 PM, Jorge Henrique Pinho wrote:
Hi, I am using opensips with b2b module with topology hiding.
I am trying to terminate a call when i receive the 200OK response to a 
Re-Invite. To accomplish this i am using the 'terminate_call' function defined 
in b2b_logic module.
The dialog is establish and an user sends an in dialog Invite to renegotiate 
codecs, but the 200OK reply is mal formed. In consequence I need to terminate 
the call at this stage.
To accomplish this I am using the terminate_call function present in b2b_logic 
module. When I receive the 200OK bad formatted message, I invoke the 
terminate_call function. The behavior of b2b is this :

A - Opensips (B2B)  B

A   Re-Invite -->| Re-Invite -->   B

A | 200 OK*  <--  B 
*Bad formatted 200OK

ABYE <--|B

A |  BYE -->B

A |  ACK -->B

A |  BYE -->B

It seems that b2b is sending a first BYE to B that was not supposed to.
Can you help me fix this?

Kind regards

Jorge Pinho






___

Users mailing list

Users@lists.opensips.org<mailto:Users@lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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


Re: [OpenSIPS-Users] B2b 'terminate_call' function!

2013-02-28 Thread Bogdan-Andrei Iancu

Hi Jorge,

The "terminate_call" is a C function in the b2b API module. Now, I do 
not fully understand what you are trying to do - could you detail a bit 
the state of the involved calls when you do the terminate ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/28/2013 05:06 PM, Jorge Henrique Pinho wrote:


Hi, I am using b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to 
an Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The b2b module successfully generates a BYE to user B (callee), but 
fails to generate a Cancel to user A (caller). Here is the log where 
it fails to send cancel:


Feb 28 15:01:41 [1466] DBG:b2b_logic:b2bl_parse_key: hash_index = 
[286]  - local_index= [0]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_parse_key: hash_index = 
[310]  - local_index= [66]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
entering with start=(nil), table=0x2ba1327a39b0, hash=310, label=66


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching  callid 16[0f24ca6601104537]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching   totag 10[B2B.310.66]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching fromtag 8[6a18b32d]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
Match for server dlg [0x2ba1327a8a20] dlg->uas_tran=[0x2ba1327a8c48]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_send_request: Send request 
[CANCEL] for entity type [0] for dlg[0x2ba1327a8a20]->[B2B.310.66]


Feb 28 15:01:41 [1466] ERROR:b2b_entities:b2b_send_request: No 
transaction saved. Cannot send CANCEL


B2b fails to find a transaction to A (caller) and fails to generate a 
Cancel message to this user.


Is it possible to do what I am trying or is it a bug?

Kind regards

Jorge Pinho


___
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] B2b 'terminate_call' function!

2013-03-01 Thread Jorge Henrique Pinho
Hi, thank you for your feedback.
User A (caller) sends an Invite to User B (callee). When the Invite arrives to 
opensips, b2b_init_request is called with 'topology hiding' and the Invite is 
sent to User B.
Callee reply with a 200OK with sdp content, when this messages arrives to b2b, 
if something is wrong with the response i need to terminate the call in this 
phase, and I use the 'terminate_call' function present in the b2b_logic module.
The b2b creates a BYE to user B (callee) but fails to generate a Cancel to user 
A (caller).

It is possible to end the call at this stage?

Kind regards

Jorge Pinho

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: quinta-feira, 28 de Fevereiro de 2013 16:47
To: OpenSIPS users mailling list
Cc: Jorge Henrique Pinho
Subject: Re: [OpenSIPS-Users] B2b 'terminate_call' function!

Hi Jorge,

The "terminate_call" is a C function in the b2b API module. Now, I do not fully 
understand what you are trying to do - could you detail a bit the state of the 
involved calls when you do the terminate ?

Regards,


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer

http://www.opensips-solutions.com

On 02/28/2013 05:06 PM, Jorge Henrique Pinho wrote:
Hi, I am using b2b module with topology hiding.
I am trying to terminate a call when i receive the 200OK response to an Invite. 
To accomplish this i am using the 'terminate_call' function defined in 
b2b_logic module.
The b2b module successfully generates a BYE to user B (callee), but fails to 
generate a Cancel to user A (caller). Here is the log where it fails to send 
cancel:

Feb 28 15:01:41 [1466] DBG:b2b_logic:b2bl_parse_key: hash_index = [286]  - 
local_index= [0]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_parse_key: hash_index = [310]  - 
local_index= [66]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: entering 
with start=(nil), table=0x2ba1327a39b0, hash=310, label=66
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: searching  
callid 16[0f24ca6601104537]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: searching   
totag 10[B2B.310.66]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: searching 
fromtag 8[6a18b32d]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: Match for 
server dlg [0x2ba1327a8a20] dlg->uas_tran=[0x2ba1327a8c48]
Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_send_request: Send request [CANCEL] 
for entity type [0] for dlg[0x2ba1327a8a20]->[B2B.310.66]
Feb 28 15:01:41 [1466] ERROR:b2b_entities:b2b_send_request: No transaction 
saved. Cannot send CANCEL

B2b fails to find a transaction to A (caller) and fails to generate a Cancel 
message to this user.

Is it possible to do what I am trying or is it a bug?

Kind regards

Jorge Pinho






___

Users mailing list

Users@lists.opensips.org<mailto: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] B2b 'terminate_call' function!

2013-03-01 Thread Bogdan-Andrei Iancu

Hi Jorge,

trying to terminate the call on 200 ok is not really a good idea - you 
have to wait for the call to establish properly (have the ACK) and do 
the terminate.


Anyhow, sending a CANCEL to caller is bogus - CANCEL is all the time 
sent to callee sides only.


So, I suggest to wait for the ACK to pass and only then do the terminate 
stuff.


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 03/01/2013 12:00 PM, Jorge Henrique Pinho wrote:


Hi, thank you for your feedback.

User A (caller) sends an Invite to User B (callee). When the Invite 
arrives to opensips, b2b_init_request is called with 'topology hiding' 
and the Invite is sent to User B.


Callee reply with a 200OK with sdp content, when this messages arrives 
to b2b, if something is wrong with the response i need to terminate 
the call in this phase, and I use the 'terminate_call' function 
present in the b2b_logic module.


The b2b creates a BYE to user B (callee) but fails to generate a 
Cancel to user A (caller).


It is possible to end the call at this stage?

Kind regards

Jorge Pinho

*From:*Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
*Sent:* quinta-feira, 28 de Fevereiro de 2013 16:47
*To:* OpenSIPS users mailling list
*Cc:* Jorge Henrique Pinho
*Subject:* Re: [OpenSIPS-Users] B2b 'terminate_call' function!

Hi Jorge,

The "terminate_call" is a C function in the b2b API module. Now, I do 
not fully understand what you are trying to do - could you detail a 
bit the state of the involved calls when you do the terminate ?


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/28/2013 05:06 PM, Jorge Henrique Pinho wrote:

Hi, I am using b2b module with topology hiding.

I am trying to terminate a call when i receive the 200OK response to 
an Invite. To accomplish this i am using the 'terminate_call' function 
defined in b2b_logic module.


The b2b module successfully generates a BYE to user B (callee), but 
fails to generate a Cancel to user A (caller). Here is the log where 
it fails to send cancel:


Feb 28 15:01:41 [1466] DBG:b2b_logic:b2bl_parse_key: hash_index = 
[286]  - local_index= [0]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_parse_key: hash_index = 
[310]  - local_index= [66]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
entering with start=(nil), table=0x2ba1327a39b0, hash=310, label=66


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching  callid 16[0f24ca6601104537]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching   totag 10[B2B.310.66]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
searching fromtag 8[6a18b32d]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_search_htable_next_dlg: 
Match for server dlg [0x2ba1327a8a20] dlg->uas_tran=[0x2ba1327a8c48]


Feb 28 15:01:41 [1466] DBG:b2b_entities:b2b_send_request: Send request 
[CANCEL] for entity type [0] for dlg[0x2ba1327a8a20]->[B2B.310.66]


Feb 28 15:01:41 [1466] ERROR:b2b_entities:b2b_send_request: No 
transaction saved. Cannot send CANCEL


B2b fails to find a transaction to A (caller) and fails to generate a 
Cancel message to this user.


Is it possible to do what I am trying or is it a bug?

Kind regards

Jorge Pinho

  
  
___

Users mailing list
Users@lists.opensips.org  <mailto: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