[Freeswitch-dev] call forward howto

kokoska rokoska kokoska.rokoska at post.cz
Mon Apr 7 06:08:42 EDT 2008



Brian West napsal(a):
> You can also try this:
> 
> <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="respond" data="181 Call is being forwarded"/>
>      <action application="export" data="sip_h_Diversion=23@$$ 
> {domain};reason=unavailable"/>
>      <!-- Since we are a B2BUA this just sends the call back into the  
> dialplan which would be the same as bridge sofia/default/22%$${domain}  
> -->
>      <action application="transfer" data="22"/>
>    </condition>
> </extension>
> 

Your config works exactly as I need. Thank you Brian!
I have two more questions about SIP headers, replies etc.

1. Is there a way how to add headers to replies?
If I simply try to prepend "respond" app with "export" of desired SIP 
header, it doesn't work - the header is added to the INVITE, not to 181...

2. Is there a way how to modify SIP headers or - may be - remove headers?

Thanks a lot once more, regards

kokoska.rokoska




More information about the Freeswitch-dev mailing list