Telefon
| AVM Wiki >> Shell-Befehle >> telefon | @ whmf - IRC-Chat - hu nl it English |
| Community | Modelle | Zubehör | Environment | Konfiguration | Shell-Befehle | Software | Freetz | Lexikon | Tipps+Tricks | Bilder |
| Startup-Scripts | AVM-Befehle | BusyBox-Befehle | Linux-Befehle | Shared Libraries | Kernel-Module | Listings | Todo |
Contents |
Befehl
| Befehl: | telefon | Man | Code | Wiki | Freetz | IPPF | whmf | AVM | Web |
| Pfad: | /usr/bin | ||||||||
| Typ: | Executable, Daemon | ||||||||
| Status: | Closed Source oder Unfrei | ||||||||
| Pakete: | AVM_FON (CONFIG) | ||||||||
| Modelle: | 7170 4.80 (Listing) | ||||||||
| Remove: | TODO | ||||||||
| Funktion: | Telefonie Daemon | ||||||||
telefon kümmert sich um alle Belange der Telefonie, bei Festnetztelefonie kommt es ohne weitere Helfer aus, bei VoIP wird zusätzlich voipd verwendet, zur Unterstützung von DECT-Telefonie zusätzlich dect_manager. telefon realisiert auch die Anrufbeantworter über libtam.so.
Geschichte
telefon ist in jeder Hinsicht ein Programm das nicht die Handschrift sonstiger AVM-Programme trägt. Es nutzt binäre Konfigurationsdateien, hat skurile Shellargumente, sieht aus wie ein Programm das nicht zum System gehört. Der Grund liegt in der Geschichte von AVM, telefon ist eine Weiterentwicklung aus der Firmware der FRITZ!X TK-Anlagen (ab ca. 1998, interner Kurzname F!X oder FX). Dies erklärt auch die fx_* Konfigurationsnamen.
# strings /usr/bin/telefon | grep 'F!X' $Type: F!X_LINUX $Update: Capi $Version: 06.19.11 $Date: Apr 18 2008 $Time: 13:27:18
Aufgaben
- Wähl- und Tastatursteuerung und Tastencodes aller angeschlossenen Telefone
- Analog und ISDN Telefonie
- VoIP-Telefonie über voipd
- Erzeugung der Hörtöne
- Realisierung oder Handhabung aller Dienstmerkmale
- Uhrzeit-Synchronisation, wenn multid noch keine Uhrzeit weiß
- Steuerung der Festnetz- und Internet-Telefonie LEDs (detaillierter im Artikel LED)
- Callmonitor auf Port 1012
- (Port 1011)
Optionale Erweiterungen
- Verwaltung und Tastatursteuerung aller mobilen Endgeräte über libfoncontrol.so / libfoncclient.so
- Realisierung der Anrufbeantworter über libtam.so
Aufgerufen von
- rc.voip
- rc.dsl.sh (kill)
- setfactorydefaults (kill)
- prepare_fwupgrade (kill)
- supportdata (kill)
- supportdata (7270_521, --support)
- e17-isdn (7320, killall)
- tam_upload_voice_prompt (7270_521, --tam_get_mounted_path, --tam_import_vp)
Kommunikation
- TCP localhost: Port 8888 (Server, für ctlmgr)
- TCP localhost: Port 1011 (Server, todo)
- TCP *: Port 1012 (Server, Callmonitor)
- UPnP: foncontrol.xml (Server über libfoncontrol.so)
- DEV: avm_power (Client)
- DEV: avm_event (Client über libavm_event.so)
- DEV: watchdog (Client über libwdt.so)
- DEV: debug (7270, Client)
- DEV: new_led (7170, Client über libled.so und libtam.so)
- DEV: led (7270, Client über libled2.so und libtam.so)
- DEV: capi20 oder rcapi20 (Client über libcapi20.so)
- MEM: .ar7events (EventAdd über libboxlib.so)
- Socket: log (Client über libuClibc.so, openlog, vsyslog)
- Socket: foncontrol (Server über libfoncontrol.so)
- ME: me_telefon.ctl (7270, Server, temporär)
- ME: me_ctlmgr.ctl (7270, Client)
Konfiguration
- fx_cg
- fx_conf
- fx_def
- fx_lcr
- fonctrl (über libfoncontrol.so)
- foncontrol.xml (über libfoncontrol.so)
- foncontrol-scpd.xml (über libfoncontrol.so)
- ligd.gif (über libfoncontrol.so)
- foncontrol-template.xml (über libfoncontrol.so)
Tempfiles
- dtrace.pid (Abfrage)
- foncontrol.xml (ram) (über libfoncontrol.so)
- telefon.log (Erzeugung durch --support)
Aufruf
Keine Hilfefunktion telefon a<IP> # startet als Daemon telefon --support # erzeugt telefon.log telefon --tam_get_mounted_path # Pfad für tam_upload_voice_prompt telefon --tam_import_vp # Upload durch tam_upload_voice_prompt
Beispiele
Aus rc.voip:
telefon a127.0.0.1
In dtrace findet sich der String 'A127.0.0.1' - entweder ist das 'A' Case Insensitive oder Großschrift ist eine alternative Option.
Aus tam_upload_voice_prompt einer 7270 5.21:
telefon --tam_get_mounted_path
und:
telefon --tam_import_vp <tam_nr> <type> <path>/uvp.<tam_nr>.00<type>
Symbole
AddDDIBaseNumber AddSubMOH_ChannelNCCI_Datahandle AddToCalledPartyNumber AllertCall AllocConnection AllocUmlDataRoutingSlots AnswerCall AnswerCall_h AnswerFreeotherUmlData AnswerFreeothers_h BlockRing CAPI20_GET_MESSAGE CAPI20_GET_MESSAGE_WAIT CAPI20_GET_PROFILE CAPI20_ISINSTALLED CAPI20_PUT_MESSAGE CAPI20_REGISTER CAPI20_RELEASE CAPI_CMSG_2_MESSAGE CAPI_CMSG_ANSWER CAPI_CMSG_HEADER CAPI_GET_XCMSG CAPI_MESSAGE_2_CMSG CAPI_MESSAGE_2_XCMSG CAPI_PUT_CMSG CAPI_PUT_CMSG_ CAPI_XCMSG_HEADER CAPI_XCMSG_SETKEYS CA_MSEC CCBSCall CCBSClearLinkageID CCBSEraseReference CCBSGetReferenceCallingPN CCBSGetReferenceController CCBSGetReferenceSlot CCBSGetSlotLinkageID CCBSSetReferenceSlot CCBSSetSlotLinkageID CF_Numbers CF_Parameters CG_GetGenEntry CG_GetLogMode CG_GetNextTokenOfScriptEntry CG_GetRcvEntry CG_GetReport CG_GetReportTotals CG_GetResetMode CG_GetScriptEntry CG_GetSpecificTokenOfScriptEntry CG_Init CG_ParseLogScript CG_ParseRcvScript CG_PutReport CG_RcvIsCentral CG_ReInitTotals CG_SetGenReportOnSlot CG_SetRcvReportOnSlot CG_UpdateTotals CG_checkScript CG_checkSlot CIPValueFromMask CallDeflection CallForwarding ChargePulseSlot CheckCFAndCIDRouting CheckTAMSnoop CheckWeekendOrHoliday Check_MSN ClearConnection ClearLogEntry ClearMOH_ChannelNCCI ClearMOH_ChannelPLCI Compress_Number Connect ConnectBChannelRerout Connect_h ConvertFacillityPartyNumber Convert_PN_To_Internal DTMFinit DataService_AlertCall DataService_AnswerCall DataService_Disconnect_with_Reason DataService_Handle_CAPI_Msg DataService_Listen DataService_Register DataService_ReleaseCAPI Decode_Reason Decompress_Number DeformatI3309Data Dial Dial_h Disconnect DisconnectBChannelRerout Disconnect_h Disconnect_with_Reason Do3PTY DoECT DoLCR DoLCR_Fallback DoMOH Emergency Emergency_off Emergency_test EnterServiceSlot ErrorPrintf FC_Connect FC_Connect_resp FC_Disconnect_req FC_End3PTY FC_Equalizer_Changed_Ind FC_Get_Alarm FC_Hold FC_Keypad FC_Progress FC_Retrieve FC_Set_Alarm FC_Snoop FC_Start3PTY FC_UserUserData_Req FC_VoiceData_Resp FindDDINumber FindDDI_OKZ FindFAX_ModemNumber FindFirstLastNumber FindNT_Controller Find_Area Find_Controller_and_MSM_of_Slot Find_LKZ Flash_Read FormatI3309Data FreeConnection FreeUmlData GenerateCallCharge GetBChannelInfo GetCallTimeDuration GetCalledPartyNumber GetCalledPartyNumberStruct GetCalledSubaddressStruct GetCallingPartyNumber GetCallingPartyNumberStruct GetCallingSubaddressStruct GetConnectedPartyName GetConnectedPartyNumber GetConnectionBCCI GetConnectionByPLCI GetConnectionCCBSReference GetConnectionCIPValue GetConnectionD2Handle GetConnectionDisplay GetConnectionFacility GetConnectionHLC GetConnectionInUse GetConnectionInUseByFC GetConnectionInitiator GetConnectionInitiatorSlot GetConnectionLLC GetConnectionPLCI GetConnectionPendINFO GetConnectionProceedingState GetConnectionUserUser GetController GetDefaultCharge GetDigit GetExtCF GetFlashEnd GetFreeUmlData GetGenerateCallCharge GetInternalNumber GetLocalPartyName GetLocalPartyNumber GetLogEntry GetMSN GetNumberOfConnections GetNumberWithoutAmt GetPreselection GetProviderForAreaIndex GetSecondCallConID GetSecondCallingPartyNumber GetSecondCallingPartyNumberStruct GetServiceQuittung GetServiceSlot GetState GetTime_inSec_since1970 GetUmlDataInitiatorSlotofToID GetUmlDataUmlFromConIDofInitiatorSlot GetUmlDataUmlFromIDofToID GetUmlDataUmlToIDofFromID GetUmlDataofFromID GetUmlDataofInitiatorSlot GetUmlDataofToID Get_NT_UseSlot_Locked Get_date GetnthMSN HandleNT_3PTY HandleNT_ECT HandlePC_ISO Handle_CAPI_Msg Handle_Indication Handle_Overflow Help HoldRetrieve ISDN_CloseTransparent ISDN_OpenTransparent IncomingCall InitConnectionIDHandling InitLCR InitMOH Init_Analog Init_Transparent_Socket Init_day_clock IsSlotUsedbyUmlData IsotherUmlDataActive IsotherUmlDataActiveAnswerd Led LeseTeleData Listen LogCallCharge LogCallEnd LogCallLiveTimeEnd LogCallStart LogCallTimeStamp LogCapiCall MCID MonitorSendCALL NT_DTMFonSlot NT_EqualizeSlot NT_Mode_Overlapped_CPN_Keypad NT_TononSlot NT_WidebandSlot NewLOADREC OSTimeDly OpenMOH_Channel PickupfromSloti PowerManagement ProceedingCall ProgramTPA ProgressCall ProzessRemoteDigit PutDigit PutExtCF PutExtCFServedNb ReadConsoleISO ReadEEPROM_Data Read_Transparent_Socket RegisterCAPI ReleaseCAPI RemoteDialNT RemoteOFFHock RemoveDDIBaseNumber RemoveKnownCbC ResetDigit ResetServiceSlot ResetServiceSlotWaitingState ResetSuppres ResetT_NET_BoxtoVST ResetTeleData RingSlot SaveLogEntries SaveTeleData SendCCBSDeactRequest SendCCxxRequest SendCCxxRequest_withLinkageID SendCharge SendDigit SendDisplay SendInternalCF_Notify SendMOHtoDriver SendNextGetCF SendNotify SendPCUserUser SendToDBox SendUserUser Send_ACIP Send_MWI_Led_Event_Old_If Send_ManuReq Send_TAM_Display SetCalledPartyNumber SetCalledPartyNumberStruct SetCalledSubaddressStruct SetCallingPartyNumber SetCallingPartyNumberStruct SetCallingSubaddressStruct SetClockToValid SetConnectedPartyName SetConnectedPartyNumberStruct SetConnectionBCCI SetConnectionCCBSReference SetConnectionCIPValue SetConnectionController SetConnectionD2Handle SetConnectionDisplay SetConnectionFacility SetConnectionHLC SetConnectionInUseByFC SetConnectionInUseOutgoing SetConnectionInUseToIncomming SetConnectionInitiator SetConnectionLLC SetConnectionPLCI SetConnectionPendINFO SetConnectionProceedingState SetConnectionUserUser SetController_InterfaceMode SetFlashType SetGenerateCallCharge SetISDN_Loopback SetInternalCF SetInternalInitiatorNumber SetInternalNumber SetLocalPartyName SetMOH_ChannelNCCI SetMOH_ChannelPLCI SetMSN SetPOTSFlash SetSIPRules SetSecondCallConID SetSecondCallingPartyNumber SetSecondCallingPartyNumberStruct SetState SetSwissvoiceEcho Set_3PTYTimeslot Set_NT_UseSlot Set_Timeslot StateChange StopBChannelRerout Stop_Telefon_Appl Store_Holidays SupplementaryService_Init Synchron_day_clock TAM_Disconect TAM_MWI_Indication TP TelePoll Telefon_Get_MOH_Data Telefon_Hangup Telefon_Init Telefon_Interact TestForPreselection TestI3309Start TestMOH_ChannelNCCI TestMOH_ChannelPLCI TononSlot Transparent_Rx Transparent_Tx Troja_Exit Troja_Init Troja_Poll UpdateCF WriteConsoleBlockISO WriteConsoleISOPrintf WriteConsoleISOPuts WriteEEPROM_Data Write_Transparent_Socket buildStruct_CalledPartySubadress buildStruct_FacilityPartyNumber capi_startstop check_monitor_sockets create_config default_add_to_phonebook delete_new_phonebook get_reboot_count get_uptime main monitor_printf popParserStack pushParserStack read_config request_reboot rxDTMF send_telefon_up_event setup_monitor_socket shutdown_monitor_sockets start_dtrace start_telnetd stop_dtrace stop_telnetd telefon_notify_up tffs_bits_unset tffs_init_value tuut_filter tuut_filter_init update_to_new_phonebook wlanstartstop write_config
Abhängigkeiten
- libpthread.so
- libavmcsock.so
- libboxlib.so
- libslab.so
- libphonebook.so
- libmxml.so
- libcapi20.so
- libavm_event.so
- libwdt.so
- libled.so
- libtffs.so
- libdl.so
- libc.so
- libwebsrv.so
- libewnwnet.so
- libewnwlinux.so
- libavmhmac.so
- libgcc_s.so
- libavmcipher.so
- ld.so
Optional:
Siehe auch
Telefonie: (77)
- Lexikon: Tastencodes, Amtsholung, Callmonitor, CTI, TAPI, POTS, Fax, Anrufbeantworter
- Geräte: FRITZ! Mini, Fon-Modelle, POTS-Modelle, ISDN-Modelle, S0-Bus-Modelle, ATA-Modelle
- Software: FRITZ!fon
- ShellEnv: CONFIG_AB_COUNT, CONFIG_FON, CONFIG_DECT
- Webinterface: Anrufliste, Wählhilfe, Telefonbuch, Klingelsperre, Weckruf
- Webinterface: Rufsperren, Rufumleitung, Callthrough, Wahlregeln, Anbietervorwahlen
- UI-Module: telcfg
- Konfig: fonctrl, fx_cg, fx_conf, fx_def, fx_lcr, fx_moh, telefon_misc, calllog (tffs)
- Konfig: foncontrol.xml, foncontrol.xml (ram), foncontrol-template.xml, foncontrol-scpd.xml
- Konfig: fx_conf.*, fx_lcr.*, fx_moh.*, telefon_misc.*, fonctrl.*
- Tempfiles: telefon.log
- Befehle: S12-default, S17-capi, S17-isdn, telefon, restorefonsettings, setcountry, regelex
- Befehle: calllog, calllog (ram)
- Libraries: libfoncontrol.so, libfon.so, libtelcfg.so, libcapi20.so
- Kernel: isdn_fbox_fon1.ko, isdn_fbox_fon2.ko, isdn_fbox_fon3.ko, isdn_fbox_fon4.ko
- Kernel: isdn_fbox_fon5.ko, isdn_fbox_fon6.ko, ubik2.ko, capi_oslib.ko, rcapi.ko
- Devices: capi20, rcapi20
- ProcFS: delic
- Ports: Port 1011, Port 1012, Port 8888, foncontrol
- Freetz: REMOVE_VOIP_ISDN