[Freeswitch-dev] call forward howto

Anthony Minessale anthony.minessale at gmail.com
Sun Apr 6 17:03:18 EDT 2008


The transfer app sends the same call to some other extension at some other
dialplan within the switch.
We are not a sip specific switch so we have to abstract many concepts.

If you are trying to redirect the call we have 2 ways
the redirect application

<action application="redirect" data="sip:user at host"/>
This will result in a 302 redirect in the case of a sip channel

<action application="deflect" data="sip:user at host"/>
This will result in a REFER to the specified uri

That is the only 2 ways we support, if you are looking to divert like a
proxy does
remember we are only a b2bua and do not perform proxy features, see openser
for that.



On Sun, Apr 6, 2008 at 2:13 PM, kokoska rokoska <kokoska.rokoska at post.cz>
wrote:

>
> Hi all at third today :-)
>
> I'm trying to make call-forward (on all failures, but it is not
> relevant, I think) but don't know how...
> I used "transfer" application but it didn't work like i expected.
>
> The scenario was as follows:
>
> Really simple dialplan
> <extension name="Eeee">
>   <condition field="destination_number" expression="^(23)$">
>     <action application="set" data="continue_on_fail=true"/>
>     <action application="bridge" data="sofia/default/$1%$${domain}"/>
>     <action application="transfer" data="22"/>
>   </condition>
> </extension>
>
> And than user 21 calls number 23 which is not registered. Call
> succesfully rings on user 22 but:
> 1. There is no "181 Call is being forwarded" sent.
> 2. INVITE to user 22 lacks "Diversion" header.
> If someone interested I have full pcap dump.
>
> Could someone point me to right solution how to properly implement call
> forwarding?
> I mean 181 send back, and INVITE with Diversion header with proper
> forwarding reason and forward counter. When I looked at
> Channel_Variables I didn't find anything suitable...
>
> Any suggestion is really appreciated :-)
>
> Best regards,
>
> kokoska.rokoska
>
>
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080406/e6ce2aa3/attachment.html 


More information about the Freeswitch-dev mailing list