[Freeswitch-users] Where are my freetdm sip_headers?

Mitja unau0 at gmx.de
Fri Jun 15 09:44:26 MSD 2012


Hello all,

I'm have some problems with my freetdm module lately. To be more precise 
freetdm with ftmod_sangoma_isdn for ISDN handling.

One of which is, that I cant get early media to be played in pre_answer 
state (aka progress_media). But I think I saw a Jira on that one, where 
I will try to get the information/contribute if possible.

The other problem I have is that on an incoming call I cant reliably get 
the TON for displaying purpouses. Actually Display would be alright, but 
calling back the other side is just uncomfortable if your number is 
missing a leading 0.
So I thought I just have to activate the sip_headers in 
autoloads/freetdm.conf.xml as described here:
http://wiki.freeswitch.org/wiki/Mod_freetdm#Channel_Variables (actually 
right above)

But when I call my info Application, I cant see any of the headers.

freetdm.conf.xml: (I set the param sip_headers three times after several 
tries)
<configuration name="freetdm.conf" description="Freetdm Configuration">
<settings>
<param name="debug" value="0"/>
<param name="sip_headers" value="true" />
<!--<param name="hold-music" value="$${moh_uri}"/>-->
<!--<param name="enable-analog-option" value="call-swap"/>-->
<!--<param name="enable-analog-option" value="3-way"/>-->
</settings>
<config_profiles>
<profile name="my_pri_te_1">
<param name="switchtype" value="euroisdn" />
<param name="interface" value="pri_cpe"/>
<param name="sip_headers" value="true" />
</profile>
</config_profiles>
<sangoma_pri_spans>
<span name="wp1" cfgprofile="my_pri_te_1">
<param name="dialplan" value="XML"/>
<param name="context" value="from_pstn"/>
<param name="tei" value="0"/>
<param name="overlap" value="no"/>
<param name="min_digits" value="4"/>
<param name="setup arbitration" value="no"/>
<param name="facility" value="yes"/>
<xparam name="facility-timeout" value="0"/>
<param name="outbound-called-ton" value="national"/>
<param name="outbound-called-npi" value="ISDN"/>
<param name="outbound-calling-ton" value="national"/>
<param name="outbound-calling-npi" value="ISDN"/>
<param name="outbound-rdnis-ton" value="national"/>
<param name="outbound-rdnis-npi" value="ISDN"/>
<param name="outbound-bearer_cap" value="speech"/>
<param name="outbound-bearer_layer1" value="alaw"/>
<param name="sip_headers" value="true" />
<yparam name="early-media-override" value="on-alert" />
<xparam name="local-number" value=""/>
</span>
</sangoma_pri_spans>
<analog_spans>
</analog_spans>
</configuration>


Output of Info on incoming call:
2012-06-15 07:19:41.691799 [INFO] mod_dptools.c:1463 CHANNEL_DATA:
Channel-State: [CS_EXECUTE]
Channel-Call-State: [RINGING]
Channel-State-Number: [4]
Channel-Name: [FreeTDM/1:6/8001]
Unique-ID: [7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Channel-HIT-Dialplan: [true]
Channel-Call-UUID: [7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
Answer-State: [ringing]
Channel-Read-Codec-Name: [PCMA]
Channel-Read-Codec-Rate: [8000]
Channel-Read-Codec-Bit-Rate: [64000]
Channel-Write-Codec-Name: [PCMA]
Channel-Write-Codec-Rate: [8000]
Channel-Write-Codec-Bit-Rate: [64000]
Caller-Direction: [inbound]
Caller-Username: [FreeTDM]
Caller-Dialplan: [XML]
Caller-Caller-ID-Number: [152532xxxxx]
Caller-ANI: [152532xxxxx]
Caller-Destination-Number: [8001]
Caller-Unique-ID: [7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
Caller-Source: [mod_freetdm]
Caller-Context: [from_pstn]
Caller-Channel-Name: [FreeTDM/1:6/8001]
Caller-Profile-Index: [1]
Caller-Profile-Created-Time: [1339737581650800]
Caller-Channel-Created-Time: [1339737581650800]
Caller-Channel-Answered-Time: [0]
Caller-Channel-Progress-Time: [0]
Caller-Channel-Progress-Media-Time: [0]
Caller-Channel-Hangup-Time: [0]
Caller-Channel-Transfer-Time: [0]
Caller-Screen-Bit: [true]
Caller-Privacy-Hide-Name: [false]
Caller-Privacy-Hide-Number: [false]
variable_direction: [inbound]
variable_uuid: [7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
variable_session_id: [18]
variable_read_codec: [PCMA]
variable_read_rate: [8000]
variable_write_codec: [PCMA]
variable_write_rate: [8000]
variable_channel_name: [FreeTDM/1:6/8001]
variable_freetdm_span_name: [wp1]
variable_freetdm_span_number: [1]
variable_freetdm_chan_number: [6]
variable_freetdm_bearer_capability: [0]
variable_freetdm_bearer_layer1: [3]
variable_freetdm_calling_party_category: [unknown]
variable_screening_ind: [network-provided]
variable_presentation_ind: [presentation-allowed]
variable_call_uuid: [7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
variable_process_cdr: [false]
variable_effective_caller_id_number: [0152532xxxxx]
variable_et_first_dialed_ext: [8001]
variable_absolute_codec_string: [PCMA]
variable_continue_on_fail: [true]
variable_hangup_after_bridge: [false]
variable_nolocal:execute_on_ring: [hash 
insert/last_caller/8001/7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
variable_nolocal:ignore_display_updates: [true]
variable_export_vars: 
[absolute_codec_string,nolocal:execute_on_ring,nolocal:ignore_display_updates]
variable_record_session: [015253xxxxx.8001.2012-6-15-7-19-41.wav]
variable_execute_on_answer: [lua pickup_group_cleanup.lua 
7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
variable_api_hangup_hook: [lua pickup_group_cleanup.lua 
7e1f9f6c-f5e3-42ac-9311-341d09dcb7be]
variable_current_application: [info]


Am I overlooking something, is my ISDN knowledge just terrible or do I 
have to configure something another way round?

Thanks in advance!

Regards
Mitja




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