VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
svetikvoip at gmail.com Guest
|
Posted: Mon Sep 21, 2009 2:28 pm Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
Hi,
I have trouble recording incoming calls with FreeSwitch.
I have followed the instruction from Misc. Dialplan Tools record session
(http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session)
It works well for outgoing calls, but I have the problem with incoming calls.
The person who is calling does not hear ring tone, he hears just the silence until
I pick up the phone. Everything else is working, we can talk, conversation is recorded.
Here is a copy of my dialplan for incoming calls
/usr/local/freeswitch/conf/dialplan/public/voipms.xml
<include>
<extension name="voipms"> <!-- your provider or any name you'd like to call it -->
<condition field="destination_number" expression="XXXXXXXXXX"> <!-- your DID for this gateway-->
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2009"/>
<action application="set" data="RECORD_SOFTWARE=FreeSwitch"/>
<action application="set" data="RECORD_ARTIST=FreeSwitch"/>
<action application="set" data="RECORD_COMMENT=FreeSwitch"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="RECORD_ANSWER_REQ=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="bridge" data="user/user1@${domain_name}"/>
</condition>
</include>
for outcoming calls I have a similar code added to the
/usr/local/freeswitch/conf/dialplan/default/user1.xml and it works well.
I have tried to move the line
<action application="set" data="ringback=${us-ring}"/>
between the lines
<action application="record_session
and
<action application="bridge"
but it did not solve my problem.
Any ideas what am I doing wrong and how to fix it?
Igor |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Sep 21, 2009 2:48 pm Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
set ringback before record_session and also set transfer_ringback because record_session causes an pre-answer.
/b
On Sep 21, 2009, at 2:13 PM, Svetik VOIP wrote:
Quote: | Hi,
I have trouble recording incoming calls with FreeSwitch.
I have followed the instruction from Misc. Dialplan Tools record session
(http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session)
It works well for outgoing calls, but I have the problem with incoming calls.
The person who is calling does not hear ring tone, he hears just the silence until
I pick up the phone. Everything else is working, we can talk, conversation is recorded.
Here is a copy of my dialplan for incoming calls
/usr/local/freeswitch/conf/dialplan/public/voipms.xml
<include>
<extension name="voipms"> <!-- your provider or any name you'd like to call it -->
<condition field="destination_number" expression="XXXXXXXXXX"> <!-- your DID for this gateway-->
<action application="set" data="RECORD_TITLE=Recording ${destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c) 2009"/>
<action application="set" data="RECORD_SOFTWARE=FreeSwitch"/>
<action application="set" data="RECORD_ARTIST=FreeSwitch"/>
<action application="set" data="RECORD_COMMENT=FreeSwitch"/>
<action application="set" data="RECORD_DATE=${strftime(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="RECORD_ANSWER_REQ=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="record_session" data="$${base_dir}/recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_${destination_number}_${caller_id_number}.wav"/>
<action application="bridge" data="user/user1@${domain_name}"/>
</condition>
</include> |
|
|
Back to top |
|
|
svetikvoip at gmail.com Guest
|
Posted: Wed Sep 23, 2009 10:11 am Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
Brian,
Thank yo very much for your reply.
I have tried to add transfer_ringback action, but it did not solve my problem.
Destination phone is ringing, but the person who is calling does not hear ringing tone in hte handset.
Is there anything in the logfile that can help you to identify the problem?
Closest I can see is:
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1738 Raw Codec Activation Success L16@8000hz 1 channel 20ms
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1797 Play Ringback Tone [%(2000,4000,440.0,480.0)]
2009-09-22 17:18:05.447237 [DEBUG] switch_core_io.c:232 sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) receive message [TRANSCODING_NECESSARY]
2009-09-22 17:18:05.463192 [DEBUG] sofia.c:3312 Channel sofia/internal/sip:main@192.168.0.121:5060 entering state [proceeding][180]
2009-09-22 17:18:05.463192 [NOTICE] sofia.c:3376 Ring-Ready sofia/internal/sip:main@192.168.0.121:5060!
2009-09-22 17:18:14.739182 [DEBUG] sofia.c:3312 Channel sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) entering state [terminated][487]
2009-09-22 17:18:14.739182 [NOTICE] sofia.c:3873 Hangup sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) [CS_EXECUTE] [ORIGINATOR_CANCEL]
Thank you,
Igor
Quote: | set ringback before record_session and also set transfer_ringback
because record_session causes an pre-answer.
/b
On Sep 21, 2009, at 2:13 PM, Svetik VOIP wrote:
Quote: | Hi,
I have trouble recording incoming calls with FreeSwitch.
I have followed the instruction from Misc. Dialplan Tools record
session
(http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session)
It works well for outgoing calls, but I have the problem with
incoming calls.
The person who is calling does not hear ring tone, he hears just the
silence until
I pick up the phone. Everything else is working, we can talk,
conversation is recorded.
Here is a copy of my dialplan for incoming calls
/usr/local/freeswitch/conf/dialplan/public/voipms.xml
<include>
<extension name="voipms"> <!-- your provider or any name you'd
like to call it -->
<condition field="destination_number"
expression="XXXXXXXXXX"> <!-- your DID for this gateway-->
<action application="set" data="RECORD_TITLE=Recording $
{destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:
%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c)
2009"/>
<action application="set"
data="RECORD_SOFTWARE=FreeSwitch"/>
<action application="set"
data="RECORD_ARTIST=FreeSwitch"/>
<action application="set"
data="RECORD_COMMENT=FreeSwitch"/>
<action application="set" data="RECORD_DATE=${strftime
(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="RECORD_ANSWER_REQ=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="record_session" data="$${base_dir}/
recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_$
{destination_number}_${caller_id_number}.wav"/>
<action application="bridge" data="user/user1@$
{domain_name}"/>
</condition>
</include>
|
|
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Thu Sep 24, 2009 11:26 am Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
On Wed, Sep 23, 2009 at 7:34 AM, Svetik VOIP <svetikvoip@gmail.com (svetikvoip@gmail.com)> wrote:
Quote: | Brian,
Thank yo very much for your reply.
I have tried to add transfer_ringback action, but it did not solve my problem.
Destination phone is ringing, but the person who is calling does not hear ringing tone in hte handset.
Is there anything in the logfile that can help you to identify the problem?
| What kind of system is the calling party connected to? It looks like a 180 is sent out by FS:
2009-09-22 17:18:05.463192 [DEBUG] sofia.c:3312 Channel sofia/internal/sip:main@192.168.0.121:5060 entering state [proceeding][180]
At that point the server at the originating side *should* generate pretend ringing for the calling phone. If that is not happening then you need to see what's going on at the originating side. Is it a SIP provider?
-MC
Quote: |
Closest I can see is:
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1738 Raw Codec Activation Success L16@8000hz 1 channel 20ms
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1797 Play Ringback Tone [%(2000,4000,440.0,480.0)]
2009-09-22 17:18:05.447237 [DEBUG] switch_core_io.c:232 sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) receive message [TRANSCODING_NECESSARY]
2009-09-22 17:18:05.463192 [DEBUG] sofia.c:3312 Channel sofia/internal/sip:main@192.168.0.121:5060 entering state [proceeding][180]
2009-09-22 17:18:05.463192 [NOTICE] sofia.c:3376 Ring-Ready sofia/internal/sip:main@192.168.0.121:5060!
2009-09-22 17:18:14.739182 [DEBUG] sofia.c:3312 Channel sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) entering state [terminated][487]
2009-09-22 17:18:14.739182 [NOTICE] sofia.c:3873 Hangup sofia/external/4163641113@67.205.74.164 (4163641113@67.205.74.164) [CS_EXECUTE] [ORIGINATOR_CANCEL]
Thank you,
Igor
Quote: | set ringback before record_session and also set transfer_ringback
because record_session causes an pre-answer.
/b
On Sep 21, 2009, at 2:13 PM, Svetik VOIP wrote:
Quote: | Hi,
I have trouble recording incoming calls with FreeSwitch.
I have followed the instruction from Misc. Dialplan Tools record
session
(http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_session)
It works well for outgoing calls, but I have the problem with
incoming calls.
The person who is calling does not hear ring tone, he hears just the
silence until
I pick up the phone. Everything else is working, we can talk,
conversation is recorded.
Here is a copy of my dialplan for incoming calls
/usr/local/freeswitch/conf/dialplan/public/voipms.xml
<include>
<extension name="voipms"> <!-- your provider or any name you'd
like to call it -->
<condition field="destination_number"
expression="XXXXXXXXXX"> <!-- your DID for this gateway-->
<action application="set" data="RECORD_TITLE=Recording $
{destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:
%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c)
2009"/>
<action application="set"
data="RECORD_SOFTWARE=FreeSwitch"/>
<action application="set"
data="RECORD_ARTIST=FreeSwitch"/>
<action application="set"
data="RECORD_COMMENT=FreeSwitch"/>
<action application="set" data="RECORD_DATE=${strftime
(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="RECORD_ANSWER_REQ=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="record_session" data="$${base_dir}/
recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_$
{destination_number}_${caller_id_number}.wav"/>
<action application="bridge" data="user/user1@$
{domain_name}"/>
</condition>
</include>
|
|
_______________________________________________
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 |
|
|
svetikvoip at gmail.com Guest
|
Posted: Fri Sep 25, 2009 1:42 pm Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
Hi guys,
I have solve my problem by adding
<action application="ring_ready" />
before
<action application="set" data="ringback=${us-ring}"/>
I was looking at the http://wiki.freeswitch.org/wiki/Home_PBX_Example
and noticed this line. Tried it and it works like a charm.
Thanks everybody, especially Brian and MC.
Igor
Quote: | Brian,
Quote: |
Thank you very much for your reply.
I have tried to add transfer_ringback action, but it did not solve my
problem.
Destination phone is ringing, but the person who is calling does not
hear ringing tone in hte handset.
Is there anything in the logfile that can help you to identify the problem?
| What kind of system is the calling party connected to? It looks like a
180 is sent out by FS:
2009-09-22 17:18:05.463192 [DEBUG] sofia.c:3312 Channel sofia/internal/
sip:main at 192.168.0.121:5060 entering state [proceeding][180]
At that point the server at the originating side *should* generate
pretend ringing for the calling phone. If that is not happening then
you need to see what's going on at the originating side. Is it a SIP provider?
-MC
Quote: |
Closest I can see is:
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1738 Raw
Codec Activation Success L16 at 8000hz 1 channel 20ms
2009-09-22 17:18:05.444402 [DEBUG] switch_ivr_originate.c:1797 Play
Ringback Tone [%(2000,4000,440.0,480.0)]
2009-09-22 17:18:05.447237 [DEBUG] switch_core_io.c:232
sofia/external/
4163641113 at 67.205.74.164 receive message [TRANSCODING_NECESSARY]
2009-09-22 17:18:05.463192 [DEBUG] sofia.c:3312 Channel
sofia/internal/ sip:main at 192.168.0.121:5060 entering state
[proceeding][180]
2009-09-22 17:18:05.463192 [NOTICE] sofia.c:3376 Ring-Ready
sofia/internal/ sip:main at 192.168.0.121:5060!
2009-09-22 17:18:14.739182 [DEBUG] sofia.c:3312 Channel
sofia/external/
4163641113 at 67.205.74.164 entering state [terminated][487]
2009-09-22 17:18:14.739182 [NOTICE] sofia.c:3873 Hangup
sofia/external/
4163641113 at 67.205.74.164 [CS_EXECUTE] [ORIGINATOR_CANCEL]
Thank you,
Igor
Quote: | set ringback before record_session and also set transfer_ringback
because record_session causes an pre-answer.
/b
On Sep 21, 2009, at 2:13 PM, Svetik VOIP wrote:
Quote: | Hi,
I have trouble recording incoming calls with FreeSwitch.
I have followed the instruction from Misc. Dialplan Tools record
session
(http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_record_sessi
on) It works well for outgoing calls, but I have the problem with
incoming calls.
The person who is calling does not hear ring tone, he hears just
the silence until I pick up the phone. Everything else is working,
we can talk, conversation is recorded.
Here is a copy of my dialplan for incoming calls
/usr/local/freeswitch/conf/dialplan/public/voipms.xml
<include>
<extension name="voipms"> <!-- your provider or any name you'd
like to call it -->
<condition field="destination_number"
expression="XXXXXXXXXX"> <!-- your DID for this gateway-->
<action application="set" data="RECORD_TITLE=Recording
$ {destination_number} ${caller_id_number} ${strftime(%Y-%m-%d %H:
%M)}"/>
<action application="set" data="RECORD_COPYRIGHT=(c)
2009"/>
<action application="set"
data="RECORD_SOFTWARE=FreeSwitch"/>
<action application="set"
data="RECORD_ARTIST=FreeSwitch"/>
<action application="set"
data="RECORD_COMMENT=FreeSwitch"/>
<action application="set" data="RECORD_DATE=${strftime
(%Y-%m-%d %H:%M)}"/>
<action application="set" data="RECORD_STEREO=true"/>
<action application="set" data="RECORD_ANSWER_REQ=true"/>
<action application="set" data="ringback=${us-ring}"/>
<action application="record_session"
data="$${base_dir}/
recordings/archive/${strftime(%Y-%m-%d-%H-%M-%S)}_$
{destination_number}_${caller_id_number}.wav"/>
<action application="bridge" data="user/user1@$
{domain_name}"/>
</condition>
</include>
|
|
_______________________________________________
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-us
ers
http://www.freeswitch.org
|
|
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Fri Sep 25, 2009 1:53 pm Post subject: [Freeswitch-users] No ring tone while recording incoming cal |
|
|
Doesn't make sense because ring_ready sends only a 180.... set ringback then pre_answer would make use do 183.
/b
On Sep 25, 2009, at 1:27 PM, Svetik VOIP wrote:
Quote: | Hi guys,
I have solve my problem by adding
<action application="ring_ready" />
before
<action application="set" data="ringback=${us-ring}"/>
I was looking at the http://wiki.freeswitch.org/wiki/Home_PBX_Example
and noticed this line. Tried it and it works like a charm.
Thanks everybody, especially Brian and MC.
Igor
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|