AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
8 stars 8 forks source link

SimpleUSB Bad File Descriptor #191

Closed tsawyer closed 1 year ago

tsawyer commented 1 year ago

A new Pi 3b install gives:

TEST-ASL30-K6CV*CLI> rpt fun 57321 *32530
[2023-07-14 18:04:48.592] ERROR[1640]: chan_simpleusb.c:735 kickptt: write failed: Bad file descriptor
[2023-07-14 18:04:48.637]     -- Call accepted by 104.153.109.212:4569 (format ulaw)
[2023-07-14 18:04:48.637]     -- Format for call is (ulaw)
[2023-07-14 18:04:51.049]     -- Hungup 'DAHDI/pseudo-666947788'
[2023-07-14 18:04:53.105]     -- <DAHDI/pseudo-1475267986> Playing 'rpt/node.gsm' (language 'en')
[2023-07-14 18:04:53.747]     -- <DAHDI/pseudo-1475267986> Playing 'digits/2.ulaw' (language 'en')
[2023-07-14 18:04:54.496]     -- <DAHDI/pseudo-1475267986> Playing 'digits/5.ulaw' (language 'en')
[2023-07-14 18:04:55.318]     -- <DAHDI/pseudo-1475267986> Playing 'digits/3.ulaw' (language 'en')
[2023-07-14 18:04:56.157]     -- <DAHDI/pseudo-1475267986> Playing 'digits/0.ulaw' (language 'en')
[2023-07-14 18:04:57.034]     -- <DAHDI/pseudo-1475267986> Playing 'rpt/connected-to.gsm' (language 'en')
[2023-07-14 18:04:58.558]     -- <DAHDI/pseudo-1475267986> Playing 'rpt/node.gsm' (language 'en')
[2023-07-14 18:04:59.199]     -- <DAHDI/pseudo-1475267986> Playing 'digits/5.ulaw' (language 'en')
[2023-07-14 18:05:00.022]     -- <DAHDI/pseudo-1475267986> Playing 'digits/7.ulaw' (language 'en')
[2023-07-14 18:05:00.844]     -- <DAHDI/pseudo-1475267986> Playing 'digits/3.ulaw' (language 'en')
[2023-07-14 18:05:01.683]     -- <DAHDI/pseudo-1475267986> Playing 'digits/2.ulaw' (language 'en')
[2023-07-14 18:05:02.432]     -- <DAHDI/pseudo-1475267986> Playing 'digits/1.ulaw' (language 'en')
[2023-07-14 18:05:03.344]     -- Hungup 'DAHDI/pseudo-1475267986'
[2023-07-14 18:05:10.753]     -- Hungup 'DAHDI/pseudo-1256909485'
[2023-07-14 18:05:12.968] ERROR[1640]: chan_simpleusb.c:735 kickptt: write failed: Bad file descriptor
TEST-ASL30-K6CV*CLI>
KB4MDD commented 1 year ago

Can you capture the messages when asterisk first starts. The problem should appear right away.

tsawyer commented 1 year ago

@chrisvictor Do you still have this node, or is has it been rebuilt?

InterLinked1 commented 1 year ago

The startup details are hidden here. You can either use asterisk -R prior to doing core restart now, or start Asterisk in the foreground using asterisk -c instead. That ensures the startup messages are visible. Alternately, they should also be in the log.

chrisvictor commented 1 year ago

@KB4MDD - Not sure if I did this correctly, see below:

root@TEST-ASL30-K6CV:/var/run/asterisk# asterisk -r Asterisk 20.3.1, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others. Created by Mark Spencer markster@digium.com Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details.

Connected to Asterisk 20.3.1 currently running on TEST-ASL30-K6CV (pid = 627)

TEST-ASL30-K6CVCLI> core restart now TEST-ASL30-K6CVCLI> Disconnected from Asterisk server Asterisk cleanly ending (0). Executing last minute cleanups

root@TEST-ASL30-K6CV:/var/run/asterisk# asterisk -r Asterisk 20.3.1, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others. Created by Mark Spencer markster@digium.com Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details.

Connected to Asterisk 20.3.1 currently running on TEST-ASL30-K6CV (pid = 627) [2023-08-08 20:58:04.561] -- Hungup 'DAHDI/pseudo-1854849863'

TEST-ASL30-K6CVCLI> rpt fun 57321 327438 [2023-08-08 21:00:43.238] -- Call accepted by 135.180.126.186:4569 (format ulaw) [2023-08-08 21:00:43.238] -- Format for call is (ulaw) [2023-08-08 21:00:45.664] -- Hungup 'DAHDI/pseudo-200069960' [2023-08-08 21:00:47.712] -- <DAHDI/pseudo-1988946> Playing 'rpt/node.gsm' (language 'en') [2023-08-08 21:00:48.367] -- <DAHDI/pseudo-1988946> Playing 'digits/2.ulaw' (language 'en') [2023-08-08 21:00:51.458] -- <DAHDI/pseudo-1988946> Playing 'digits/7.ulaw' (language 'en') [2023-08-08 21:00:52.282] -- <DAHDI/pseudo-1988946> Playing 'digits/4.ulaw' (language 'en') [2023-08-08 21:00:53.086] -- <DAHDI/pseudo-1988946> Playing 'digits/3.ulaw' (language 'en') [2023-08-08 21:00:54.559] -- <DAHDI/pseudo-1988946> Playing 'digits/8.ulaw' (language 'en') [2023-08-08 21:00:55.253] -- <DAHDI/pseudo-1988946> Playing 'rpt/connected-to.gsm' (language 'en') [2023-08-08 21:00:56.775] -- <DAHDI/pseudo-1988946> Playing 'rpt/node.gsm' (language 'en') [2023-08-08 21:00:57.421] -- <DAHDI/pseudo-1988946> Playing 'digits/5.ulaw' (language 'en') [2023-08-08 21:00:58.246] -- <DAHDI/pseudo-1988946> Playing 'digits/7.ulaw' (language 'en') [2023-08-08 21:00:59.068] -- <DAHDI/pseudo-1988946> Playing 'digits/3.ulaw' (language 'en') [2023-08-08 21:00:59.907] -- <DAHDI/pseudo-1988946> Playing 'digits/2.ulaw' (language 'en') [2023-08-08 21:01:00.657] -- <DAHDI/pseudo-1988946> Playing 'digits/1.ulaw' (language 'en') [2023-08-08 21:01:01.569] -- Hungup 'DAHDI/pseudo-1988946' [2023-08-08 21:02:53.744] NOTICE[990]: dnsmgr.c:225 dnsmgr_refresh: dnssrv: host 'register.allstarlink.org' changed from 162.248.92.131:443 to 34.105.111.212:443 TEST-ASL30-K6CV*CLI>

chrisvictor commented 1 year ago

@KB4MDD Not sure why it is formatting my comment with big characters, sorry about that!

chrisvictor commented 1 year ago

@KB4MDD Tried it a different way with -R command, below is the output.

root@TEST-ASL30-K6CV:/var/run/asterisk# asterisk -R
Asterisk 20.3.1, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 20.3.1 currently running on TEST-ASL30-K6CV (pid = 627)
TEST-ASL30-K6CV*CLI> core restart now
TEST-ASL30-K6CV*CLI>
Disconnected from Asterisk server
Attempting to reconnect for 30 seconds
Reconnect succeeded after 1.850 seconds
Asterisk 20.3.1, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
TEST-ASL30-K6CV/627/20.3.1
[2023-08-08 21:07:20.936]   == Registered application 'Busy'
[2023-08-08 21:07:20.938]   == Registered application 'Congestion'
[2023-08-08 21:07:20.940]   == Registered application 'ExecIfTime'
[2023-08-08 21:07:20.943]   == Registered application 'Goto'
[2023-08-08 21:07:20.945]   == Registered application 'GotoIf'
[2023-08-08 21:07:20.948]   == Registered application 'GotoIfTime'
[2023-08-08 21:07:20.950]   == Registered application 'ImportVar'
[2023-08-08 21:07:20.952]   == Registered application 'Hangup'
[2023-08-08 21:07:20.954]   == Registered application 'Incomplete'
[2023-08-08 21:07:20.956]   == Registered application 'NoOp'
[2023-08-08 21:07:20.958]   == Registered application 'Proceeding'
[2023-08-08 21:07:20.960]   == Registered application 'Progress'
[2023-08-08 21:07:20.963]   == Registered application 'RaiseException'
[2023-08-08 21:07:20.964]   == Registered application 'Ringing'
[2023-08-08 21:07:20.967]   == Registered application 'SayAlpha'
[2023-08-08 21:07:20.969]   == Registered application 'SayAlphaCase'
[2023-08-08 21:07:20.971]   == Registered application 'SayDigits'
[2023-08-08 21:07:20.973]   == Registered application 'SayMoney'
[2023-08-08 21:07:20.976]   == Registered application 'SayNumber'
[2023-08-08 21:07:20.978]   == Registered application 'SayOrdinal'
[2023-08-08 21:07:20.980]   == Registered application 'SayPhonetic'
[2023-08-08 21:07:20.982]   == Registered application 'SetAMAFlags'
[2023-08-08 21:07:20.984]   == Registered application 'Wait'
[2023-08-08 21:07:20.987]   == Registered application 'WaitDigit'
[2023-08-08 21:07:20.989]   == Registered application 'WaitExten'
[2023-08-08 21:07:20.992]   == Registered application 'Set'
[2023-08-08 21:07:20.994]   == Registered application 'MSet'
[2023-08-08 21:07:20.996]   == Registered channel type 'Local' (Local Proxy Channel Driver)
[2023-08-08 21:07:20.998]   == Manager registered action LocalOptimizeAway
[2023-08-08 21:07:20.998]  Asterisk Dynamic Loader Starting:
[2023-08-08 21:07:21.000] NOTICE[627]: loader.c:2405 load_modules: 70 modules will be loaded.
[2023-08-08 21:07:21.056]  Loading extconfig.
[2023-08-08 21:07:21.057]   == extconfig => (Configuration)
[2023-08-08 21:07:21.057]  Loading logger.
[2023-08-08 21:07:21.057]   == logger => (Logger)
[2023-08-08 21:07:21.057]  Loading res_curl.so.
[2023-08-08 21:07:21.062]   == res_curl.so => (cURL Resource Module)
[2023-08-08 21:07:21.062]  Loading func_curl.so.
[2023-08-08 21:07:21.066]   == Registered custom function 'CURL'
[2023-08-08 21:07:21.066]   == Registered custom function 'CURLOPT'
[2023-08-08 21:07:21.067]   == func_curl.so => (Load external URL)
[2023-08-08 21:07:21.067]  Loading ccss.
[2023-08-08 21:07:21.070]   == Registered application 'CallCompletionRequest'
[2023-08-08 21:07:21.073]   == Registered application 'CallCompletionCancel'
[2023-08-08 21:07:21.074]   == ccss => (Call Completion Supplementary Services)
[2023-08-08 21:07:21.074]  Loading cdr.
[2023-08-08 21:07:21.087] NOTICE[627]: cdr.c:4568 cdr_toggle_runtime_options: CDR simple logging enabled.
[2023-08-08 21:07:21.088]   == cdr => (CDR Engine)
[2023-08-08 21:07:21.088]  Loading cel.
[2023-08-08 21:07:21.093]   == cel => (CEL Engine)
[2023-08-08 21:07:21.093]  Loading dnsmgr.
[2023-08-08 21:07:21.093] NOTICE[627]: dnsmgr.c:493 do_reload: Managed DNS entries will be refreshed every 300 seconds.
[2023-08-08 21:07:21.094]   == dnsmgr => (DNS Manager)
[2023-08-08 21:07:21.094]  Loading dsp.
[2023-08-08 21:07:21.094]   == dsp => (DSP)
[2023-08-08 21:07:21.094]  Loading enum.
[2023-08-08 21:07:21.094]   == enum => (ENUM Support)
[2023-08-08 21:07:21.094]  Loading features.
[2023-08-08 21:07:21.126]   == Registered custom function 'FEATURE'
[2023-08-08 21:07:21.128]   == Registered custom function 'FEATUREMAP'
[2023-08-08 21:07:21.133]   == Registered application 'Bridge'
[2023-08-08 21:07:21.135]   == Manager registered action Bridge
[2023-08-08 21:07:21.135]   == features => (Call Features)
[2023-08-08 21:07:21.135]  Loading http.
[2023-08-08 21:07:21.135]   == http => (Built-in HTTP Server)
[2023-08-08 21:07:21.135]  Loading indications.
[2023-08-08 21:07:21.136]     -- Registered indication country 'at'
[2023-08-08 21:07:21.136]     -- Registered indication country 'au'
[2023-08-08 21:07:21.136]     -- Registered indication country 'bg'
[2023-08-08 21:07:21.136]     -- Registered indication country 'br'
[2023-08-08 21:07:21.136]     -- Registered indication country 'be'
[2023-08-08 21:07:21.136]     -- Registered indication country 'ch'
[2023-08-08 21:07:21.136]     -- Registered indication country 'cl'
[2023-08-08 21:07:21.136]     -- Registered indication country 'cn'
[2023-08-08 21:07:21.136]     -- Registered indication country 'cz'
[2023-08-08 21:07:21.136]     -- Registered indication country 'de'
[2023-08-08 21:07:21.136]     -- Registered indication country 'dk'
[2023-08-08 21:07:21.137]     -- Registered indication country 'ee'
[2023-08-08 21:07:21.137]     -- Registered indication country 'es'
[2023-08-08 21:07:21.137]     -- Registered indication country 'fi'
[2023-08-08 21:07:21.137]     -- Registered indication country 'fr'
[2023-08-08 21:07:21.137]     -- Registered indication country 'gr'
[2023-08-08 21:07:21.138]     -- Registered indication country 'hu'
[2023-08-08 21:07:21.138]     -- Registered indication country 'id'
[2023-08-08 21:07:21.138]     -- Registered indication country 'il'
[2023-08-08 21:07:21.138]     -- Registered indication country 'in'
[2023-08-08 21:07:21.138]     -- Registered indication country 'it'
[2023-08-08 21:07:21.138]     -- Registered indication country 'lt'
[2023-08-08 21:07:21.138]     -- Registered indication country 'jp'
[2023-08-08 21:07:21.138]     -- Registered indication country 'mx'
[2023-08-08 21:07:21.138]     -- Registered indication country 'my'
[2023-08-08 21:07:21.138]     -- Registered indication country 'nl'
[2023-08-08 21:07:21.138]     -- Registered indication country 'no'
[2023-08-08 21:07:21.138]     -- Registered indication country 'nz'
[2023-08-08 21:07:21.138]     -- Registered indication country 'ph'
[2023-08-08 21:07:21.138]     -- Registered indication country 'pl'
[2023-08-08 21:07:21.138]     -- Registered indication country 'pt'
[2023-08-08 21:07:21.138]     -- Registered indication country 'ru'
[2023-08-08 21:07:21.138]     -- Registered indication country 'se'
[2023-08-08 21:07:21.138]     -- Registered indication country 'sg'
[2023-08-08 21:07:21.138]     -- Registered indication country 'th'
[2023-08-08 21:07:21.138]     -- Registered indication country 'uk'
[2023-08-08 21:07:21.138]     -- Registered indication country 'us'
[2023-08-08 21:07:21.138]     -- Registered indication country 'us-old'
[2023-08-08 21:07:21.138]     -- Registered indication country 'tw'
[2023-08-08 21:07:21.138]     -- Registered indication country 've'
[2023-08-08 21:07:21.138]     -- Registered indication country 'za'
[2023-08-08 21:07:21.138]     -- Setting default indication country to 'us'
[2023-08-08 21:07:21.138]   == indications => (Indication Tone Handling)
[2023-08-08 21:07:21.139]  Loading acl.
[2023-08-08 21:07:21.143]   == acl => (Named ACL system)
[2023-08-08 21:07:21.143]  Loading manager.
[2023-08-08 21:07:21.146]   == Manager registered action Ping
[2023-08-08 21:07:21.150]   == Manager registered action Events
[2023-08-08 21:07:21.153]   == Manager registered action Logoff
[2023-08-08 21:07:21.157]   == Manager registered action Login
[2023-08-08 21:07:21.159]   == Manager registered action Challenge
[2023-08-08 21:07:21.162]   == Manager registered action Hangup
[2023-08-08 21:07:21.165]   == Manager registered action Status
[2023-08-08 21:07:21.167]   == Manager registered action Setvar
[2023-08-08 21:07:21.169]   == Manager registered action Getvar
[2023-08-08 21:07:21.172]   == Manager registered action GetConfig
[2023-08-08 21:07:21.175]   == Manager registered action GetConfigJSON
[2023-08-08 21:07:21.178]   == Manager registered action UpdateConfig
[2023-08-08 21:07:21.181]   == Manager registered action CreateConfig
[2023-08-08 21:07:21.183]   == Manager registered action ListCategories
[2023-08-08 21:07:21.185]   == Manager registered action Redirect
[2023-08-08 21:07:21.188]   == Manager registered action Atxfer
[2023-08-08 21:07:21.190]   == Manager registered action CancelAtxfer
[2023-08-08 21:07:21.193]   == Manager registered action Originate
[2023-08-08 21:07:21.195]   == Manager registered action Command
[2023-08-08 21:07:21.197]   == Manager registered action ExtensionState
[2023-08-08 21:07:21.200]   == Manager registered action PresenceState
[2023-08-08 21:07:21.202]   == Manager registered action AbsoluteTimeout
[2023-08-08 21:07:21.205]   == Manager registered action MailboxStatus
[2023-08-08 21:07:21.207]   == Manager registered action MailboxCount
[2023-08-08 21:07:21.209]   == Manager registered action ListCommands
[2023-08-08 21:07:21.212]   == Manager registered action SendText
[2023-08-08 21:07:21.214]   == Manager registered action UserEvent
[2023-08-08 21:07:21.217]   == Manager registered action WaitEvent
[2023-08-08 21:07:21.219]   == Manager registered action CoreSettings
[2023-08-08 21:07:21.221]   == Manager registered action CoreStatus
[2023-08-08 21:07:21.223]   == Manager registered action Reload
[2023-08-08 21:07:21.226]   == Manager registered action LoggerRotate
[2023-08-08 21:07:21.229]   == Manager registered action CoreShowChannels
[2023-08-08 21:07:21.231]   == Manager registered action ModuleLoad
[2023-08-08 21:07:21.234]   == Manager registered action ModuleCheck
[2023-08-08 21:07:21.239]   == Manager registered action AOCMessage
[2023-08-08 21:07:21.242]   == Manager registered action Filter
[2023-08-08 21:07:21.244]   == Manager registered action BlindTransfer
[2023-08-08 21:07:21.247]   == Registered custom function 'AMI_CLIENT'
[2023-08-08 21:07:21.325]   == Manager registered action BridgeList
[2023-08-08 21:07:21.328]   == Manager registered action BridgeInfo
[2023-08-08 21:07:21.330]   == Manager registered action BridgeDestroy
[2023-08-08 21:07:21.332]   == Manager registered action BridgeKick
[2023-08-08 21:07:21.333]   == manager => (Asterisk Manager Interface)
[2023-08-08 21:07:21.333]  Loading plc.
[2023-08-08 21:07:21.333]   == plc => (PLC)
[2023-08-08 21:07:21.333]  Loading udptl.
[2023-08-08 21:07:21.341]   == udptl => (UDPTL)
[2023-08-08 21:07:21.341]  Loading res_timing_dahdi.so.
[2023-08-08 21:07:21.349]   == res_timing_dahdi.so => (DAHDI Timing Interface)
[2023-08-08 21:07:21.349]  Loading res_timing_timerfd.so.
[2023-08-08 21:07:21.349]   == res_timing_timerfd.so => (Timerfd Timing Interface)
[2023-08-08 21:07:21.349]  Loading res_usbradio.so.
[2023-08-08 21:07:21.349]   == res_usbradio.so => (USB Radio Resource)
[2023-08-08 21:07:21.349]  Loading res_crypto.so.
[2023-08-08 21:07:21.350]   == res_crypto.so => (Cryptographic Digital Signatures)
[2023-08-08 21:07:21.350]  Loading res_smdi.so.
[2023-08-08 21:07:21.349] NOTICE[627]: res_smdi.c:1424 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[2023-08-08 21:07:21.354]   == Registered custom function 'SMDI_MSG_RETRIEVE'
[2023-08-08 21:07:21.358]   == Registered custom function 'SMDI_MSG'
[2023-08-08 21:07:21.358]   == res_smdi.so => (Simplified Message Desk Interface (SMDI) Resource)
[2023-08-08 21:07:21.358]  Loading chan_dahdi.so.
[2023-08-08 21:07:21.358]   == Registered bridge technology native_dahdi
[2023-08-08 21:07:21.362]   == Registered application 'DAHDISendKeypadFacility'
[2023-08-08 21:07:21.365]   == Registered application 'DAHDISendCallreroutingFacility'
[2023-08-08 21:07:21.367]     -- Automatically generated pseudo channel
[2023-08-08 21:07:21.367]   == Registered channel type 'DAHDI' (DAHDI Telephony w/PRI)
[2023-08-08 21:07:21.371]   == Registered custom function 'POLARITY'
[2023-08-08 21:07:21.372]   == Manager registered action DAHDITransfer
[2023-08-08 21:07:21.372]   == Manager registered action DAHDIHangup
[2023-08-08 21:07:21.372]   == Manager registered action DAHDIDialOffhook
[2023-08-08 21:07:21.373]   == Manager registered action DAHDIDNDon
[2023-08-08 21:07:21.373]   == Manager registered action DAHDIDNDoff
[2023-08-08 21:07:21.373]   == Manager registered action DAHDIShowChannels
[2023-08-08 21:07:21.374]   == Manager registered action DAHDIRestart
[2023-08-08 21:07:21.374]   == Manager registered action PRIShowSpans
[2023-08-08 21:07:21.375]   == Manager registered action PRIDebugSet
[2023-08-08 21:07:21.375]   == Manager registered action PRIDebugFileSet
[2023-08-08 21:07:21.375]   == Manager registered action PRIDebugFileUnset
[2023-08-08 21:07:21.375]   == chan_dahdi.so => (DAHDI Telephony w/PRI)
[2023-08-08 21:07:21.375]  Loading chan_iax2.so.
[2023-08-08 21:07:21.384]   == Using IAX2 TOS bits 30
[2023-08-08 21:07:21.384]   == Binding IAX2 to default address 0.0.0.0:4568
[2023-08-08 21:07:21.389]   == Registered application 'IAX2Provision'
[2023-08-08 21:07:21.392]   == Registered custom function 'IAXPEER'
[2023-08-08 21:07:21.395]   == Registered custom function 'IAXVAR'
[2023-08-08 21:07:21.395]   == Manager registered action IAXpeers
[2023-08-08 21:07:21.395]   == Manager registered action IAXpeerlist
[2023-08-08 21:07:21.396]   == Manager registered action IAXnetstats
[2023-08-08 21:07:21.396]   == Manager registered action IAXregistry
[2023-08-08 21:07:21.396]   == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
[2023-08-08 21:07:21.397]   == 10 helper threads started
[2023-08-08 21:07:21.397]   == IAX Ready and Listening
[2023-08-08 21:07:21.398]     -- Loaded provisioning template 'default'
[2023-08-08 21:07:21.399]   == chan_iax2.so => (Inter Asterisk eXchange (Ver 2))
[2023-08-08 21:07:21.399]  Loading format_g723.so.
[2023-08-08 21:07:21.399]   == Registered file format g723sf, extension(s) g723|g723sf
[2023-08-08 21:07:21.399]   == format_g723.so => (G.723.1 Simple Timestamp File Format)
[2023-08-08 21:07:21.399]  Loading format_g726.so.
[2023-08-08 21:07:21.399]   == Registered file format g726-40, extension(s) g726-40
[2023-08-08 21:07:21.399]   == Registered file format g726-32, extension(s) g726-32
[2023-08-08 21:07:21.399]   == Registered file format g726-24, extension(s) g726-24
[2023-08-08 21:07:21.399]   == Registered file format g726-16, extension(s) g726-16
[2023-08-08 21:07:21.399]   == format_g726.so => (Raw G.726 (16/24/32/40kbps) data)
[2023-08-08 21:07:21.399]  Loading format_g729.so.
[2023-08-08 21:07:21.399]   == Registered file format g729, extension(s) g729
[2023-08-08 21:07:21.399]   == format_g729.so => (Raw G.729 data)
[2023-08-08 21:07:21.399]  Loading format_gsm.so.
[2023-08-08 21:07:21.399]   == Registered file format gsm, extension(s) gsm
[2023-08-08 21:07:21.399]   == format_gsm.so => (Raw GSM data)
[2023-08-08 21:07:21.399]  Loading format_h263.so.
[2023-08-08 21:07:21.399]   == Registered file format h263, extension(s) h263
[2023-08-08 21:07:21.399]   == format_h263.so => (Raw H.263 data)
[2023-08-08 21:07:21.400]  Loading format_h264.so.
[2023-08-08 21:07:21.400]   == Registered file format h264, extension(s) h264
[2023-08-08 21:07:21.401]   == format_h264.so => (Raw H.264 data)
[2023-08-08 21:07:21.401]  Loading format_ilbc.so.
[2023-08-08 21:07:21.401]   == Registered file format iLBC, extension(s) ilbc
[2023-08-08 21:07:21.401]   == format_ilbc.so => (Raw iLBC data)
[2023-08-08 21:07:21.401]  Loading format_pcm.so.
[2023-08-08 21:07:21.401]   == Registered file format pcm, extension(s) pcm|ulaw|ul|mu|ulw
[2023-08-08 21:07:21.401]   == Registered file format alaw, extension(s) alaw|al|alw
[2023-08-08 21:07:21.401]   == Registered file format au, extension(s) au
[2023-08-08 21:07:21.401]   == Registered file format g722, extension(s) g722
[2023-08-08 21:07:21.401]   == format_pcm.so => (Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G.722 16Khz)
[2023-08-08 21:07:21.401]  Loading format_sln.so.
[2023-08-08 21:07:21.401]   == Registered file format sln, extension(s) sln|slin|raw
[2023-08-08 21:07:21.401]   == Registered file format sln12, extension(s) sln12
[2023-08-08 21:07:21.401]   == Registered file format sln16, extension(s) sln16
[2023-08-08 21:07:21.401]   == Registered file format sln24, extension(s) sln24
[2023-08-08 21:07:21.401]   == Registered file format sln32, extension(s) sln32
[2023-08-08 21:07:21.401]   == Registered file format sln44, extension(s) sln44
[2023-08-08 21:07:21.401]   == Registered file format sln48, extension(s) sln48
[2023-08-08 21:07:21.401]   == Registered file format sln96, extension(s) sln96
[2023-08-08 21:07:21.401]   == Registered file format sln192, extension(s) sln192
[2023-08-08 21:07:21.401]   == format_sln.so => (Raw Signed Linear Audio support (SLN) 8khz-192khz)
[2023-08-08 21:07:21.401]  Loading format_vox.so.
[2023-08-08 21:07:21.401]   == Registered file format vox, extension(s) vox
[2023-08-08 21:07:21.401]   == format_vox.so => (Dialogic VOX (ADPCM) File Format)
[2023-08-08 21:07:21.401]  Loading format_wav_gsm.so.
[2023-08-08 21:07:21.401]   == Registered file format wav49, extension(s) WAV|wav49
[2023-08-08 21:07:21.401]   == format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
[2023-08-08 21:07:21.401]  Loading format_wav.so.
[2023-08-08 21:07:21.401]   == Registered file format wav, extension(s) wav
[2023-08-08 21:07:21.401]   == Registered file format wav16, extension(s) wav16
[2023-08-08 21:07:21.401]   == format_wav.so => (Microsoft WAV/WAV16 format (8kHz/16kHz Signed Linear))
[2023-08-08 21:07:21.401]  Loading res_adsi.so.
[2023-08-08 21:07:21.401]   == res_adsi.so => (ADSI Resource)
[2023-08-08 21:07:21.401]  Loading sounds.
[2023-08-08 21:07:21.401]   == sounds => (Sounds Index)
[2023-08-08 21:07:21.401]  Loading app_authenticate.so.
[2023-08-08 21:07:21.406]   == Registered application 'Authenticate'
[2023-08-08 21:07:21.406]   == app_authenticate.so => (Authentication Application)
[2023-08-08 21:07:21.406]  Loading app_dial.so.
[2023-08-08 21:07:21.422]   == Registered application 'Dial'
[2023-08-08 21:07:21.426]   == Registered application 'RetryDial'
[2023-08-08 21:07:21.426]   == app_dial.so => (Dialing Application)
[2023-08-08 21:07:21.427]  Loading app_exec.so.
[2023-08-08 21:07:21.430]   == Registered application 'Exec'
[2023-08-08 21:07:21.434]   == Registered application 'TryExec'
[2023-08-08 21:07:21.437]   == Registered application 'ExecIf'
[2023-08-08 21:07:21.437]   == app_exec.so => (Executes dialplan applications)
[2023-08-08 21:07:21.437]  Loading app_playback.so.
[2023-08-08 21:07:21.442]   == Registered application 'Playback'
[2023-08-08 21:07:21.442]   == app_playback.so => (Sound File Playback Application)
[2023-08-08 21:07:21.443]  Loading app_rpt.so.
[2023-08-08 21:07:21.444]   == Manager registered action RptLocalNodes
[2023-08-08 21:07:21.444]   == Manager registered action RptStatus
[2023-08-08 21:07:21.449]   == Registered application 'Rpt'
[2023-08-08 21:07:21.453]   == Registered application 'MDC1200Gen'
[2023-08-08 21:07:21.453]   == app_rpt.so => (Radio Repeater/Remote Base Application)
[2023-08-08 21:07:21.453]  Loading app_sendtext.so.
[2023-08-08 21:07:21.458]   == Registered application 'SendText'
[2023-08-08 21:07:21.461]   == Registered application 'ReceiveText'
[2023-08-08 21:07:21.461]   == app_sendtext.so => (Send and Receive Text Applications)
[2023-08-08 21:07:21.462]  Loading app_system.so.
[2023-08-08 21:07:21.466]   == Registered application 'TrySystem'
[2023-08-08 21:07:21.469]   == Registered application 'System'
[2023-08-08 21:07:21.469]   == app_system.so => (Generic System() application)
[2023-08-08 21:07:21.470]  Loading app_transfer.so.
[2023-08-08 21:07:21.474]   == Registered application 'Transfer'
[2023-08-08 21:07:21.474]   == app_transfer.so => (Transfers a caller to another extension)
[2023-08-08 21:07:21.474]  Loading codec_adpcm.so.
[2023-08-08 21:07:21.475]   == Registered translator 'adpcmtolin' from codec adpcm to slin, table cost, 900000, computational cost 1359
[2023-08-08 21:07:21.476]   == Registered translator 'lintoadpcm' from codec slin to adpcm, table cost, 600000, computational cost 1778
[2023-08-08 21:07:21.477]   == codec_adpcm.so => (Adaptive Differential PCM Coder/Decoder)
[2023-08-08 21:07:21.477]  Loading codec_alaw.so.
[2023-08-08 21:07:21.477]   == Registered translator 'alawtolin' from codec alaw to slin, table cost, 900000, computational cost 539
[2023-08-08 21:07:21.478]   == Registered translator 'lintoalaw' from codec slin to alaw, table cost, 600000, computational cost 375
[2023-08-08 21:07:21.478]   == codec_alaw.so => (A-law Coder/Decoder)
[2023-08-08 21:07:21.478]  Loading codec_a_mu.so.
[2023-08-08 21:07:21.478]   == Registered translator 'alawtoulaw' from codec alaw to ulaw, table cost, 915000, computational cost 328
[2023-08-08 21:07:21.479]   == Registered translator 'ulawtoalaw' from codec ulaw to alaw, table cost, 915000, computational cost 370
[2023-08-08 21:07:21.479]   == codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
[2023-08-08 21:07:21.479]  Loading codec_g726.so.
[2023-08-08 21:07:21.488]   == Registered translator 'g726tolin' from codec g726 to slin, table cost, 900000, computational cost 10217
[2023-08-08 21:07:21.510]   == Registered translator 'lintog726' from codec slin to g726, table cost, 600000, computational cost 21471
[2023-08-08 21:07:21.520]   == Registered translator 'g726aal2tolin' from codec g726aal2 to slin, table cost, 900000, computational cost 10076
[2023-08-08 21:07:21.541]   == Registered translator 'lintog726aal2' from codec slin to g726aal2, table cost, 600000, computational cost 21508
[2023-08-08 21:07:21.542]   == codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
[2023-08-08 21:07:21.542]  Loading codec_gsm.so.
[2023-08-08 21:07:21.544]   == Registered translator 'gsmtolin' from codec gsm to slin, table cost, 900000, computational cost 2174
[2023-08-08 21:07:21.548]   == Registered translator 'lintogsm' from codec slin to gsm, table cost, 600000, computational cost 3999
[2023-08-08 21:07:21.548]   == codec_gsm.so => (GSM Coder/Decoder)
[2023-08-08 21:07:21.548]  Loading codec_ulaw.so.
[2023-08-08 21:07:21.548]   == Registered translator 'ulawtolin' from codec ulaw to slin, table cost, 900000, computational cost 398
[2023-08-08 21:07:21.549]   == Registered translator 'lintoulaw' from codec slin to ulaw, table cost, 600000, computational cost 337
[2023-08-08 21:07:21.549]   == codec_ulaw.so => (mu-Law Coder/Decoder)
[2023-08-08 21:07:21.549]  Loading func_base64.so.
[2023-08-08 21:07:21.553]   == Registered custom function 'BASE64_ENCODE'
[2023-08-08 21:07:21.556]   == Registered custom function 'BASE64_DECODE'
[2023-08-08 21:07:21.556]   == func_base64.so => (base64 encode/decode dialplan functions)
[2023-08-08 21:07:21.557]  Loading func_callerid.so.
[2023-08-08 21:07:21.561]   == Registered custom function 'CALLERID'
[2023-08-08 21:07:21.565]   == Registered custom function 'CONNECTEDLINE'
[2023-08-08 21:07:21.570]   == Registered custom function 'REDIRECTING'
[2023-08-08 21:07:21.570]   == func_callerid.so => (Party ID related dialplan functions (Caller-ID, Connected-line, Redirecting))
[2023-08-08 21:07:21.570]  Loading func_cdr.so.
[2023-08-08 21:07:21.575]   == Registered custom function 'CDR'
[2023-08-08 21:07:21.578]   == Registered custom function 'CDR_PROP'
[2023-08-08 21:07:21.578]   == func_cdr.so => (Call Detail Record (CDR) dialplan functions)
[2023-08-08 21:07:21.579]  Loading func_channel.so.
[2023-08-08 21:07:21.593]   == Registered custom function 'CHANNEL'
[2023-08-08 21:07:21.596]   == Registered custom function 'CHANNELS'
[2023-08-08 21:07:21.599]   == Registered custom function 'CHANNEL_EXISTS'
[2023-08-08 21:07:21.602]   == Registered custom function 'MASTER_CHANNEL'
[2023-08-08 21:07:21.603]   == func_channel.so => (Channel information dialplan functions)
[2023-08-08 21:07:21.603]  Loading func_cut.so.
[2023-08-08 21:07:21.606]   == Registered custom function 'CUT'
[2023-08-08 21:07:21.610]   == Registered custom function 'SORT'
[2023-08-08 21:07:21.610]   == func_cut.so => (Cut out information from a string)
[2023-08-08 21:07:21.610]  Loading func_db.so.
[2023-08-08 21:07:21.614]   == Registered custom function 'DB'
[2023-08-08 21:07:21.617]   == Registered custom function 'DB_EXISTS'
[2023-08-08 21:07:21.621]   == Registered custom function 'DB_DELETE'
[2023-08-08 21:07:21.624]   == Registered custom function 'DB_KEYS'
[2023-08-08 21:07:21.627]   == Registered custom function 'DB_KEYCOUNT'
[2023-08-08 21:07:21.627]   == func_db.so => (Database (astdb) related dialplan functions)
[2023-08-08 21:07:21.628]  Loading func_enum.so.
[2023-08-08 21:07:21.631]   == Registered custom function 'ENUMRESULT'
[2023-08-08 21:07:21.634]   == Registered custom function 'ENUMQUERY'
[2023-08-08 21:07:21.638]   == Registered custom function 'ENUMLOOKUP'
[2023-08-08 21:07:21.641]   == Registered custom function 'TXTCIDNAME'
[2023-08-08 21:07:21.641]   == func_enum.so => (ENUM related dialplan functions)
[2023-08-08 21:07:21.642]  Loading func_env.so.
[2023-08-08 21:07:21.646]   == Registered custom function 'ENV'
[2023-08-08 21:07:21.649]   == Registered custom function 'STAT'
[2023-08-08 21:07:21.654]   == Registered custom function 'FILE'
[2023-08-08 21:07:21.657]   == Registered custom function 'FILE_COUNT_LINE'
[2023-08-08 21:07:21.661]   == Registered custom function 'FILE_FORMAT'
[2023-08-08 21:07:21.664]   == Registered custom function 'DIRNAME'
[2023-08-08 21:07:21.667]   == Registered custom function 'BASENAME'
[2023-08-08 21:07:21.667]   == func_env.so => (Environment/filesystem dialplan functions)
[2023-08-08 21:07:21.668]  Loading func_global.so.
[2023-08-08 21:07:21.671]   == Registered custom function 'GLOBAL'
[2023-08-08 21:07:21.675]   == Registered custom function 'SHARED'
[2023-08-08 21:07:21.675]   == func_global.so => (Variable dialplan functions)
[2023-08-08 21:07:21.675]  Loading func_groupcount.so.
[2023-08-08 21:07:21.679]   == Registered custom function 'GROUP_COUNT'
[2023-08-08 21:07:21.682]   == Registered custom function 'GROUP_MATCH_COUNT'
[2023-08-08 21:07:21.687]   == Registered custom function 'GROUP_MATCH_LIST_START'
[2023-08-08 21:07:21.691]   == Registered custom function 'GROUP_MATCH_LIST_NEXT'
[2023-08-08 21:07:21.694]   == Registered custom function 'GROUP_LIST'
[2023-08-08 21:07:21.694]   == Registered custom function 'GROUP_VAR'
[2023-08-08 21:07:21.697]   == Registered custom function 'GROUP'
[2023-08-08 21:07:21.697]   == Registered custom function 'GROUP_CHANNEL_LIST'
[2023-08-08 21:07:21.701]   == Registered application 'DumpGroups'
[2023-08-08 21:07:21.702]   == Manager registered action GroupSet
[2023-08-08 21:07:21.704]   == Manager registered action GroupRemove
[2023-08-08 21:07:21.705]   == Manager registered action GroupVarGet
[2023-08-08 21:07:21.707]   == Manager registered action GroupVarSet
[2023-08-08 21:07:21.708]   == Manager registered action GroupsShow
[2023-08-08 21:07:21.710]   == Manager registered action GroupsShowChannels
[2023-08-08 21:07:21.711]   == Manager registered action GroupsShowVariables
[2023-08-08 21:07:21.711]   == func_groupcount.so => (Channel group dialplan functions)
[2023-08-08 21:07:21.711]  Loading func_logic.so.
[2023-08-08 21:07:21.715]   == Registered custom function 'ISNULL'
[2023-08-08 21:07:21.718]   == Registered custom function 'SET'
[2023-08-08 21:07:21.721]   == Registered custom function 'EXISTS'
[2023-08-08 21:07:21.724]   == Registered custom function 'IF'
[2023-08-08 21:07:21.728]   == Registered custom function 'IFTIME'
[2023-08-08 21:07:21.731]   == Registered custom function 'IMPORT'
[2023-08-08 21:07:21.731]   == func_logic.so => (Logical dialplan functions)
[2023-08-08 21:07:21.731]  Loading func_math.so.
[2023-08-08 21:07:21.735]   == Registered custom function 'MATH'
[2023-08-08 21:07:21.738]   == Registered custom function 'INC'
[2023-08-08 21:07:21.741]   == Registered custom function 'DEC'
[2023-08-08 21:07:21.745]   == Registered custom function 'MIN'
[2023-08-08 21:07:21.748]   == Registered custom function 'MAX'
[2023-08-08 21:07:21.751]   == Registered custom function 'ABS'
[2023-08-08 21:07:21.751]   == func_math.so => (Mathematical dialplan function)
[2023-08-08 21:07:21.751]  Loading func_md5.so.
[2023-08-08 21:07:21.755]   == Registered custom function 'MD5'
[2023-08-08 21:07:21.755]   == func_md5.so => (MD5 digest dialplan functions)
[2023-08-08 21:07:21.755]  Loading func_rand.so.
[2023-08-08 21:07:21.759]   == Registered custom function 'RAND'
[2023-08-08 21:07:21.759]   == func_rand.so => (Random number dialplan function)
[2023-08-08 21:07:21.759]  Loading func_realtime.so.
[2023-08-08 21:07:21.763]   == Registered custom function 'REALTIME'
[2023-08-08 21:07:21.767]   == Registered custom function 'REALTIME_STORE'
[2023-08-08 21:07:21.770]   == Registered custom function 'REALTIME_DESTROY'
[2023-08-08 21:07:21.774]   == Registered custom function 'REALTIME_FIELD'
[2023-08-08 21:07:21.777]   == Registered custom function 'REALTIME_HASH'
[2023-08-08 21:07:21.777]   == func_realtime.so => (Read/Write/Store/Destroy values from a RealTime repository)
[2023-08-08 21:07:21.777]  Loading pbx_config.so.
[2023-08-08 21:07:21.777]   == Setting global variable 'HOMENPA' to '999'
[2023-08-08 21:07:21.778]   == Setting global variable 'NODE' to '1999'
[2023-08-08 21:07:21.779]     -- Time to scan old dialplan and merge leftovers back into the new: 0.000005 sec
[2023-08-08 21:07:21.779]     -- Time to restore hints and swap in new dialplan: 0.000038 sec
[2023-08-08 21:07:21.779]     -- Time to delete the old dialplan: 0.000003 sec
[2023-08-08 21:07:21.779]     -- Total time merge_contexts_delete: 0.000046 sec
[2023-08-08 21:07:21.779]     -- pbx_config successfully loaded 0 contexts (enable debug for details).
[2023-08-08 21:07:21.780]   == Manager registered action DialplanExtensionAdd
[2023-08-08 21:07:21.781]   == Manager registered action DialplanExtensionRemove
[2023-08-08 21:07:21.781]   == pbx_config.so => (Text Extension Configuration)
[2023-08-08 21:07:21.781]  Loading res_rpt_http_registrations.so.
[2023-08-08 21:07:21.808]   == res_rpt_http_registrations.so => (RPT HTTP Periodic Registrations)
[2023-08-08 21:07:21.809]  Loading chan_simpleusb.so.
[2023-08-08 21:07:21.810]   == Registered channel type 'SimpleUSB' (Simple USB (CM108) Radio Channel Driver)
[2023-08-08 21:07:21.811]   == chan_simpleusb.so => (SimpleUSB Radio Interface Channel Driver)
[2023-08-08 21:07:21.936] NOTICE[627]: loader.c:2505 load_modules: Module 'res_adsi' has been loaded but may be removed in a future release.
[2023-08-08 21:07:22.049] Asterisk Ready.
[2023-08-08 21:07:22.197]     -- Loading initial config for repeater 57321
[2023-08-08 21:07:22.197] NOTICE[1295]: app_rpt.c:5984 rpt_master: Normal Repeater Init  57321
[2023-08-08 21:07:22.198] ERROR[1298]: chan_simpleusb.c:735 kickptt: write failed: Bad file descriptor
[2023-08-08 21:07:22.198] ERROR[1298]: chan_simpleusb.c:735 kickptt: write failed: Bad file descriptor
[2023-08-08 21:07:22.201] NOTICE[1299]: chan_simpleusb.c:935 hidthread: Assigned USB device 1-1.2:1.0 to simpleusb channel usb_57321
[2023-08-08 21:07:22.208]     -- Set device 1-1.2:1.0 to usb_57321
[2023-08-08 21:07:22.209] NOTICE[1299]: chan_simpleusb.c:1029 hidthread: Loaded parameters from simpleusb_tune_usb_57321.conf for device usb_57321 .
[2023-08-08 21:07:24.602]     -- Hungup 'DAHDI/pseudo-1450867314'
[2023-08-08 21:07:32.095]     -- Hungup 'DAHDI/pseudo-779162916'
TEST-ASL30-K6CV*CLI>
KB4MDD commented 1 year ago

I see the bad file descriptor - that sometimes appears. It seems to indicate that the parameters were loaded later. Is it working now?

chrisvictor commented 1 year ago

Yes, it connects and functions normally. Just these msg's show up for a unknown reason, maybe dahdi related? ERROR[1298]: chan_simpleusb.c:735 kickptt: write failed: Bad file descriptor

InterLinked1 commented 1 year ago

@KB4MDD Not sure why it is formatting my comment with big characters, sorry about that!

You should put code, logs, etc. between triple backticks to format as code. Otherwise it contains formatting characters.

KB4MDD commented 1 year ago

I see those on my install at initial boot. I think you can safely ignore those.

tsawyer commented 1 year ago

I see those on my install at initial boot. I think you can safely ignore those.

But is it something that should be cleaned up?

InterLinked1 commented 1 year ago

I see those on my install at initial boot. I think you can safely ignore those.

But is it something that should be cleaned up?

Yes, there is still a bug here.

KB4MDD commented 1 year ago

I have identified this problem. There is an issue in chan_simpleusb and chan_usbradio. Changes coming soon.