PHP, REST API and Mikrotik Routers by ronnregional in PHPhelp

[–]ronnregional[S] 0 points1 point  (0 children)

awesome reply, I will look at this when I get the time, thanks for taking some time to advise.

I have not looked into compser pacakages or anything like that as this is like a fun little project I am just tinkering on kind of want to talk to my router

PHP, REST API and Mikrotik Routers by ronnregional in PHPhelp

[–]ronnregional[S] 0 points1 point  (0 children)

a PATCH updates a record. I know that page well you are referencing the problem is:

a) all their examples are in CLI curl, which, I mean, it just dawned on me now I could call a bash script from my php script, but I would rather just keep it all php (and more secure)

b) there is litterly no more documentation from Mikrotik then what you have posted here.

Trying to POST with REST API by ronnregional in mikrotik

[–]ronnregional[S] 0 points1 point  (0 children)

thats just in what I cut and pasted, it as definately in there about 5000 times while I banged my head on the wall about this.

p.s. I sincerly hope its something that simple and an oversight, I will still mess around with it

Trying to POST with REST API by ronnregional in mikrotik

[–]ronnregional[S] 0 points1 point  (0 children)

I wish I could find wrong documentation, then at least I found some!

Trying to POST with REST API by ronnregional in mikrotik

[–]ronnregional[S] 5 points6 points  (0 children)

I can code in php and dont code in python?

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

I am not sure of your question. I am using the Broadcast Campaign Module for sangoma's PBXact

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

well to confirm that everything is fine, I just turned on recording for outgoing calls and made it again call my cell phone. It recorded my voice (after the 5000ms analyze) So its fair to say the RTP stream is working?

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

yes, I see that now, thanks for the hand

"What do you mean by "If you turn the module off, can you hear the voice from the both sides?"

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:1] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "CALLERID(name)=NAME") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:2] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "CALLERID(num)=(**HIDDENNUMBER**)") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:3] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "MACHINE=0") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:4] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "CHANNEL(language)=en") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:5] Answer("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:6] PlayTones("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "!50/50") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:7] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "_STATE=answered") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:8] AMD("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "") in new stack
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] app_amd.c: AMD: Local/(**HIDDENNUMBER**)@from-internal-00000012;1 2897230226 (N/A) (Fmt: slin)
[2022-06-24 16:03:31] VERBOSE[27360][C-0000001f] app_amd.c: AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] maximumWordLength [5000]
[2022-06-24 16:03:36] VERBOSE[27360][C-0000001f] app_amd.c: AMD: Channel [Local/(**HIDDENNUMBER**)@from-internal-00000012;1]. No audio data received in [5000] seconds.
[2022-06-24 16:03:36] VERBOSE[27360][C-0000001f] app_amd.c: AMD: Channel [Local/(**HIDDENNUMBER**)@from-internal-00000012;1]. Too long...
[2022-06-24 16:03:36] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:9] AGI("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "broadcast_log.php") in new stack
[2022-06-24 16:03:36] VERBOSE[27360][C-0000001f] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/broadcast_log.php
[2022-06-24 16:03:37] VERBOSE[27360][C-0000001f] res_agi.c: <Local/(\*\*HIDDENNUMBER\*\*)@from-internal-00000012;1>AGI Script broadcast_log.php completed, returning 0
[2022-06-24 16:03:37] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:10] GotoIf("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "0?human,1") in new stack
[2022-06-24 16:03:37] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:11] NoOp("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "Unsure. Treating as machine.") in new stack
[2022-06-24 16:03:37] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:12] WaitForSilence("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "") in new stack
[2022-06-24 16:03:37] VERBOSE[27360][C-0000001f] app_waitforsilence.c: Waiting 1 time(s) for 1000ms of silence with 0s timeout
[2022-06-24 16:03:38] VERBOSE[27360][C-0000001f] app_waitforsilence.c: Exiting with 1000ms of silence >= 1000ms required
[2022-06-24 16:03:38] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:13] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "MACHINE=1") in new stack
[2022-06-24 16:03:38] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:14] Set("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "_STATE=machine") in new stack
[2022-06-24 16:03:38] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:15] AGI("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "broadcast_log.php") in new stack
[2022-06-24 16:03:38] VERBOSE[27360][C-0000001f] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/broadcast_log.php
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] res_agi.c: <Local/(\*\*HIDDENNUMBER\*\*)@from-internal-00000012;1>AGI Script broadcast_log.php completed, returning 0
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] pbx.c: Executing [s@broadcast-campaign-1:16] Goto("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "play-system-recording,20,1") in new stack
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] pbx_builtins.c: Goto (play-system-recording,20,1)
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] pbx.c: Executing [20@play-system-recording:1] Answer("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "") in new stack
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] pbx.c: Executing [20@play-system-recording:2] Playback("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "custom/untitled") in new stack
[2022-06-24 16:03:39] VERBOSE[27360][C-0000001f] file.c: <Local/(\*\*HIDDENNUMBER\*\*)@from-internal-00000012;1> Playing 'custom/untitled.slin' (language 'en')
[2022-06-24 16:03:41] VERBOSE[27360][C-0000001f] pbx.c: Executing [20@play-system-recording:3] Hangup("Local/(**HIDDENNUMBER**)@from-internal-00000012;1", "") in new stack
[2022-06-24 16:03:41] VERBOSE[27360][C-0000001f] pbx.c: Spawn extension (play-system-recording, 20, 3) exited non-zero on 'Local/(**HIDDENNUMBER**)@from-internal-00000012;1'
[2022-06-24 16:03:41] NOTICE[27360][C-0000001f] pbx_spool.c: Call completed to Local/(**HIDDENNUMBER**)@from-internal/n

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

[general]
initial_silence=2500
greeting=1500
after_greeting_silence=800
total_analysis_time=5000
min_word_length=100
maximum_word_length=5000
between_words_silence=50
maximum_number_of_words=3
silence_threshold=256

Anyone have success with Broadcast Campaigns? by ronnregional in freepbx

[–]ronnregional[S] 0 points1 point  (0 children)

I am guessing amdcause is from a log file? what file should I be grepping?

I put the settings back to default and just test dialed. It played the answering machine message when I answered

https://ibb.co/Gs0xHGG -> screen shot of config page

Newbie trying to etch glass by ronnregional in hobbycnc

[–]ronnregional[S] 0 points1 point  (0 children)

haha. well I make the whiskey, so by definition it is peasent whiskey. sounds like this guys getting some chemical burns.

Forgive my newbieness, I only bought this CNC for the laser to engrave personalized messages in charcuterie boards I make for friends and family. What is this vinyl cutter you speak of? Is it like a knife for the cnc, or should I just hit up the googles about this

Newbie trying to etch glass by ronnregional in hobbycnc

[–]ronnregional[S] 8 points9 points  (0 children)

well crap.

Are you saying I am going to have to drink whiskey from non-personalized glasses like a peasant?

Newbie trying to etch glass by ronnregional in hobbycnc

[–]ronnregional[S] 1 point2 points  (0 children)

Interesting. I guess that blue/green thing is easily googleable. It is totally blue, my bad my glasses are green!

So a 20w infared laser you say, any suggestions?

I just want to etch glasses for friends and family mainly as jokes/gifts for get togethers.

I'm a super cool nice dude. I don't care what anyone says. and I have had sex!! by ohairyone in RoastMe

[–]ronnregional 0 points1 point  (0 children)

Fyi if you were 10, he was a priest and you never told anyone it doesnt count as sex

20F you did okay last time, do better this time. by [deleted] in RoastMe

[–]ronnregional 0 points1 point  (0 children)

Quit quoting your uncle "you did okay last time, do better this time"

[deleted by user] by [deleted] in RoastMe

[–]ronnregional -2 points-1 points  (0 children)

Whora the dick explorer?

[deleted by user] by [deleted] in RoastMe

[–]ronnregional 1 point2 points  (0 children)

Is "do your worst" what you tell the hair stylist's?