View previous topic :: View next topic |
Author |
Message |
zolotov at altron.ua Guest
|
Posted: Fri Feb 13, 2009 7:10 am Post subject: [Freeswitch-users] Sending channel variables |
|
|
Hello!
I'm trying to make such scheme:
---> FS_A --> FS_B --> record
Incoming calls to FS_A are redirected to FS_B with the help of this
context:
<extension name="redirect">
<condition field="destination_number" expression="^(2000\d)$" >
<action application="answer" />
<action application="set" data="continue_on_true=false" />
<action application="bridge"
data="sofia/outbound/$1@1.2.3.4:5080" />
<action application="hangup" />
</condition>
</extension>
FS_B records them to the file:
<extension name="30xxx-wr-wav">
<condition field="destination_number" expression="^20001">
<action application="answer" />
<action application="set" data="hangup_after_bridge=true" />
<action application="record"
data="$${base_dir}/recordings/test/testrec.wav" />
</condition>
</extension>
This works good. But I have a question - in what manner I can send back
(from FS_B to FS_A) some channel variables?
Thanks, Evgeniy.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
sicfslist at gmail.com Guest
|
Posted: Fri Feb 13, 2009 9:50 am Post subject: [Freeswitch-users] Sending channel variables |
|
|
I'm assuming that you are saying these are 2 boxes .... if the protocol is a sip you can append a sip header ... _sip_h_X- .... This should be available as a channel variable on FS A.
SDR
On Fri, Feb 13, 2009 at 6:10 AM, Evgeniy Zolotov <zolotov@altron.ua (zolotov@altron.ua)> wrote:
Quote: | Hello!
I'm trying to make such scheme:
---> FS_A --> FS_B --> record
Incoming calls to FS_A are redirected to FS_B with the help of this
context:
<extension name="redirect">
<condition field="destination_number" expression="^(2000\d)$" >
<action application="answer" />
<action application="set" data="continue_on_true=false" />
<action application="bridge"
data="sofia/outbound/$1@1.2.3.4:5080" />
<action application="hangup" />
</condition>
</extension>
FS_B records them to the file:
<extension name="30xxx-wr-wav">
<condition field="destination_number" expression="^20001">
<action application="answer" />
<action application="set" data="hangup_after_bridge=true" />
<action application="record"
data="$${base_dir}/recordings/test/testrec.wav" />
</condition>
</extension>
This works good. But I have a question - in what manner I can send back
(from FS_B to FS_A) some channel variables?
Thanks, Evgeniy.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
|