Quantcast

B2BUA - Multiple Transfer/Refer issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

B2BUA - Multiple Transfer/Refer issue

osiris123d
I'm using the OpenSIPS B2BUA scenario that handles REFER messages.  It works well for the first REFER transfer but if someone tries to transfer a second time it doesn't work.

Here is the issue I am seeing (my siptraces will have the same users)

PSTN User 15X26X65XX5 calls the OpenSIPS user 90188X9XX0
OpenSIPS user 90188X9XX0 answers the call and then transfers to OpenSIPS user 9000
OpenSIPS user 9000 picks up the call and then tries to transfer the call back to OpenSIPS user 90188X9XX0

This is where it messes up.  When user 9000 tries to transfer the call again I see that the OpenSIPS B2BUA server receives the REFER message but before the B2BUA sends the 202 ACCEPTED message like the "refer script" tells it to it first sends an INVITE message that doesn't look complete compared to the INVITE that was sent the first time 90188X9XX0 did a REFER.  I have no clue why this INVITE message is getting generated and sent from the B2BUA server before the 202 ACCEPTED is sent.  Also in the INVITE message you will see that the RURI and To: header say 9000@domain.  It really should be 90188X9XX0@domain since that is who I am transferring to.

Here is a SIPtrace of the above scenario where things mess up (I have highlighted the INVITE in question)
http://pastebin.com/TUBJJy3K


So the SIPTrace I posted shows you a good transfer when user 90188X9XX0 transfers to 9000.  So that way you can see the comparison between a good transfer and a bad transfer.



Any ideas on what I could be doing wrong or if this is a bug?




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: B2BUA - Multiple Transfer/Refer issue

osiris123d
Here are some Level 6 Debugs on the OpenSIPS B2BUA server.  


Good Transfer
http://pastebin.com/CcvUnN6y


Bad Transfer and a Transfer has already been done before
http://pastebin.com/j7BeEeJH


Does anyone else use the B2BUA model and the REFER script?  Are you able to do multiple call transfers?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: B2BUA - Multiple Transfer/Refer issue

osiris123d
Issue is solved.  Anca Vamanu looked at the issue and said there was already an answer for this issue.  Here is her answer

It seems that if you put the <new> node, your problems with reusage of id
will be solved.

The scenario part will look like this:

<client>
<id>client2</id>
<new/>
<destination>
<value type="header">Refer-To</value>
</destination>
Loading...