IRC log for #asterisk on 20210109

00:04.15*** join/#asterisk sinaowolabi (~Sina@102.134.114.1)
00:52.57*** join/#asterisk hvxgr (~wl2v_usrn@epjdn.zq3q.org)
01:10.40*** join/#asterisk pppingme (~pppingme@unaffiliated/pppingme)
02:25.38*** join/#asterisk ckb (~ckb@unaffiliated/ckb)
02:28.48*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
02:32.02Kobazzgu: DIALPLAN_EXISTS
02:32.14Kobazfunction, not application
02:41.27*** join/#asterisk tsal_ (~tsal@i59F5FD0B.versanet.de)
02:59.31*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
03:42.41*** join/#asterisk electronic_eel (~quassel@213.240.182.26)
04:02.37zguah yeah a function would make more sense. still getting used to the dialplan grammar... it's just slightly more messy than cmake's
04:03.44zgui managed to get it working with $[${READEXTENSTATUS} = INVALID]
04:09.29*** join/#asterisk akp55 (~akp55@c-73-148-15-158.hsd1.va.comcast.net)
04:35.09*** join/#asterisk FH_thecat (~FH_thecat@75.11.25.212.ftth.as8758.net)
05:41.58*** join/#asterisk overyander (~overyande@209.141.208.197)
05:42.27*** join/#asterisk life_of_e (~life_of_e@108-95-189-245.lightspeed.irvnca.sbcglobal.net)
08:52.31*** join/#asterisk n0tiz (~n0tiz@82-69-15-38.dsl.in-addr.zen.co.uk)
09:28.28*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
09:51.47*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
10:49.25*** join/#asterisk jkroon (~jkroon@165.16.204.101)
11:06.21*** join/#asterisk jkroon (~jkroon@165.16.204.101)
11:15.04ckbasterisk -x sip show peers gives me No such command 'sip'
11:16.00dongsyou wanna quote it
11:16.04dongsasterisk -x "sip show peers"
11:17.01ckbthanks
11:19.42ckbdongs, is that the easiest way to get current extensions?
11:21.57ckbdongs, also is that not \t that separates these?
11:22.49ckbhow do I parse these lines?
11:26.14dongsnot tabs
11:26.49dongsi dont think you want to do text parsing here, probably better using whatever new status/control API they have for this purpose
11:27.06dongsi doubt the format of these is standard or guaranteed to stay same over updated versions.
11:27.36ckbI'm just trying to get a list of extensions
11:27.44dongsasterisk manager API for sure should provide the same info in a standard form
11:28.12ckbI couldn't find anything (I'm running 14 so I don't think there's a rest API?)
11:28.23dongsmanager API has been around for decades
11:28.36dongshttps://www.voip-info.org/asterisk-manager-api-action-sippeers/ this sorta stuff
11:28.58dongshttps://www.voip-info.org/asterisk-manager-api/ more shit here to sort through
11:30.16ckbthis ONLY gives me perl examples
11:31.47dongsA simple “key: value” line-based protocol is utilized for communication between the connecting client and the Asterisk PBX. Lines are terminated using CR/LF.
11:31.55dongsi mean, this is not rocket science
11:32.03dongsyou could do it in $yourfavoritelanguage
11:32.35ckbasterisk -x "sip show peers" gives me a list, sure... but I can't parse the line because it's not \t.
11:32.38dongsi remember writing osmethign to fuck wiht manager shit in C like 10 years ago
11:33.17dongsjust connect to manager interface with telnet, login manually, see what output it prints for its SipShowPeers thing and see if thats easier to parse.
11:33.51ckbthat's a lot of work to try to do from a PHP web app
11:34.10dongshttps://www.voip-info.org/asterisk-manager-example-php/
11:34.27dongsits literally just openign a socket
11:34.38dongsplus you can do that with php-cli for testing stuff then move same shit to web
12:32.15ckbso in sip show peers, name/username, which is used in the config?
12:38.38*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
12:46.06*** join/#asterisk sa02irc (~mbax@155-079-043-212.ip-addr.inexio.net)
13:09.19dongs"depends on config"
13:36.29*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
14:10.44*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
14:21.17*** join/#asterisk [TK]D-Fender (~joe@modemcable142.109-203-24.mc.videotron.ca)
14:24.49ckbwhy does sip show peers not show all extensions?
14:26.58*** join/#asterisk gavlee (~gav@unaffiliated/gavlee)
14:31.01[TK]D-FenderDon't use the word "extensions" when talking about devices you configured to talk to *
14:31.26[TK]D-FenderAnd it will show all device entries that of type "peer" or "friend" in sip.conf
14:31.37[TK]D-Fenderif you have OTHER channel types it doesn't show those
14:32.00[TK]D-FenderEach other channel type has their own command to show their entries
14:41.00ckb[TK]D-Fender, I'm seriously new to asterisk config and CLI
14:42.19ckb[TK]D-Fender: please be easy on me
14:42.46ckb[TK]D-Fender, these extensions can dial many devices
14:44.59[TK]D-FenderStop using the word "extensions"
14:45.19[TK]D-FenderConfigs that allow something to connect to * are devices, not "extensions"
14:45.26[TK]D-FenderAnd you ar thge one who put configs in there.
14:45.30[TK]D-FenderWhere did you put them?
14:45.57[TK]D-Fender"sip show peers" is ONLY for sip.conf
15:00.36ckbWhat do I call extensions then?
15:00.58*** join/#asterisk Janos (~textual@201.204.94.76)
15:01.13[TK]D-FenderWhere are you even getting the word from?
15:01.47[TK]D-FenderThis is your system.  What config file did you create the entry in to allow an external device toconnect to *?
15:12.38*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
15:23.01*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
15:38.31*** join/#asterisk paulgrmn (~paulgrmn@c-98-250-183-21.hsd1.mi.comcast.net)
15:44.14ckb[TK]D-Fender, sip peers shows nothing except our provider trunks
15:45.02*** join/#asterisk Janos (~textual@201.204.94.76)
15:46.06[TK]D-FenderYou have not answered my question
15:47.19ckb[TK]D-Fender, we are using FreePBX but I'm using asterisk to get information.
15:47.53[TK]D-FenderFreePBX TELLS you what kind of device you are defining based ont he technology
15:48.22ckbyes I'm trying to get a list of "extensions" (I don't know what you want me to call it)
15:48.56ckbdialplan show ext-local is the closest I've come
15:49.23*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
15:49.35ckbI literally just learned about the asterisk CLI, and am humbled by any help that could be provided
15:50.13sibiriadevices (phones) and SIP trunks are something else
15:50.19[TK]D-FenderI just told you to look at your extension and it will tell you what it is using.
15:51.02ckbokay, I have no clue what a "trunk" is. I have a very vague understanding, so work with me here
15:51.29sibiriayour asterisk setup can be considered a trunk
15:51.40sibiriaa VoIP provider's SIP endpoint that you call people through is a trunk
15:51.46sibiriayour phones are not trunks
15:52.57ckbcorrect but from what I understand "sip show peers" I could get a list of "extensions". I know asterisk doesn't consider an "extension" as a direct 1:1 relation.
15:53.23[TK]D-FenderYou keep saying the same things and not listening
15:53.34ckbI literally, don't get it.
15:53.43[TK]D-Fender[TK]D-Fender> I just told you to look at your extension and it will tell you what it is using.
15:53.57ckbHow do I look at an extension?
15:54.01[TK]D-Fender...
15:54.05[TK]D-Fenderin the stupid GUI
15:54.11ckbwhat GUI?
15:54.17[TK]D-FenderFREEPBX.
15:54.18ckblike I'm SO NEW to this
16:01.03sibiriaa number can be considered an extension
16:01.15sibiriawhen you're in a call and press a digit on the keypad you're asking for a new extension
16:01.21[TK]D-FenderDon't throw more broken terms into this
16:01.48[TK]D-Fenderfor now he needs to see what he made in the GUI
16:02.03ckbI don't deal with the GUI
16:02.15[TK]D-FenderFreepBX ***IS*** the GUI
16:02.30[TK]D-FenderThe WEB INTERFACE is a GUI
16:03.21ckbI. Do. Not. Deal. With. The. FreePBX. GUI.
16:03.23*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
16:03.31sibiriai thought ckb was just dealing with asterisk directly on his *nix machine
16:03.52ckbsibiria, correct. My boss uses the GUI
16:04.02[TK]D-FenderThen you better get a clue at what was made using it
16:04.20[TK]D-FenderOtherwise you might as well say "I'm blindfolded, how can I see?"
16:06.08[TK]D-FenderHow are you even going to interpret what you see?  You have no framework to put what you can see to use....
16:07.39sibiriadid you check out your dial plan yet?
16:08.00[TK]D-FenderHe doesn't know Asterisk at all
16:08.39[TK]D-FenderHe also doesn't use the GUI.  Has he ever even seen it before?  Certainly doesn't know what's in there now.
16:09.14*** join/#asterisk ckb_ (~ckb@unaffiliated/ckb)
16:10.55sibiriagive "dialplan show" a try if you want to see asterisk's extensions
16:13.22[TK]D-FenderHe doesn't Know * at all.  It means nothing and he's using a FreePBX system
16:40.29*** join/#asterisk ckb (~ckb@unaffiliated/ckb)
16:40.41*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
16:40.46ckb[TK]D-Fender, I realize we're using PJSIP for some clients
16:41.55ckb[TK]D-Fender, I am using the asterisk CLI. The FreePBX GUI is useless for a developer like me. I also don't understand asterisk at all.
16:44.06ckband yes, I have seen the FreePBX GUI many of times. Have I spent a lot of time in there? no. Because it has NO relevance to what I'm doing. The FreePBX GUI just uses Asterisk's CLI. I'm trying to learn to Asterisk CLI, not spend time trying to figure out a GUI I will never use.
16:44.42[TK]D-FenderFreepbX makes Asterisk config files.
16:44.46[TK]D-Fendernot just "cli"
16:45.08ckbyes but CLI can definitely create Asterisk config files.
16:45.12[TK]D-FenderWhat are you actually trying to do?
16:45.25[TK]D-FenderAsterisk CLI dopes not make the configs
16:45.28[TK]D-Fenderdoes*
16:45.58ckbfirst of all, I was trying to get a list of "extensions" but you tell me to not use that term.
16:46.47[TK]D-FenderWhat FreePBX calls "extensions" can refer to many different types of protocols, and in the case of "virtual" extension, none at all
16:46.49ckbpjsip show endpoints and sip show peers is what I was looking for
16:47.05[TK]D-FenderAnd those don't cover DAHDI, IAX, etc
16:47.21ckbI'm pretty sure we only use those 2 at the moment.
16:47.40[TK]D-FenderWhen you can't say for sure then that's a bad stating spot
16:47.55[TK]D-FenderSo now that you have this... where are you looking to go with that?
16:48.26*** join/#asterisk netman (~netman@185.94.249.222)
16:48.27ckbI'm looking at filtering call logs by "extension"
16:48.47ckbbut I already have SQL queries to pull call logs
16:49.15ckbso I'm just looking at adding dstchannel = '%/###%
16:49.16[TK]D-FenderYou can clearly see the number in some of those field.  You could practically ignore what's configured because you can have history for extensions that no longer exist
16:49.43[TK]D-FenderAnd for stats that could be "bad"
16:51.07ckb[TK]D-Fender, I don't think you understand that I'm trying to get rid of FreePBX.
16:51.15ckbI'm trying to build my OWN.
16:51.33ckbTherefore, FreePBX is out of the question here.
16:51.36[TK]D-FenderYou never expressed anything like that until that sentence
16:52.05[TK]D-FenderSo if you're loking to build your own GUI... go get the book, red the wiki and get to it
16:52.22[TK]D-FenderYou don't need to use FreePBX as something reverse engineer from
16:55.18ckbso then why does this channel exist if I can't ask for help?
17:03.04ckbyou say "go get the book". What book?
17:03.26ckb"Read the wiki": what wiki?
17:04.44[TK]D-FenderHave you gone to Asterisk's web-site?
17:05.52ckbno I literally learned that FreePBX was piggy backing on Asterisk YESTERDAY. It could probably help to give me some resources, rather than berating me.
17:06.59[TK]D-FenderI was trying to figure out your goals, and the target moved 3 times
17:08.13ckbMaybe ask better questions? I don't know. But getting frustrated because you can't get correct answers out of me helps neither you or myself.
17:08.37[TK]D-FenderWhere do your first 2 questions lead to this new final picture?
17:08.57ckbI am trying to build a VOIP business.
17:10.43[TK]D-FenderGo to the page and learn about what Asterisk is and does.  There is a WIKI, There are a few books, but 1 is considered primary.
17:11.33[TK]D-FenderYou need to learn the basics, and those have been documented for to start with
17:12.29[TK]D-Fenderfor you*
17:13.46*** join/#asterisk ckb_ (~ckb@unaffiliated/ckb)
17:26.15ckbwhy is pjsip show endpoints not formatted across the screen? XD
17:34.58*** join/#asterisk cation21- (cation21@gateway/vpn/protonvpn/cation21)
18:13.19sibiriahow do you mean? it lays it out pretty neatly i think
18:13.22sibiriait's even machine-readable
18:27.28ckbhow can I parse that?
18:27.47ckbsibiria, I'm trying to parse it myself right now
18:28.13*** join/#asterisk CatCow97 (~mine9@c-73-96-109-206.hsd1.or.comcast.net)
18:28.47sibiriafor at least endpoints the output is regular, so a regex can be used
18:33.10*** join/#asterisk VectorX (~VectorX@unaffiliated/vectorx)
18:51.57*** join/#asterisk Janos (~textual@201.204.94.76)
18:56.59ckbhow can I get status of SIPs?
19:01.22[TK]D-FenderWhat "SIPs"?
20:04.09*** join/#asterisk sinaowolabi (~Sina@160.152.13.245)
20:07.50*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
20:11.21*** join/#asterisk forgotmynick (uid24625@gateway/web/irccloud.com/x-yvrxwjfmnlekipjn)
21:18.31*** join/#asterisk Cory (~Cory@unaffiliated/cory)
21:32.09*** join/#asterisk ^MillerBoss (~biffies@gives.you.more.taste.at.only.96.calories.millerboss.com)
21:35.12*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
21:35.36*** join/#asterisk Janos (~textual@201.204.94.76)
22:20.50*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
22:21.08*** join/#asterisk Posterdati (~posterdat@host-79-45-214-86.retail.telecomitalia.it)
22:31.36*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
22:38.00*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
23:43.22*** join/#asterisk Dovid (~dovid@ool-4356e81f.dyn.optonline.net)
23:58.57*** join/#asterisk lankanmon (~LKNnet@cpeb4fbe4e331bd-cm64777d632380.cpe.net.cable.rogers.com)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.