[Freeswitch-users] How to bridge a call to an extension defined in dialplan

x.liu x.liu at hw.ac.uk
Mon Feb 27 14:34:13 MSK 2012


Now I tried it at a different machine with different version of FS.
The behaviour is slightly different. This time the softphone is ringing 
but the recording extension is not correctly executed.
The version for this test is "FreeSWITCH Version 1.0.head (git-e566057 
2011-12-14 10-27-31 -0500)"
  (The FS version for previous tries is "FreeSWITCH Version 1.0.head 
(git-54ddef0 2011-12-06 21-53-45 -0600)" )

I copy part of terminal message here, hope it is not too much message 
for the email list.

--------------------------------------------------
09:04.180223 [NOTICE] switch_channel.c:920 New Channel 
sofia/external/anonymous at sipgate.co.uk 
[7596ad60-6133-11e1-9141-8b50a5b8b13b]
09:04.180223 [INFO] mod_dialplan_xml.c:481 Processing anonymous 
<anonymous>->74997 in context public
09:04.180223 [NOTICE] switch_channel.c:920 New Channel 
sofia/internal/1003 at x.x.x.x [75976d18-6133-11e1-9145-8b50a5b8b13b]
09:04.180223 [NOTICE] switch_channel.c:920 New Channel 
sofia/internal/74999 at x.x.x.x [75977f24-6133-11e1-914a-8b50a5b8b13b]
09:04.180223 [NOTICE] switch_channel.c:920 New Channel 
sofia/internal/anonymous at x.x.x.x [7597aab2-6133-11e1-914e-8b50a5b8b13b]
09:04.180223 [INFO] mod_dialplan_xml.c:481 Processing anonymous 
<anonymous>->1003 in context public
09:04.180223 [NOTICE] switch_channel.c:920 New Channel 
sofia/internal/anonymous at x.x.x.x [75980192-6133-11e1-9150-8b50a5b8b13b]
09:04.180223 [NOTICE] switch_ivr.c:1711 Transfer 
sofia/external/anonymous at sipgate.co.uk to XML[1003 at public]
09:04.180223 [NOTICE] switch_ivr_originate.c:3182 Hangup 
sofia/internal/1003 at x.x.x.x [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
09:04.180223 [NOTICE] switch_ivr_originate.c:3182 Hangup 
sofia/internal/74999 at x.x.x.x [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
09:04.180223 [INFO] mod_dptools.c:2897 Originate Failed.  Cause: 
ORIGINATOR_CANCEL
09:04.180223 [INFO] mod_dialplan_xml.c:481 Processing anonymous 
<anonymous>->1003 in context public
09:04.180223 [NOTICE] switch_core_session.c:1397 Session 2 
(sofia/internal/1003 at x.x.x.x) Ended
09:04.180223 [NOTICE] switch_core_session.c:1399 Close Channel 
sofia/internal/1003 at x.x.x.x [CS_DESTROY]
09:04.180223 [NOTICE] switch_ivr.c:1711 Transfer 
sofia/external/anonymous at sipgate.co.uk to XML[1003 at default]
09:04.180223 [INFO] mod_dialplan_xml.c:481 Processing anonymous 
<anonymous>->1003 in context default
09:04.180223 [NOTICE] sofia.c:427 Hangup 
sofia/internal/anonymous at x.x.x.x [CS_EXECUTE] [BLIND_TRANSFER]
09:04.201188 [NOTICE] switch_core_session.c:1397 Session 4 
(sofia/internal/anonymous at x.x.x.x) Ended
09:04.201188 [NOTICE] switch_core_session.c:1399 Close Channel 
sofia/internal/anonymous at x.x.x.x [CS_DESTROY]
09:04.201188 [INFO] switch_ivr_async.c:3164 Bound B-Leg: *1 
execute_extension::dx XML features
09:04.201188 [INFO] mod_dialplan_xml.c:481 Processing anonymous 
<anonymous>->74999 in context public
09:04.201188 [INFO] switch_ivr_async.c:3164 Bound B-Leg: *2 
record_session:: recordings/anonymous.2012-02-27-11-09-04.wav
09:04.201188 [NOTICE] switch_core_session.c:1397 Session 3 
(sofia/internal/74999 at x.x.x.x) Ended
09:04.201188 [NOTICE] switch_core_session.c:1399 Close Channel 
sofia/internal/74999 at x.x.x.x [CS_DESTROY]
09:04.201188 [INFO] switch_ivr_async.c:3164 Bound B-Leg: *3 
execute_extension::cf XML features
09:04.201188 [NOTICE] sofia.c:6134 Hangup 
sofia/internal/anonymous at x.x.x.x [CS_EXECUTE] [ORIGINATOR_CANCEL]
09:04.201188 [INFO] switch_ivr_async.c:3164 Bound B-Leg: *4 
execute_extension::att_xfer XML features
09:04.201188 [NOTICE] switch_core_session.c:1397 Session 5 
(sofia/internal/anonymous at x.x.x.x) Ended
09:04.201188 [NOTICE] switch_core_session.c:1399 Close Channel 
sofia/internal/anonymous at x.x.x.x [CS_DESTROY]
09:04.201188 [NOTICE] switch_channel.c:920 New Channel 
sofia/internal/sip:1003 at y.y.y.y:5062 [759a6630-6133-11e1-9158-8b50a5b8b13b]
09:04.740223 [NOTICE] sofia.c:5462 Ring-Ready 
sofia/internal/sip:1003 at y.y.y.y:5062!
09:04.740223 [NOTICE] mod_sofia.c:2470 Ring-Ready 
sofia/external/anonymous at sipgate.co.uk!
09:04.740223 [NOTICE] switch_ivr_originate.c:483 Ring Ready 
sofia/external/anonymous at sipgate.co.uk!
09:07.700221 [NOTICE] sofia.c:6040 Channel 
[sofia/internal/sip:1003 at y.y.y.y:5062] has been answered
09:07.700221 [NOTICE] switch_ivr_originate.c:483 Ring Ready 
sofia/external/anonymous at sipgate.co.uk!
-------------------------------------------------


> Hi,
>
> H tried this way
>
> <action application="bridge" 
> data="sofia/internal/1003%${sip_profile},sofia/internal/74991@${domain}"/>
>
> 74991 is reached and I heard the prompt. The 1003 softphone is 
> terminated immediately after it is reached.
> then extension 74991 hung up itself as well.
>
> I saw the terminal message:
> mod_dptools.c:2897 Originate Failed.  Cause: ORIGINATOR_CANCEL
>
> What would be the reason for that?
>
> Thanks,
> Xing
>
>
>
> On 02/26/2012 10:29 PM, Liu, Xingkun wrote:
>>
>> Hello,
>>
>> I'd like to bridge an incoming to two endpoints simultaneuously:
>> one is a softphone which is registered to FS (to user 1003),
>> another is just an extension which is defined in conf/dialplan/public.xml
>>
>> It looks like:
>>
>> <extension name="testRecording_bridge">
>> <condition field="destination_number" expression="^(74990)$">
>> <action application="bridge" 
>> data="sofia/internal/1003%${sip_profile},sofia/internal/74991%${sip_profile}"/>
>> </condition>
>> </extension>
>>
>> <extension name="testRecordingOnly">
>> <condition field="destination_number" expression="^74991$">
>> <action application="set" data="record_waste_resources=true"/>
>> <action application="javascript" data="testRecordFile.js"/>
>> </condition>
>> </extension>
>>
>> The incoming call dial to extension 74990, from there I want to 
>> bridge the call to the sofphone at 1003 and
>> to the extension 74991.
>>
>> The problem is that FS can not locate user 74991. So my question is 
>> what else I need to modify in order
>> to bridge the call also to extension 74991 at the same time?
>>
>> I did lots of Googling, checked the wiki and tried various ways but 
>> still without success.
>>
>> Any advices please?
>>
>> Many Thanks!
>> Xing
>>
>>
>> ------------------------------------------------------------------------
>>
>> *Heriot-Watt University is the Sunday Times Scottish University of 
>> the Year 2011-2012.*
>>
>> Heriot-Watt University is a Scottish charity registered under charity 
>> number SC000278.
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> ------------------------------------------------------------------------
>
> *Heriot-Watt University is the Sunday Times Scottish University of the 
> Year 2011-2012.*
>
> Heriot-Watt University is a Scottish charity registered under charity 
> number SC000278.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.

Heriot-Watt University is the Sunday Times
Scottish University of the Year 2011-2012


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120227/fd13be37/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list