[Freeswitch-users] DTMF outbound call

ehermouet at bluetel.fr ehermouet at bluetel.fr
Thu May 23 19:06:15 MSD 2013


Ok i will test.

but Did you read that ?


It's not often time but now i see again message error
2013-05-23 15:24:44.452821 [WARNING] mod_sofia.c:1363 Pass 2833 mode 
may not work on a transcoded call.
2013-05-23 15:24:44.452821 [DEBUG] switch_rtp.c:2534 Correct ip/port 
confirmed.
2013-05-23 15:24:44.372152 [WARNING] mod_sofia.c:1363 Pass 2833 mode 
may not work on a transcoded call.

here my config file external.xml and internal.xml

<profile name="external">
	<!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
	<!--aliases are other names that will work as a valid profile name for 
this profile-->
	<aliases>
		<!--
		<alias name="outbound"/>
		<alias name="nat"/>
		-->
	</aliases>

	<!-- Outbound Registrations -->
	<gateways>
		<X-PRE-PROCESS cmd="include" data="external/*.xml"/>
	</gateways>

	<domains>
		<domain name="all" alias="false" parse="true"/>
	</domains>

	<settings>
		<param name="inbound-late-negotiation" value="true"/>
		<param name="debug" value="7"/>
		<param name="pass-rfc2833" value="true"/>
		<param name="sip-trace" value="true"/>
		<param name="sip-capture" value="no"/>
		<param name="rfc2833-pt" value="101"/>
		<param name="sip-port" value="$${external_sip_port}"/>
		<param name="dialplan" value="XML"/>
		<param name="context" value="public"/>
		<param name="dtmf-duration" value="2000"/>
		<param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
		<param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/>
		<param name="hold-music" value="$${hold_music}"/>
		<param name="zrtp-passthru" value="true"/>
		<param name="rtp-timer-name" value="soft"/>
		<param name="local-network-acl" value="localnet.auto"/>
		<param name="manage-presence" value="false"/>
		<param name="inbound-codec-negotiation" value="generous"/>
		<param name="nonce-ttl" value="60"/>
		<param name="auth-calls" value="false"/>
		<param name="rtp-ip" value="$${local_ip_v4}"/>
		<param name="sip-ip" value="$${local_ip_v4}"/>
		<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
		<param name="ext-sip-ip" value="$${external_sip_ip}"/>
		<param name="rtp-timeout-sec" value="300"/>
		<param name="rtp-hold-timeout-sec" value="1800"/>
		<param name="tls" value="$${external_ssl_enable}"/>
		<param name="tls-only" value="false"/>
		<param name="tls-bind-params" value="transport=tls"/>
		<param name="tls-sip-port" value="$${external_tls_port}"/>
		<param name="tls-cert-dir" value="$${external_ssl_dir}"/>
		<param name="tls-passphrase" value=""/>
		<param name="tls-verify-date" value="true"/>
		<param name="tls-verify-policy" value="none"/>
		<param name="tls-verify-depth" value="2"/>
		<param name="tls-verify-in-subjects" value=""/>
		<param name="tls-version" value="$${sip_tls_version}"/>

	</settings>
</profile>


<profile name="internal">
	<!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files -->
	<!--aliases are other names that will work as a valid profile name for 
this profile-->
	<aliases>
		<!--
		<alias name="default"/>
		-->
	</aliases>

	<!-- Outbound Registrations -->
	<gateways>
		<X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
	</gateways>

	<domains>
		<!-- indicator to parse the directory for domains with parse="true" 
to get gateways-->
		<!--<domain name="$${domain}" parse="true"/>-->
		<!-- indicator to parse the directory for domains with parse="true" 
to get gateways and alias every domain to this profile -->
		<!--<domain name="all" alias="true" parse="true"/>-->
		<domain name="all" alias="true" parse="false"/>
	</domains>

	<settings>
		<param name="inbound-late-negotiation" value="true"/>
		<param name="debug" value="7"/>
		<param name="sip-trace" value="true"/>
		<param name="sip-capture" value="true"/>
		<param name="watchdog-enabled" value="no"/>
		<param name="watchdog-step-timeout" value="30000"/>
		<param name="watchdog-event-timeout" value="30000"/>
		<param name="log-auth-failures" value="true"/>
		<param name="forward-unsolicited-mwi-notify" value="false"/>
		<param name="context" value="public"/>
		<param name="rfc2833-pt" value="101"/>
		<param name="pass-rfc2833" value="true"/>
		<param name="sip-port" value="$${internal_sip_port}"/>
		<param name="dialplan" value="XML"/>
		<param name="dtmf-duration" value="2000"/>
		<param name="inbound-codec-prefs" value="$${global_codec_prefs}"/>
		<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
		<param name="rtp-timer-name" value="soft"/>
		<param name="rtp-ip" value="$${local_ip_v4}"/>
		<param name="sip-ip" value="$${local_ip_v4}"/>
		<param name="hold-music" value="$${hold_music}"/>
		<param name="apply-nat-acl" value="nat.auto"/>
		<!--<param name="apply-inbound-acl" value="domains"/>-->
		<param name="local-network-acl" value="localnet.auto"/>
		<param name="record-path" value="$${recordings_dir}"/>
		<param name="record-template" 
value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
		<param name="manage-presence" value="true"/>
		<param name="presence-hosts" value="$${domain},$${local_ip_v4}"/>
		<param name="presence-privacy" value="$${presence_privacy}"/>
		<param name="inbound-codec-negotiation" value="generous"/>
		<param name="tls" value="$${internal_ssl_enable}"/>
		<param name="tls-only" value="false"/>
		<param name="tls-bind-params" value="transport=tls"/>
		<param name="tls-sip-port" value="$${internal_tls_port}"/>
		<param name="tls-cert-dir" value="$${internal_ssl_dir}"/>
		<param name="tls-passphrase" value=""/>
		<param name="tls-verify-date" value="true"/>
		<param name="tls-verify-policy" value="none"/>
		<param name="tls-verify-depth" value="2"/>
		<param name="tls-verify-in-subjects" value=""/>
		<param name="tls-version" value="$${sip_tls_version}"/>
		<param name="nonce-ttl" value="60"/>
		<!--<param name="auth-calls" value="$${internal_auth_calls}"/>-->
		<param name="inbound-reg-force-matching-username" value="true"/>
		<param name="auth-all-packets" value="false"/>
		<param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
		<param name="ext-sip-ip" value="$${external_sip_ip}"/>
		<param name="rtp-timeout-sec" value="300"/>
		<param name="rtp-hold-timeout-sec" value="1800"/>
		<param name="force-register-domain" value="$${domain}"/>
		<param name="force-subscription-domain" value="$${domain}"/>
		<param name="force-register-db-domain" value="$${domain}"/>
		<param name="challenge-realm" value="auto_from"/>
		<param name="pass-callee-id" value="true"/>
	</settings>
</profile>


Tks adavnce for your help

Le 2013-05-23 16:58, Michael Jerris a écrit :
> you can use tcpdump to get a pcap.  I didn't see anything wrong in
> review of what you have posted so far.
>
> On May 23, 2013, at 10:05 AM, ehermouet at bluetel.fr wrote:
>
>> pcap.
>>
>> i send you the xml file and log in my previous email... because i 
>> see
>> problem sometime... i'm sure i have error on my xml file. can you 
>> check
>> it. ?
>>
>> tks
>>
>> Le 2013-05-23 15:24, Michael Jerris a écrit :
>>> How do you use what?
>>>
>>> On May 23, 2013, at 9:07 AM, ehermouet at bluetel.fr wrote:
>>>
>>>> how do you use it without interface ? it's server with only ssh
>>>> access.
>>>> tks
>>>> Le 2013-05-23 14:58, Michael Jerris a écrit :
>>>>> this log does not seem to have a complete call let alone any
>>>>> attempt
>>>>> at dtmf.  I don't see anything wrong from this log but as I said,
>>>>> its
>>>>> incomplete.  If you pcap the traffic, do you see 2833 dtmf 
>>>>> flowing
>>>>> ?
>>>>>
>>>>> Mike
>>>>>
>>>>> On May 23, 2013, at 8:44 AM, ehermouet at bluetel.fr wrote:
>>>>>
>>>>>> Yes
>>>>>>
>>>>>> http://pastebin.freeswitch.org/20947
>>>>>>
>>>>>> Le 2013-05-23 14:28, Michael Jerris a écrit :
>>>>>>> Did you ever post a new log after you changed codec negotiation
>>>>>>> settings?
>>>>>>>
>>>
>>>
>
>
> 
> _________________________________________________________________________
> 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



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