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.02 | Kobaz | zgu: DIALPLAN_EXISTS |
02:32.14 | Kobaz | function, 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.37 | zgu | ah 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.44 | zgu | i 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.04 | ckb | asterisk -x sip show peers gives me No such command 'sip' |
11:16.00 | dongs | you wanna quote it |
11:16.04 | dongs | asterisk -x "sip show peers" |
11:17.01 | ckb | thanks |
11:19.42 | ckb | dongs, is that the easiest way to get current extensions? |
11:21.57 | ckb | dongs, also is that not \t that separates these? |
11:22.49 | ckb | how do I parse these lines? |
11:26.14 | dongs | not tabs |
11:26.49 | dongs | i dont think you want to do text parsing here, probably better using whatever new status/control API they have for this purpose |
11:27.06 | dongs | i doubt the format of these is standard or guaranteed to stay same over updated versions. |
11:27.36 | ckb | I'm just trying to get a list of extensions |
11:27.44 | dongs | asterisk manager API for sure should provide the same info in a standard form |
11:28.12 | ckb | I couldn't find anything (I'm running 14 so I don't think there's a rest API?) |
11:28.23 | dongs | manager API has been around for decades |
11:28.36 | dongs | https://www.voip-info.org/asterisk-manager-api-action-sippeers/ this sorta stuff |
11:28.58 | dongs | https://www.voip-info.org/asterisk-manager-api/ more shit here to sort through |
11:30.16 | ckb | this ONLY gives me perl examples |
11:31.47 | dongs | A 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.55 | dongs | i mean, this is not rocket science |
11:32.03 | dongs | you could do it in $yourfavoritelanguage |
11:32.35 | ckb | asterisk -x "sip show peers" gives me a list, sure... but I can't parse the line because it's not \t. |
11:32.38 | dongs | i remember writing osmethign to fuck wiht manager shit in C like 10 years ago |
11:33.17 | dongs | just 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.51 | ckb | that's a lot of work to try to do from a PHP web app |
11:34.10 | dongs | https://www.voip-info.org/asterisk-manager-example-php/ |
11:34.27 | dongs | its literally just openign a socket |
11:34.38 | dongs | plus you can do that with php-cli for testing stuff then move same shit to web |
12:32.15 | ckb | so 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.19 | dongs | "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.49 | ckb | why does sip show peers not show all extensions? |
14:26.58 | *** join/#asterisk gavlee (~gav@unaffiliated/gavlee) |
14:31.01 | [TK]D-Fender | Don't use the word "extensions" when talking about devices you configured to talk to * |
14:31.26 | [TK]D-Fender | And it will show all device entries that of type "peer" or "friend" in sip.conf |
14:31.37 | [TK]D-Fender | if you have OTHER channel types it doesn't show those |
14:32.00 | [TK]D-Fender | Each other channel type has their own command to show their entries |
14:41.00 | ckb | [TK]D-Fender, I'm seriously new to asterisk config and CLI |
14:42.19 | ckb | [TK]D-Fender: please be easy on me |
14:42.46 | ckb | [TK]D-Fender, these extensions can dial many devices |
14:44.59 | [TK]D-Fender | Stop using the word "extensions" |
14:45.19 | [TK]D-Fender | Configs that allow something to connect to * are devices, not "extensions" |
14:45.26 | [TK]D-Fender | And you ar thge one who put configs in there. |
14:45.30 | [TK]D-Fender | Where did you put them? |
14:45.57 | [TK]D-Fender | "sip show peers" is ONLY for sip.conf |
15:00.36 | ckb | What do I call extensions then? |
15:00.58 | *** join/#asterisk Janos (~textual@201.204.94.76) |
15:01.13 | [TK]D-Fender | Where are you even getting the word from? |
15:01.47 | [TK]D-Fender | This 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.14 | ckb | [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-Fender | You have not answered my question |
15:47.19 | ckb | [TK]D-Fender, we are using FreePBX but I'm using asterisk to get information. |
15:47.53 | [TK]D-Fender | FreePBX TELLS you what kind of device you are defining based ont he technology |
15:48.22 | ckb | yes I'm trying to get a list of "extensions" (I don't know what you want me to call it) |
15:48.56 | ckb | dialplan show ext-local is the closest I've come |
15:49.23 | *** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir) |
15:49.35 | ckb | I literally just learned about the asterisk CLI, and am humbled by any help that could be provided |
15:50.13 | sibiria | devices (phones) and SIP trunks are something else |
15:50.19 | [TK]D-Fender | I just told you to look at your extension and it will tell you what it is using. |
15:51.02 | ckb | okay, I have no clue what a "trunk" is. I have a very vague understanding, so work with me here |
15:51.29 | sibiria | your asterisk setup can be considered a trunk |
15:51.40 | sibiria | a VoIP provider's SIP endpoint that you call people through is a trunk |
15:51.46 | sibiria | your phones are not trunks |
15:52.57 | ckb | correct 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-Fender | You keep saying the same things and not listening |
15:53.34 | ckb | I 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.57 | ckb | How do I look at an extension? |
15:54.01 | [TK]D-Fender | ... |
15:54.05 | [TK]D-Fender | in the stupid GUI |
15:54.11 | ckb | what GUI? |
15:54.17 | [TK]D-Fender | FREEPBX. |
15:54.18 | ckb | like I'm SO NEW to this |
16:01.03 | sibiria | a number can be considered an extension |
16:01.15 | sibiria | when you're in a call and press a digit on the keypad you're asking for a new extension |
16:01.21 | [TK]D-Fender | Don't throw more broken terms into this |
16:01.48 | [TK]D-Fender | for now he needs to see what he made in the GUI |
16:02.03 | ckb | I don't deal with the GUI |
16:02.15 | [TK]D-Fender | FreepBX ***IS*** the GUI |
16:02.30 | [TK]D-Fender | The WEB INTERFACE is a GUI |
16:03.21 | ckb | I. Do. Not. Deal. With. The. FreePBX. GUI. |
16:03.23 | *** join/#asterisk opal (~wowaname@volatile/founder/wowaname) |
16:03.31 | sibiria | i thought ckb was just dealing with asterisk directly on his *nix machine |
16:03.52 | ckb | sibiria, correct. My boss uses the GUI |
16:04.02 | [TK]D-Fender | Then you better get a clue at what was made using it |
16:04.20 | [TK]D-Fender | Otherwise you might as well say "I'm blindfolded, how can I see?" |
16:06.08 | [TK]D-Fender | How are you even going to interpret what you see? You have no framework to put what you can see to use.... |
16:07.39 | sibiria | did you check out your dial plan yet? |
16:08.00 | [TK]D-Fender | He doesn't know Asterisk at all |
16:08.39 | [TK]D-Fender | He 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.55 | sibiria | give "dialplan show" a try if you want to see asterisk's extensions |
16:13.22 | [TK]D-Fender | He 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.46 | ckb | [TK]D-Fender, I realize we're using PJSIP for some clients |
16:41.55 | ckb | [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.06 | ckb | and 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-Fender | FreepbX makes Asterisk config files. |
16:44.46 | [TK]D-Fender | not just "cli" |
16:45.08 | ckb | yes but CLI can definitely create Asterisk config files. |
16:45.12 | [TK]D-Fender | What are you actually trying to do? |
16:45.25 | [TK]D-Fender | Asterisk CLI dopes not make the configs |
16:45.28 | [TK]D-Fender | does* |
16:45.58 | ckb | first 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-Fender | What FreePBX calls "extensions" can refer to many different types of protocols, and in the case of "virtual" extension, none at all |
16:46.49 | ckb | pjsip show endpoints and sip show peers is what I was looking for |
16:47.05 | [TK]D-Fender | And those don't cover DAHDI, IAX, etc |
16:47.21 | ckb | I'm pretty sure we only use those 2 at the moment. |
16:47.40 | [TK]D-Fender | When you can't say for sure then that's a bad stating spot |
16:47.55 | [TK]D-Fender | So 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.27 | ckb | I'm looking at filtering call logs by "extension" |
16:48.47 | ckb | but I already have SQL queries to pull call logs |
16:49.15 | ckb | so I'm just looking at adding dstchannel = '%/###% |
16:49.16 | [TK]D-Fender | You 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-Fender | And for stats that could be "bad" |
16:51.07 | ckb | [TK]D-Fender, I don't think you understand that I'm trying to get rid of FreePBX. |
16:51.15 | ckb | I'm trying to build my OWN. |
16:51.33 | ckb | Therefore, FreePBX is out of the question here. |
16:51.36 | [TK]D-Fender | You never expressed anything like that until that sentence |
16:52.05 | [TK]D-Fender | So 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-Fender | You don't need to use FreePBX as something reverse engineer from |
16:55.18 | ckb | so then why does this channel exist if I can't ask for help? |
17:03.04 | ckb | you say "go get the book". What book? |
17:03.26 | ckb | "Read the wiki": what wiki? |
17:04.44 | [TK]D-Fender | Have you gone to Asterisk's web-site? |
17:05.52 | ckb | no 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-Fender | I was trying to figure out your goals, and the target moved 3 times |
17:08.13 | ckb | Maybe 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-Fender | Where do your first 2 questions lead to this new final picture? |
17:08.57 | ckb | I am trying to build a VOIP business. |
17:10.43 | [TK]D-Fender | Go 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-Fender | You need to learn the basics, and those have been documented for to start with |
17:12.29 | [TK]D-Fender | for you* |
17:13.46 | *** join/#asterisk ckb_ (~ckb@unaffiliated/ckb) |
17:26.15 | ckb | why is pjsip show endpoints not formatted across the screen? XD |
17:34.58 | *** join/#asterisk cation21- (cation21@gateway/vpn/protonvpn/cation21) |
18:13.19 | sibiria | how do you mean? it lays it out pretty neatly i think |
18:13.22 | sibiria | it's even machine-readable |
18:27.28 | ckb | how can I parse that? |
18:27.47 | ckb | sibiria, 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.47 | sibiria | for 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.59 | ckb | how can I get status of SIPs? |
19:01.22 | [TK]D-Fender | What "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) |