IRC log for #asterisk on 20210321

00:11.11*** join/#asterisk gregf (~gregf@unaffiliated/gregf)
00:21.31*** join/#asterisk Gugge (gugge@guggemand.dk)
00:38.34*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
01:18.46*** join/#asterisk catphish_ (~charlie@unaffiliated/catphish)
01:19.56*** join/#asterisk friedrich (~friedrich@aextron.de)
01:19.59*** join/#asterisk drc (~drc@stratum0/entity/drc)
01:20.14*** join/#asterisk electronic_eel (~quassel@electroniceel.org)
01:21.19*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
01:22.35catphish_is there an easy way to detect whether i have a caller id that can be presented to a user? the only way i've found is to look at the first few characters of CALLERID(pres) which seems messy
01:24.58*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
01:26.59*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
01:33.53SamotCallerid(name) callerid(num)  callerid(all)
01:40.54*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
01:46.58igcewielingcatphish_: depends on a few thiings, but pres is as good as any
01:47.52igcewielingShould 2 hosts connected to the same switch with gig ethernet ports, get more than 30MB/s ?   It seems to me that it should.
01:48.03igcewielingusing FTP
01:48.18catphish_Samot: callerid(num) seemed to have the number even when presentation was disallowed
01:48.38catphish_igcewieling: the pres string seem to work anyway
01:48.51SamotIs this SIP?
01:48.55catphish_Samot: yes
01:49.06SamotThen that setting doesn't matter.
01:49.41catphish_i don't understand, why wouldn't it matter?
01:49.43igcewielingIt will be set based on Privacy header if you trust the privacy header.
01:49.59SamotBecause CALLERID(pres) is a PRI/analog thing.
01:50.03igcewielingsame way CallerID is set from PAID if you trust PAID.
01:50.11catphish_igcewieling: yes, i trust and send privacy headers
01:50.25SamotSIP is going to use From, PAI or RPID.
01:50.40SamotBy default Asterisk reads from the From header
01:50.43igcewielingif all else fails, check the privacy headers instead of the tech agnostic pres
01:50.48SamotYou have to get the PAI header and parse it.
01:51.10catphish_Samot: right, i'm using PAI, but i need to check the privacy setting
01:51.10SamotYou need to get Privacy and PAI to use them.
01:51.27SamotThat's not what I'm saying at all
01:51.35SamotThere is no "incoming PAI" setting
01:51.59SamotAn incoming call to Asterisk uses the from header by default for the CallerID or the callerid= setting on the endpoint.
01:51.59igcewielingSamot: um, trust_id_inbound=yes
01:52.46SamotYes, that ignored the callerid= setting on the endpoint.
01:53.47catphish_let me start over, i'm using trust_id_inbound, i receive a number, and a privacy setting, what i want to do is test whether the number is allowed to be presented to my end user or not
01:54.04SamotThey you need to look for the privacy settings the carrier sends.
01:54.12catphish_callerid(num) always contains the number
01:54.12SamotIf that is Privacy, you need to look at that header
01:54.17igcewielingnevermind about that FTP bandwidth comment.  I just realized one of the NICs might be GigE, but it is still connectd with USB
01:54.29Samotcatphish_: Because that is in the FROM header.
01:54.39SamotDid you look at the actual SIP message?
01:54.48igcewielingcatphish_: Privacy: none = allowed  Privacy: id = block
01:55.07catphish_yeah, checking the header will work i guess
01:55.31SamotJust like you need to get the PAI header to use P-Asserted for CallerID
01:55.35*** join/#asterisk AsteriskRoss (~AsteriskR@37.157.48.2)
01:55.37catphish_callerid(pres) *is* set, but i was just hoping there was a correct protocol agnostic boolean i could check
01:55.38SamotBecause by default Asterisk pulls the FROM header.
01:56.10igcewielingcatphish_: the values are too complicated for something like that, mostly because it origianlly was designed for PRI
01:56.33catphish_makes sense, there are values i don't really understand, like the screened stuff
01:56.33SamotYes, a lot of the CALLERID() options are PRI/POTS
01:56.48SamotWhich doesn't apply to how SIP does CallerID/Privacy
01:57.05catphish_i'll look at the privacy header, that's the simpest / most reliable option here
01:57.17SamotBut if you're using PAI, you need that too.
01:57.31SamotSpecially if the PAI is different from the FROM header. Which is totally possible.
01:57.38catphish_i don't know if asterisk is setting things from rpid or pai, i receive both, and it works
01:57.54catphish_it's not set from the FROM header
01:57.55SamotYou have to grab the header and parse it.
01:58.02igcewielingcatphish_: assuming SIP only, I'd think the CALLERID(pres) values should be only one of two values, but you'd have to verify that.
01:58.02SamotOK.
01:58.22catphish_asterisk is definitely parsing one of those headers for me
01:58.28SamotThe FROM header
01:58.33SamotSince it's the only standard header.
01:58.43catphish_because incoming caller id works, even when the FROM header is blanked by the peer
01:58.46igcewielingSamot: you are not going to extract presentation info from the From header.
01:58.51SamotThere's no guarantee of PAI or RPID or any other method.
01:58.55SamotJFC
01:58.58SamotIt's a PRI setting.
01:59.00SamotSo forget it.
01:59.03SamotIt is not for SIP
01:59.20SamotDon't latch on to things not meant for this tech.
01:59.33SamotJust because it has a value doesn't mean it's the right one.
01:59.59SamotIt doesn't seem a SIP trace was done to look at the actual SIP message to see what is set where.
02:00.44SamotBecause if I make a call from my Polycom...
02:00.52SamotI have trust_id_inbound=yes
02:01.16SamotSo the CallerID set in my Polycom (in the from header) is what is grabbed by CALLERID(all)
02:01.46SamotAt the SIP proxy I add PAI headers, those have to be grabbed and parsed by Asterisk to set the CallerID to the proper name.
02:01.59SamotOr what I want the CallerID to be for that user.
02:02.00catphish_as i said, i know that callerid(num) and callerid(pres) are set based on rpid, or pai and privary, i don't know which because both are set the same
02:02.15SamotAnd I'm telling you none of those are required.
02:02.23SamotThat don't have to sent at all
02:02.28SamotThey don't exist 100% of the time.
02:02.35SamotSo it is not the default thing Asterisk uses.
02:02.42SamotFROM is default. It's 100% always there.
02:02.47catphish_sure, if they're missing, it'll use FROM
02:02.54SamotNo.
02:03.00SamotBut I digress.
02:03.03catphish_no?
02:03.08SamotI just told you that.
02:03.15SamotPhone -> Proxy -> Asterisk
02:03.24SamotProxy adds PAI headers for CallerID
02:03.36SamotAsterisk pulls FROM header for CallerID(name) and CallerID(num)
02:03.37catphish_what's that go to do with asterisk?
02:03.44SamotSee my last statement
02:03.53SamotIt doesn't use the PAI header
02:03.55catphish_it uses PAI or RPID, i promise
02:03.59SamotShow me.
02:04.10SamotShow me a SIP message with that and how Asterisk is setting that
02:04.17SamotAnd that it is 100% different from the FROM header.
02:05.24catphish_no, because if i do, you'll try to claim you meant something else
02:05.28catphish_so i'd be wasting my time
02:05.30SamotNo I won't.
02:05.42SamotI've been doing this for a very long time. I would like to see what I and others have been missing
02:06.01SamotBecause if this is the case, my testing of all my systems was fucked and I can remove sub routines.
02:06.10SamotSo it would actually be beneficial.
02:06.11catphish_to clarify, you're telling me that if my FROM header reads "anonymous@invalid" i will not have a callerid(num)?
02:06.25SamotYou'll have anonymous
02:06.32SamotOr restricted
02:06.35catphish_because i'm 99% sure you're wrong
02:06.37catphish_but i'll check
02:06.38SamotOK
02:10.41Samothttps://www.irccloud.com/pastebin/3epjFLFo/
02:10.56SamotNote the different in the FROM user to the CallerID Number....
02:11.52catphish_Samot: this is my INVITE https://i.imgur.com/6Eh5JaD.png
02:12.42catphish_and i can assure you that CALLERID(num) contains the redacted number
02:13.19SamotHang on now.
02:13.28SamotBecause I'm about to stand corrected.
02:13.43catphish_when trust_id_inbound=yes, rpid is used when available instead of from
02:14.04catphish_(or possibly PAID, i'm not sure which)
02:14.51SamotI think there was some updates on behavior. Because yes, I can confirm that.
02:14.51catphish_what did you get in your test with PAID?
02:15.12catphish_ah, good, glad i'm not crazy :)
02:15.20SamotNo, which is actually better for me.
02:15.32SamotThere, see I was not going to say I meant something else.
02:15.44SamotI said what I meant and I wanted to be shown otherwise. I was.
02:16.04catphish_the good part is that asterisk also sets callerid(pres) and witholds it from untrusted peers
02:16.17SamotSo this wasn't always the way but I haven't tested this against current versions because it's low on the list of what to check because it was just working.
02:16.47catphish_Samot: thank you, i dislike such arguments, they usually result in people claiming they meant something else, and me wasting 10 minutes testing :)
02:17.34catphish_but as you said, "pres" is a poorly specified concept, and a string, so i dislike relying on it in my own code
02:17.45catphish_but it is working
02:18.41SamotYeah but now I can rip out this gosub.
02:18.47catphish_:)
02:18.58*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
02:20.08catphish_i have this right now, to record a customer-visible copy of the callerid: https://paste.ubuntu.com/p/WDV7BSz5h7/
02:20.22SamotAnd also why Chan_PJSIP > Chan_SIP.
02:20.41catphish_yeah, i've had a few nice surprises since upgrading to pjsip
02:21.00catphish_the main ones being multiple registrations, and non-shit realtime
02:22.36*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
02:23.50catphish_my new web interface is primative so far, but showing response times for each registration is very cool https://i.imgur.com/SxFoQdk.png
02:24.41*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
02:26.07catphish_and realtime let me sync those registrations between 2 hosts using mysql replication and avoid the (imo greater) complexity of using kamailion in this deployment
02:26.36*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
02:32.50*** join/#asterisk Janos (~textual@201.204.94.76)
02:34.09SamotI like the fact Kamailio takes load off Asterisk.
02:35.21SamotAnd gives me more control
02:37.43SamotOh and allows for call failover better since it stays one channel in Asterisk and Im not cycling Dial() processes
02:38.41SamotAllowing for proper LCR routing and upstream failover
02:39.15SamotAnd one call = one CDR
02:40.46catphish_yep, there's definitely benefits in some setups
02:41.20catphish_mine is simple enough that i don't think i need it
02:43.16SamotI can also see who hung up with a bunch of extra Dialplan. And process SIP replied properly and not what Asterisk thinks they should be
02:43.31SamotWithout
02:45.04catphish_oops, it's nearly 3am, i sleep now, thanks!
02:56.08*** join/#asterisk tsal_ (~tsal@i59F52F34.versanet.de)
03:27.48*** join/#asterisk Dovid (~dovid@96.56.22.146)
03:54.57*** join/#asterisk fling (~fling@fsf/member/fling)
04:10.53*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
04:14.56*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
04:32.32*** join/#asterisk shalzz (shalzzjmat@gateway/shell/matrix.org/x-piucekzhlfqnnddd)
04:33.29shalzzHi, can I use a simcom lte modules with asterisk?
04:33.41shalzzWhich channel driver do I need?
04:34.48shalzzI could only find out the simcom modules can be controller via AT commands
04:34.59shalzzdoes asterisk have a channel driver using AT commands?
04:40.00*** join/#asterisk CatCow97 (~mine9@c-73-96-109-206.hsd1.or.comcast.net)
04:40.06igcewielingshalzz: no.
04:41.02shalzzigcewieling Thanks, Is there any other way of controlling simcom modules with asterisks?
04:41.46igcewielingcontrol them?  yes, you could use an agi script and access the serial port of the system.    Use them for voice calls?   I doubt it,
04:42.16shalzzor maybe any other production quality software to use with simcom and not just one off scripts for sms/call redirect
04:42.53shalzzHmm... I mostly need to read sms and maybe setup sip calls
04:43.29shalzzbut reading sms and forwarding to an email is higher priority for me
04:46.40shalzzI'm particularly looking to use this: https://www.waveshare.com/wiki/SIM7600G-H_4G_for_Jetson_Nano
04:52.27igcewielingmost of that sounds like sometihng totally outside of Asterisk
05:35.02*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
05:38.43*** join/#asterisk john2gb0 (~john2gb@94-225-47-8.access.telenet.be)
05:44.23shalzzHmm.. I see. Thanks anyways
05:45.08shalzzI'll try and use a huwaei dongle instead, but somehow it's drawing more power than my jetson can handle...
06:21.11*** join/#asterisk AsteriskRoss (~AsteriskR@37.157.48.2)
06:46.18*** join/#asterisk Jesterboxboy (~Thunderbi@84-115-150-8.cable.dynamic.surfer.at)
06:47.43*** join/#asterisk maristo (~maristo@109.174.114.229)
07:23.06*** join/#asterisk Ner0Zer0 (~Ner0Zer0@87.253.63.54)
08:25.22*** join/#asterisk sa02irc (~mbax@155-079-043-212.ip-addr.inexio.net)
09:24.34*** join/#asterisk GoldenBear (~gb@titan.pathogen.is)
09:28.17*** join/#asterisk GoldenBear (~gb@172.83.42.132)
10:01.34*** join/#asterisk maximCH (~maximCH@mail.swill.org)
10:05.09*** join/#asterisk CatCow97 (~mine9@c-73-96-109-206.hsd1.or.comcast.net)
11:04.10*** join/#asterisk pchero (~pchero@211.178.226.108)
11:57.12*** join/#asterisk hvxgr (~wl2v_usrn@epjdn.zq3q.org)
12:38.54*** join/#asterisk ghoti (~paul@dsl-rb-64-118-22-154.wtccommunications.ca)
14:15.26*** join/#asterisk maristo (~maristo@109.174.114.229)
14:33.35*** join/#asterisk fstd (~fstd@unaffiliated/fisted)
15:05.41*** join/#asterisk retentiveboy (~retentive@2601:cf:4500:5ea0:7aa4:e0bd:9b53:71a8)
15:06.43igcewielinglooks like chan_dongle isn't supported in 16.x
15:07.46SamotOr its noload
15:08.20*** join/#asterisk Ravenheart (~Ravenhear@82-137-78-53.ip.btc-net.bg)
15:08.47Samothttps://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Deprecations
15:09.22filechan_dongle is not in tree
15:09.28igcewielingI did an ls chan_*.c in the channels/ dir.
15:09.58SamotOh yeah its an add on right
15:10.10SamotIts outside of Asterisk
15:11.01igcewielingwhere do people get it from?
15:11.34*** join/#asterisk zapata (~zapata@2a02:1748:fad4:7260:74e2:8a35:3b8c:b319)
15:12.46*** join/#asterisk EmleyMoor (42b789682f@firthpark.tinsleyviaduct.com)
15:14.01SamotNo clue
15:14.15SamotNot a thing I was ever using
15:17.17Kobazpoor chan_sip getting removed in 21.. long live chan_sip
15:35.06SamotNo.
15:47.51*** join/#asterisk Ner0Zer0 (~Ner0Zer0@87.253.63.54)
16:06.58*** join/#asterisk gregf (~gregf@unaffiliated/gregf)
16:50.51DanFromUKHi. Can anyone recommend an external SIP availability monitoring company? Our previous monitoring company recently closed their services for some unknown reason.
16:51.53DanFromUKSIP monitoring = monitoring that Asterisk is responding to packets. More detailed monitoring is performed within the datacentre, so we only need external for basic availability checking.
16:55.37igcewielingDanFromUK: Nope.  Have you considered an inexpensive virtual machine with GCS or AWS and monitor it yourself?
16:57.07DanFromUKigcewieling: I have considered it, but not gotten past that as it would involve maintaining another server and finding/configuring the software. So if theres an out-of-the-box solution that's around $20 a month or less, it's more preferable, simply to save admin time.
16:57.55igcewieling*nod*
17:08.15drmessanoDanFromUK: You just need a YES/NO confirmation that SIP is working from the outside?
17:08.22DanFromUKYes
17:08.38drmessanoSpin up a VM, load monit on it, and spend 5 mins configuring it
17:08.41drmessanoEz Pz
17:09.05drmessanoSo like $5 a month
17:09.07drmessanoor less
17:09.27sibiriaez pz indeed, but the weight of "one more thing to manage and keep track of" is always concern
17:09.33sibiria+a
17:10.39DanFromUKI wasn't aware of monit. We use zabbix internally, but it config on that is a little more involved than we need for the purpose of external monitoring.
17:11.19drmessanoOther than the 10 lines of config, it's a few lines to monitor SIP
17:11.46DanFromUKIt won't have any more access to our production network than any other internet user, so running a VM, even if we forget to install security updates won't expose us to more risk than we are already exposed to.
17:11.52DanFromUKdrmessano: thanks. I'll take a look at it.
17:12.11drmessanohttps://mmonit.com/monit/documentation/monit.html#SIP
17:13.12DanFromUKawesome. looks great. now to find a suitable VM provider...
17:13.12SamotI need to figure out a SIP probe for The Dude
17:13.20DanFromUKHave a good day everyone.
17:13.36drmessanoSamot: I use TCP and TLS probes.  The UDP was too much work
17:13.44SamotI hear Hetzner is awesome.
17:14.06SamotFor two hours straight. Last night.
17:14.17drmessanosibiria: I can't imagine a single app like monit on a basic VM is that much to maintain
17:16.44sibiriathe concern of the machine/instance is one more item on the check list
17:17.14sibiriazabbix can do SIP, btw.
17:17.30drmessano1. He was asking for an OUTSIDE monitor
17:17.35drmessano2. Wanted something simple
17:17.44drmessanoThis is simple and not a full NMS
17:20.22DanFromUKYes, I'm happy with drmessano's suggestion.
17:21.10electronic_eelhmm, good monitoring is on my todo as well. but i'm more thinking of something that actually does a call through some other sip provider
17:21.44electronic_eelincluding accepting the call on my side, playing some tones, decoding them on the montioring machine to check that i actually get audio through
17:22.06sibiriahow is Monit not an NMS?
17:22.23*** join/#asterisk rpifan (~rpifan@p200300d2672b5d00a37456e8d6bd1bdf.dip0.t-ipconnect.de)
17:22.25sibiriapeas in a pod, but different approach to configuring them
17:22.42drmessanoNo
17:22.55sibiriaelectronic_eel: we do this as part of a live integration test that runs 24/7
17:23.02drmessanoAgain, it's like 5 mins of config, less than 15 lines to check SIP and send an email
17:23.07drmessanoA script would be more work
17:23.13electronic_eelsibiria: what program do you use for that?
17:23.28drmessanoIt's not like installing Zabbix and it's not a full NMS
17:23.31drmessanoSo no
17:24.13sibiriayou don't need to script this with zabbix
17:24.52drmessanoHe wants to monitor from the outside.  His Zabbix is inside.  Guess you missed that all 3 times it was mentioned
17:25.00sibiriano
17:25.38sibiriaelectronic_eel: a shell script of our own that produces a call file and then inspects the result. the asterisk context managing the call handles recording of the call and reporting of what goes out and comes back in from the call
17:26.45sibiriai.e. it spits out RTPQoS details, AMD analysis, DTMF events etc.
17:27.14electronic_eelsibiria: do you have something like an "audio-diff" that compares the audio coming back to what should be there, accounting for small time deviations and so on?
17:28.14sibiriaelectronic_eel: no, it doesn't concern itself with the line quality other than reacting to the QoS output if its shows there's no audio coming back at all
17:28.39sibirianetwork monitoring is outside its scope
17:29.00drmessanoThat seems useless then
17:29.11electronic_eeli had some issues in the past with the sip provider just playing some stupid announcement instead of letting the call through. monitoring should catch that
17:29.17sibiriayeah lol, totally useless to know if our platform is performing and behaving the way it's developed to do
17:29.35drmessanoFor what was requested, it's completely useless
17:29.46sibiriastop arguing just for the sake of arguing, man :D
17:29.54drmessanoExcuse me?
17:29.56sibiriai know, it's sundat, but still
17:30.12drmessanoYou seem to be the fucking argumentative one, even after the dude accepted the suggestion
17:30.16drmessanoSo go fly a kit
17:30.17drmessanoSo go fly a kite
17:31.01sibiriaelectronic_eel: part of our integration test does echo testing for the AMD analysis, and it also does DTMF in two steps, one being rfc4733 and the other being in-audio
17:31.50electronic_eelwhat does "amd analysis" stand for?
17:32.20sibiriaAMD, answering machine detection. in our case a DSP thingamajig counting words and detecting fixed tones
17:33.06electronic_eelthanks
17:33.36electronic_eelhmm, so i still have to look for some program to do the audio-diff part
17:33.37sibiriathis integration test runs directly towards our system, we don't terminate the call through an external provider or via the PSTN (though we do test provider availability as part of other tests)
17:33.53*** part/#asterisk igcewieling (~ewieling@199.27.202.86)
17:44.40*** join/#asterisk paulgrmn__ (~paulgrmn@c-98-250-183-21.hsd1.mi.comcast.net)
17:46.03sibiriaelectronic_eel: you can use e.g. wavdiff or so for that. sox can possibly also do it and report a percentual difference instead of producing a waf differential
17:46.35electronic_eelthanks, i will put them on my to-check list
19:39.00*** join/#asterisk paulgrmn__ (~paulgrmn@c-98-250-183-21.hsd1.mi.comcast.net)
20:40.48*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
21:06.56*** join/#asterisk paulgrmn__ (~paulgrmn@c-98-250-183-21.hsd1.mi.comcast.net)
21:54.28*** join/#asterisk bmg505 (~leon@8ta-146-7-37.telkomadsl.co.za)
22:23.26*** join/#asterisk maximCH (~maximCH@mail.swill.org)
23:35.53*** join/#asterisk guerby (~guerby@april/board/guerby)
23:38.02*** join/#asterisk paulgrmn__ (~paulgrmn@c-98-250-183-21.hsd1.mi.comcast.net)

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