Hi ,
I have started using freeswitch and impressed with it, how easy to set up and
run quick examples. It is awesome!
What I do here is I bridge the call between IVR and a remote phone. Then remot
eparty pick up the phone and, IVR plays a prompt. I want the remote user
listen all prompt content.
If we executed these 2 action inside my dialmap extension , playback action
don't wait until remote end pick up the phone. Therefore, the user misses the
beginning part of prompt.
<action application="answer"/>
<action application="playback" data="/home/eakarsu/kurumcell.g729"/>
Now I started using LUA scripts. When I execute " originate
sofia/gateway/voipwise/[EMAIL PROTECTED] 1238" from FS
command line, I am getting error and calls dropped. I have attached log
file where 'nua_r_cancel: unknown event 32: 200 Ok" debug statement is
inserted. My dialmap extension and kurumcell.lua script
is here. call is dropped.
I apprecciate if you can guide me on this.
<extension name="kurumcell_test">
<condition field="destination_number" expression="^1238$">
<action application="set" data="execute_on_answer=kurumcell.lua"/>
</condition>
</extension>
kurumcell.lua:
-- answer the call
session:answer();
-- play a file
session:streamFile("/home/eakarsu/kurumcell.g729");
-- hangup
session:hangup();
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:140
switch_core_standard_on_execute() sofia/external/[EMAIL PROTECTED] Execute
set(execute_on_answer=kurumcell.lua)
2008-07-23 20:52:25 [DEBUG] mod_dptools.c:715 set_function() SET
[execute_on_answer]=[kurumcell.lua]
2008-07-23 20:52:25 [NOTICE] switch_core_state_machine.c:157
switch_core_standard_on_execute() Hangup sofia/external/[EMAIL PROTECTED]
[CS_EXECUTE] [NORMAL_CLEARING]
2008-07-23 20:52:25 [DEBUG] switch_channel.c:1360
switch_channel_perform_hangup() Kill sofia/external/[EMAIL PROTECTED] [KILL]
2008-07-23 20:52:25 [DEBUG] switch_core_session.c:676
switch_core_session_signal_state_change() Kill sofia/external/[EMAIL PROTECTED]
[BREAK]
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:430
switch_core_session_run() (sofia/external/[EMAIL PROTECTED]) State EXECUTE
going to sleep
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/[EMAIL PROTECTED] Running State Change
CS_HANGUP
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/[EMAIL PROTECTED]) State HANGUP
2008-07-23 20:52:25 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/[EMAIL PROTECTED] hanging up, cause: NORMAL_CLEARING
2008-07-23 20:52:25 [DEBUG] mod_sofia.c:300 sofia_on_hangup() Sending CANCEL to
sofia/external/[EMAIL PROTECTED]
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/[EMAIL
PROTECTED], cause: NORMAL_CLEARING
2008-07-23 20:52:25 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/[EMAIL PROTECTED]) State HANGUP going
to sleep
2008-07-23 20:52:25 [DEBUG] switch_core_session.c:735
switch_core_session_thread() Session 6 (sofia/external/[EMAIL PROTECTED])
Locked, Waiting on external entities
2008-07-23 20:52:25 [NOTICE] switch_core_session.c:753
switch_core_session_thread() Session 6 (sofia/external/[EMAIL PROTECTED]) Ended
2008-07-23 20:52:25 [NOTICE] switch_core_session.c:755
switch_core_session_thread() Close Channel sofia/external/[EMAIL PROTECTED]
[CS_HANGUP]
2008-07-23 20:52:25 [DEBUG] sofia.c:319 sofia_event_callback() nua_r_cancel:
unknown event 32: 200 Ok
2008-07-23 20:52:25 [DEBUG] sofia.c:190 sofia_event_callback() event
[nua_r_invite] status [487][Request terminated] session: n/a
2008-07-23 20:52:25 [DEBUG] sofia.c:190 sofia_event_callback() event
[nua_i_state] status [487][Request terminated] session: n/a
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org