[Freeswitch-users] Bypass-media and REFER method

Victor Maruani vmaruani at interwise.com
Sun Feb 7 07:00:55 PST 2010


Hi,

 

I'm trying to do a POC using FS, the goal is to have FS handle REFERs
containing proprietary data. 

I want to have some logic on top of FS and also use the fail over
mechanism.

in short, I have something like this:

(third party) A side  --- FS ---- B side (IVR server)

 

the IVR the sends a REFER to FS. I don't want A to deal with it. 

now say B refers to C, it would be considered as a "group" C1, C2 ... to
which I want FS to failover.

only when one has answered should A be updated (REINVITE) and B notified
and disconnected.

if all fails I would expect B to be notified of the failure and proceed
as I wish without "losing" A.

 

from what I've read FS should be OK for the job but I have a couple
issues:

 

1 ) I have some issues getting FS handle a REFER while in bypass-media
mode.

(I tried with the release and some revisions including latest)

first when I bridge A and B everything is fine and media is bypassed.

When B sends REFER to C:

-           FS immediately NOTIFY B of success and send a reinvite to A
with SDP containing its own media IP/port.

-          then it does INVITE C with A's SDP.

-          B gets disconnected. A is not updated with C's sdp.

so at this point A sends RTP to FS and C sends RTP to A. ...

 

I basically have one extension for B: (set bypass-media and bridge to B)

and another extension to C which does the same actions.

what do you think I do wrong? 

 

 

2 ) how can I catch the REFER and set variables from it? (like ref-by or
ref-to)

in the dial plan I do catch the INVITE sent to C, but how to do it with
the REFER itself?

 

 

thanks for your help!

 

 

Best Regards,

Victor.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100207/2992971b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list