Олег Шалаев  > Мой Debian-опыт

Моя конфигурация twinkle для двух провайдеров

(Все логины, пароли и номера телефонов изменены.)

Содержимое файла ~/.twinkle/twinkle.sys:

# AUDIO
dev_ringtone=alsa:default
dev_speaker=alsa:plug:headset
dev_mic=alsa:plug:headset
au_reduce_noise_mic=no
alsa_play_period_size=128
alsa_capture_period_size=32
oss_fragment_size=128

# LOG
log_max_size=5
log_show_sip=yes
log_show_stun=yes
log_show_memory=yes
log_show_debug=no

# GUI
gui_use_systray=yes
gui_hide_on_close=yes
gui_auto_show_incoming=no
gui_auto_show_timeout=10

# Address book
ab_show_sip_only=no
ab_lookup_name=yes
ab_override_display=yes
ab_lookup_photo=yes

# Call history
ch_max_size=50

# Services
call_waiting=yes
hangup_both_3way=yes

# Startup
start_user_profile=sipcall.ch
start_user_profile=sipnet
start_user_host=
start_user_nic=
start_hidden=yes

# Network
sip_udp_port=5060
rtp_port=8000

# Ring tones
play_ringtone=yes
ringtone_file=
play_ringback=yes
ringback_file=

# Persistent user interface state
last_used_profile=sipnet
redial_url=sip:+78121234567@sipnet.ru
redial_display=sssss
redial_subject=
redial_profile=sipnet
show_display=yes
Содержимое файла ~/.twinkle/sipnet.cfg:
# USER
user_name=5555555
user_domain=sipnet.ru
user_display=Oleg
user_organization=
auth_realm=
auth_name=5555555
auth_pass=moiParol

# SIP SERVER
outbound_proxy=sipnet.ru
all_requests_to_proxy=no
non_resolvable_to_proxy=no
registrar=
register_at_startup=yes
registration_time=3600

# RTP AUDIO
codecs=g711u,gsm,g711a
ptime=20
speex_nb_payload_type=97
speex_wb_payload_type=98
speex_uwb_payload_type=99
speex_bit_rate_type=cbr
speex_vad=yes
speex_dtx=no
speex_penh=yes
speex_complexity=2
ilbc_payload_type=96
ilbc_mode=30
g726_16_payload_type=102
g726_24_payload_type=103
g726_32_payload_type=104
g726_40_payload_type=105
dtmf_transport=auto
dtmf_payload_type=101
dtmf_duration=100
dtmf_pause=40
dtmf_volume=10

# SIP PROTOCOL
hold_variant=rfc3264
check_max_forwards=no
allow_missing_contact_reg=yes
registration_time_in_contact=yes
compact_headers=no
encode_multi_values_as_list=yes
use_domain_in_contact=yes
allow_sdp_change=no
allow_redirection=yes
ask_user_to_redirect=yes
max_redirections=1
ext_100rel=supported
referee_hold=no
referrer_hold=yes
allow_refer=yes
ask_user_to_refer=yes
auto_refresh_refer_sub=no

# NAT
nat_public_ip=
stun_server=

g726_16_payload_type=102
# TIMERS
timer_noanswer=30
timer_nat_keepalive=30

# ADDRESS FORMAT
display_useronly_phone=yes
numerical_user_is_phone=no
remove_special_phone_symbols=yes
special_phone_symbols=-()/.

# RING TONES
ringtone_file=
ringback_file=

# SCRIPTS
script_incoming_call=
script_in_call_answered=
script_in_call_failed=
script_outgoing_call=
script_out_call_answered=
script_out_call_failed=
script_local_release=
script_remote_release=

# NUMBER CONVERSION

# SECURITY
zrtp_enabled=no
zrtp_goclear_warning=yes
zrtp_sdp=yes
zrtp_send_if_supported=no
Содержимое файла ~/.twinkle/sipcall.ch.cfg:
# USER
user_name=41615555555
user_domain=sip.backbone.ch
user_display=Oleg Shalaev
user_organization=
auth_realm=
auth_name=41615555555
auth_pass=moiParol

# SIP SERVER
outbound_proxy=sip.backbone.ch
all_requests_to_proxy=no
non_resolvable_to_proxy=no
registrar=
register_at_startup=yes
registration_time=3600

# RTP AUDIO
codecs=speex-uwb,speex-wb,g711a,g711u,gsm
ptime=20
speex_nb_payload_type=97
speex_wb_payload_type=98
speex_uwb_payload_type=99
speex_bit_rate_type=vbr
speex_vad=yes
speex_dtx=yes
speex_penh=yes
speex_complexity=2
ilbc_payload_type=96
ilbc_mode=30
g726_16_payload_type=102
g726_24_payload_type=103
g726_32_payload_type=104
g726_40_payload_type=105
dtmf_transport=inband
dtmf_payload_type=101
dtmf_duration=100
dtmf_pause=100
dtmf_volume=0

# SIP PROTOCOL
hold_variant=rfc2543
check_max_forwards=no
allow_missing_contact_reg=yes
registration_time_in_contact=yes
compact_headers=no
encode_multi_values_as_list=yes
use_domain_in_contact=no
allow_sdp_change=no
allow_redirection=yes
ask_user_to_redirect=yes
max_redirections=1
ext_100rel=supported
referee_hold=no
referrer_hold=yes
allow_refer=yes
ask_user_to_refer=yes
auto_refresh_refer_sub=no

# NAT
nat_public_ip=
stun_server=

g726_16_payload_type=102
# TIMERS
timer_noanswer=30
timer_nat_keepalive=30

# ADDRESS FORMAT
display_useronly_phone=yes
numerical_user_is_phone=no
remove_special_phone_symbols=yes
special_phone_symbols=-()/.

# RING TONES
ringtone_file=
ringback_file=

# SCRIPTS
script_incoming_call=
script_in_call_answered=
script_in_call_failed=
script_outgoing_call=
script_out_call_answered=
script_out_call_failed=
script_local_release=
script_remote_release=

# NUMBER CONVERSION

# SECURITY
zrtp_enabled=no
zrtp_goclear_warning=yes
zrtp_sdp=yes
zrtp_send_if_supported=no

Олег Шалаев
Last modified: Sat Jan 3 10:31:19 CST 2009