Misc. Dialplan Tools deflect

From FreeSWITCH Wiki

Revision as of 10:51, 20 May 2010 by Diego.viola (Talk | contribs)
Jump to: navigation, search

Deflect sends a Refer to the client. The deflect application allows FreeSWITCH to be removed from the list of connection hops and tell the originator to reroute the call. When using the deflect application, FreeSWITCH first hangs up the channel and then send a REFER message and a new INVITE message to the originator. The originator, which could be a gateway or sip proxy, should read the INVITE and reroute the call accordingly.

Contents

Usage

The only parameter should be the SIP URI to contact (with or without "sip:")

 <action application="deflect" data="sip:someone@somewhere.com" />

Important

Refer can only be used on established calls. That means if the channel has been Answered (using Answer app), you can use deflect to send a REFER message back to the originating URI. If If the channel has not been Answered, then you should use the redirect application to route the call.

Refer

REFER is a SIP method as defined by RFC 3261 [1]. The REFER method indicates that the recipient (identified by the Request-URI) should contact a third party using the contact information provided in the request.

See also

Personal tools

Community
Support FreeSWITCH