IRC log for #asterisk on 20180417

00:11.21*** join/#asterisk pvoigt (~Linux@unaffiliated/pvoigt)
00:18.50*** join/#asterisk infobot (ibot@rikers.org)
00:18.50*** topic/#asterisk is #asterisk The Open Source PBX and Telephony Platform (asterisk.org) -=- LTS: 13.20.0 (2018/03/15), Standard: 15.3.0 (2018/03/15); DAHDI: DAHDI-linux 2.11.1 (2016/03/01), DAHDI-tools 2.11.1 (2016/03/01); libpri 1.6.0 (2017/01/27) -=- Wiki: wiki.asterisk.org -=- Code of Conduct: bit.ly/1hH6P22 -=- Logs: bit.ly/1s4AKKu
00:18.50*** join/#asterisk sibyakin (~sibyakin@188.162.238.82)
00:52.19*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
01:07.01dl12Anyone run asterisk on hyperv?
01:12.50SamotIm sure there are.
01:21.15*** join/#asterisk qxork (~qxork@unaffiliated/qxork)
01:22.01*** join/#asterisk sibyakin (~sibyakin@188.162.228.136)
01:49.55*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
01:58.50*** join/#asterisk zigggggy (ffssd@unaffiliated/zigggggy)
02:20.50*** join/#asterisk dl12 (~androirc@204.48.76.225)
02:20.58dl12Asterisk on hyperV ?
02:21.07dl12Is it sta
02:31.20[TK]D-FenderYes people run it on HyperV.
02:31.22[TK]D-FenderIt can work
02:31.27[TK]D-Fenderas well or as bad as anything else
02:31.31[TK]D-Fenderit isn't magic.
02:31.33[TK]D-FenderNEXT!@!!!
02:31.48dl12Haha
02:32.09dl12I may switch from vmware to hyperv
02:32.21dl12Just want to make sure! I will run some test first
02:33.00*** join/#asterisk shootbird (~quassel@beepbeep.serverpit.com)
03:02.02*** join/#asterisk boris_t (~boris_t@109.248.217.2)
03:50.54*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
04:03.06*** join/#asterisk Chotaire (chotaire@unaffiliated/chotaire)
04:04.42*** join/#asterisk nathani (~nathani@2607:f2f8:ac88::)
04:17.03*** join/#asterisk zaf (~zaf@104.254.192.70)
05:07.18*** join/#asterisk [d__d] (~d__d]@ec2-54-85-45-223.compute-1.amazonaws.com)
05:08.23*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
05:16.47*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
05:33.51*** join/#asterisk crossbuilder_ (~crossbuil@91.62.123.226)
05:42.45*** join/#asterisk z3ntu (z3ntumatri@gateway/shell/matrix.org/x-nvvwxfdbjogupbia)
05:46.00*** join/#asterisk moreentropy (markuslind@gateway/shell/matrix.org/x-aeaycuihwyhjpkka)
05:50.18*** join/#asterisk jamesaxl (~James_Axl@109.172.62.242)
05:58.11*** join/#asterisk qxork_ (~qxork@unaffiliated/qxork)
06:19.31*** join/#asterisk ih8wndz (jwpierce3@fam.trnkmstr.com)
06:24.40*** join/#asterisk zigggggy (ffssd@unaffiliated/zigggggy)
06:27.17*** join/#asterisk defsdoor (~andy@cpc120600-sutt6-2-0-cust232.19-1.cable.virginm.net)
06:30.23*** join/#asterisk sebastienthiry (~Thunderbi@109.134.29.137)
06:38.25*** join/#asterisk zigggggy (~bbcde3e@unaffiliated/zigggggy)
06:43.29*** join/#asterisk miralin (~Thunderbi@91.237.94.7)
06:44.02*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
06:57.15*** join/#asterisk miralin1 (~Thunderbi@195.209.246.194)
07:05.06*** join/#asterisk jkroon (~jkroon@uls-154-73-35-201.wall.uls.co.za)
07:09.49*** join/#asterisk eharris (~eharris@unaffiliated/eharris)
07:26.54iBurger21Hey Samot; you were totally right about the NAT / or phone. I messed around in the settings (both firewarll and phone) and my Aastra is connectable now!
07:27.40iBurger21I should go the extra mile to figure what really was the issue, (NAT or phone), but I've been a bit lazy; and just enjoyed the fact that I have a phone now that works. Which is tottaly f-ing awesome. :D
07:34.48*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
08:00.30*** join/#asterisk tzafrir (~tzafrir@local.xorcom.com)
08:02.34*** join/#asterisk DanB (~DanB@clt-195.192.207.4.ip-anschluss.net)
08:10.04*** join/#asterisk MarkSX (~MarkSX@unaffiliated/marksx)
08:25.47*** join/#asterisk sibyakin (~sibyakin@188.162.238.229)
08:31.35*** join/#asterisk akay (akay@unaffiliated/akay)
08:51.51*** join/#asterisk akay (akay@unaffiliated/akay)
08:54.11*** join/#asterisk Da-Geek (~Da-Geek@host-80-194-39-211.static.cable.virginmedia.com)
08:57.02*** join/#asterisk akay (akay@unaffiliated/akay)
08:58.44*** join/#asterisk akay (akay@unaffiliated/akay)
09:02.57*** join/#asterisk polipo (~ppape@217.69.226.89)
09:41.44*** join/#asterisk sekil (~sekil@nat-73.net011.net)
10:05.46*** join/#asterisk gringo (~gringo@unaffiliated/gringo)
10:36.30*** join/#asterisk AsteriskRoss (259d3426@gateway/web/freenode/ip.37.157.52.38)
10:42.19*** join/#asterisk joako (~joako@opensuse/member/joak0)
11:30.49*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
11:46.14*** join/#asterisk dar123 (~dar@2600:1700:38d0:1470:4c14:db5d:5d72:18c4)
12:05.01jcpeters01I have a hard coded PAI to identify pilot number on a SIP trunk.  That is currently what is seen on the Caller ID - is it possible to send the Pilot number PAI and then follow that up with the Remote Party ID?
12:12.34*** join/#asterisk CatCow97 (~mine9@c-24-22-38-85.hsd1.or.comcast.net)
12:16.31*** join/#asterisk [TK]D-Fender (~joe@216.191.106.165)
12:19.51*** join/#asterisk sekil (~sekil@nat-73.net011.net)
12:20.14tzafrirI didn't know Goto accepted (and ignored) "subroutine" arguments just like Gosub
12:21.01tzafrirThat is: Goto(a_context,an_exten,1(whatever , random junk)  is valid
12:21.07tzafrirerr:
12:21.17tzafrirThat is: Goto(a_context,an_exten,1(whatever , random junk))  is valid
12:21.24tzafrirOur use case:
12:21.49tzafrirGoto(a_context,an_exten,1(Set(whatever))
12:22.43tzafrirerr: that is: SET (the function)
12:33.45*** join/#asterisk brad_mssw (~brad@66.129.88.50)
12:44.22*** join/#asterisk qxork (~qxork@unaffiliated/qxork)
12:46.32*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
12:49.07*** join/#asterisk cemotyz09 (~cemotyz09@cpe-70-121-157-202.satx.res.rr.com)
12:56.01*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
13:01.40*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
13:15.59*** join/#asterisk pvoigt (~Linux@unaffiliated/pvoigt)
13:31.51*** join/#asterisk scgm11_ (~scgm11@r186-52-126-220.dialup.adsl.anteldata.net.uy)
13:38.05tafa2has anyone ever used https://www.didww.com/ ?
13:42.57[TK]D-Fenderyes, people have
13:43.00[TK]D-Fender~polls
13:43.01infobot"Does anyone have X or use Y?" is taking a poll, not asking a valid question. Don't do it or our army of rabid weasels will hurt you. Usually, people other than those with the exact same set up can help you and those who have sometimes will not be able to help you. Also see <ask>
13:47.34tafa2grah
13:47.54tafa2im trying to find out if they're a good service and if anyone in the channel would personally recommend them
13:48.28[TK]D-FenderThe just ask those questions directly.
13:48.42[TK]D-FenderNobody tends to come in saying "I love those guys"
13:48.50[TK]D-Fender(didww specifically)
13:49.22[TK]D-Fendermost bringing up who they're using at all is just in reference to "I'm trying to configure PROVIDER and I'm screwing up, help!"
13:49.29[TK]D-FenderThey work.
13:50.03[TK]D-FenderNothing great or special from anything I've ever heard anyone say about the,
13:51.15tafa2The just ask those questions directly. <--- noted
13:52.02tafa2I'm basically trying to find DID's in the Middle East - UAE or Qatar
13:52.29[TK]D-FenderAsking leading questions can lead to repeat Q&A that gets you nowhere near where you actualy want to go.
13:52.42[TK]D-FenderSo cut to the important part
13:53.01[TK]D-Fender<PROTECTED>
13:57.08*** join/#asterisk cresl1n (Adium@asterisk/libpri-and-libss7-expert/Cresl1n)
13:57.08*** mode/#asterisk [+o cresl1n] by ChanServ
13:59.46*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
14:11.03*** join/#asterisk kharwell (kharwell@nat/digium/x-nikvonawtajfikct)
14:11.04*** mode/#asterisk [+o kharwell] by ChanServ
14:14.01*** join/#asterisk SunTsu (miyamoto@unaffiliated/suntsu)
14:24.26*** join/#asterisk muAdmDev (~mu@193.158.65.23)
14:26.20muAdmDevFirst time I got users from outside using my asterisk. Their IP is masqueraded (NAT). Any chance getting this to work with asterisk settings like 'externalip', without setting up a STUN server?
14:27.29*** join/#asterisk kbch (~kbch@178-82-169-0.dynamic.hispeed.ch)
14:29.29[TK]D-Fenderyes, when you use the parameter names
14:29.50[TK]D-Fenderright*
14:31.18*** join/#asterisk martinvw (~martinvw@2003:a:422:3ba0:9e5c:8eff:fe73:fd8f)
14:32.03martinvwHi, do I assume correctly that the System() app is synchronous and that Asterisk will wait for my external command to complete? Is there a similar app that won't wait for my external command?
14:32.50igcewielingmartinvw: yes, but if the program becomes a daemon or otherwise goes into the background then the dialplan could continue.
14:32.54*** join/#asterisk aness (~aness@cm-84.209.48.16.getinternet.no)
14:33.00[TK]D-Fenderpretty much all dialplan apps except Background() are synchronous
14:33.16[TK]D-FenderSo yes it can hold things up depending what you're doing.
14:33.18martinvwigcewieling: ok so the correct solution would be to write my external program so that it'll fork, so that Asterisk can continue as fast as possible?
14:33.57igcewielingmartinvw: that is how I do it with my AGI scripts and I don't see any reason System() would be any different.
14:34.10martinvwOK, thanks for the advice! :)
14:36.33*** join/#asterisk bford (uid283514@gateway/web/irccloud.com/x-pmmyizgbnadrnaus)
14:36.33*** mode/#asterisk [+o bford] by ChanServ
14:46.56*** join/#asterisk rmudgett (rmudgett@nat/digium/x-hwtkmdyjrytiladt)
14:46.57*** mode/#asterisk [+o rmudgett] by ChanServ
14:58.15*** join/#asterisk paulgrmn (~paulgrmn@198-0-107-153-static.hfc.comcastbusiness.net)
15:08.26*** join/#asterisk cemotyz09 (~cemotyz09@cpe-70-121-157-202.satx.res.rr.com)
15:37.25*** join/#asterisk shootbird (~quassel@beepbeep.serverpit.com)
15:47.45*** join/#asterisk maurice2k (d55f8516@gateway/web/freenode/ip.213.95.133.22)
15:48.39maurice2khi there, i have a question regarding ARI applications: is this still "the way to go"? i see a lot of outdated code
15:49.24maurice2kespecially "asterisk/node-ari-client" is using some old swagger libs
15:49.40maurice2ktriggering warnings
16:33.33*** join/#asterisk Worldexe (~Worldexe@95-107-33-134.dsl.orel.ru)
16:36.53*** join/#asterisk Hyper_Eye (~mwoodj@pdpc/sponsor/digium/hyper-eye)
16:55.47*** join/#asterisk jkroon (~jkroon@165.16.204.170)
17:18.07*** join/#asterisk saul (~hubert@190.212.139.203)
17:35.24martinvwhm, I don't get how quoting variables is supposed to work in the dialplan
17:35.51martinvwI have a Dial call that looks like this: same => n,Dial(${SUPPORTPHONES},25,U(crmaddcontact^${CALLERID(num)}^${CALLERID(name)}))
17:36.13martinvwand in crmaddcontact, I try to print the passed values like this: same => n,NoOp(ARG2 = ${ARG2})
17:36.13filemaurice2k: depends on what you are trying to do, it is certainly a way to build telephony applications and is being used by people
17:36.59martinvwbut in the output, Asterisk will cut CALLERID(name) off at the comma; so if the name was "Lastname, Firstname", NoOp() will only print "ARG2 = Lastname"
17:37.15martinvwI suppose I'd have to quote it somehow, but putting it in "" doesn't seem to do the trick :/
17:38.15martinvwI'm not even sure if my mistake is in the Dial call (do I need to quote ${CALLERID(name)} before passing it as an argument?), or in my crmaddcontact sub
17:45.40martinvw${LEN(${ARG2})} returns only the length of Lastname, which leads me to believe that the mistake must be in the Dial() call
17:49.18igcewielingmartinvw: When I have an issue with commas in the data, I convert them to ! before passing the data to a macro or gosub, then convert it back to commas inside the gosub.
17:50.20igcewielingthis is ael, but close enough.         Set(dest=${REPLACE(dest,!,,)});  goto ${dest};
17:51.28igcewielingI'd put a Dumpchan() in your crmaddcontact subroutine to see how the data is REALLY received.
17:52.43martinvwigcewieling: hm, that seems kind of icky to me. I was hoping that there might be a proper way to quote/escape variables so that I can pass them around easily. I mean, what if not's only commas that are interpreted differently than I expect, what if it'll unexpectedly interpret things like ${SHELL(evil injection attack)} too? :/
17:53.16igcewielingwhy not use CALLLERID(name) and num directly in your subroutine.
17:53.30martinvwigcewieling: oh, DumpChan() looks nice, didn't know about that yet.
17:54.07martinvwigcewieling: that's what I tried first, but Dial() seems to replace the CALLERID values. Before Dial(), they contain infos about the caller, and after Dial(), they contain infos about the extension that is being dialed.
17:54.42igcewielingthat's not the way it works.
17:56.21martinvwigcewieling: hm, not sure, maybe I've got something completely mixed up. But when I add same => n,NoOp(CALLERID(num) = ${CALLERID(num)}) right before my Dial() call, I get "CALLERID(num) = +49 176 ..." - that's my mobile phone number I'm calling from.
17:56.22igcewielingIf you don't set the CallerID it should stay the same when dialing, if it didn't then callerid would only be passed to the destination if it is manually set -- not the way it works.
17:56.58igcewielingstop putting in extra spaces, they break stuff.   So what is it after the dial?
17:57.11martinvwAnd in my crmaddcontact sub I get "CALLERID(num) = support" - that's the extension that called Dial()
17:57.24igcewielingis that an extra space around the = ?
17:58.05martinvwYes, but I wouldn't have expected that to cause any problems... I don't use extra spaces in Set() assignments, only in NoOp(). That should only cause Asterisk to print stuff to the log?
17:58.30igcewielingnoop and verbose won't break with extra spaces, but it is a terrible habit to get into.
17:59.02igcewielinguntil we see the dialplan output showing the issue there isn't much else to suggest./
17:59.11martinvwI have a lot of shell background, I certainly won't fall into that trap when using Set() :)
18:01.28martinvwok, DumpChan() is really helpful
18:01.57igcewielingyou need to study "core show applications" and "core show functions"
18:02.34martinvwthe mistake definitely has to be in the GoSub() call - it splits ${CALLERID(name)} into two separate variables, ARG2 and ARG3
18:02.35rmudgettThe U() Dial option executes the subroutine on the CALLED channel that is why you see CALLERID() change values.  You are operating on a different channel.
18:03.06martinvwand also there's ConnectedLineIDNum and ConnectedLineIDName, which is probably what I'm looking for instead of CALLERID
18:03.28igcewielingrmudgett: is ${MASTER_CHANNEL(CALLERID(name))} a way to work around that
18:03.50igcewielingthink of connected line as "called id" not "caller id"
18:05.33rmudgettI haven't really used MASTER_CHANNEL() so I'm not too familiar with what it does.
18:05.44martinvwWhat I'm still very curious about is how to properly use U(somesub^${some function}^${some function}) - how do I ensure that whatever ${some function} expands to is passed as a single argument, and not split at commas?
18:06.20rmudgettI have a blogs.asterisk.org article about the interception routines that is applicable.  For some reason I cannot get to the site to post a link.
18:06.30*** join/#asterisk scgm11_ (~scgm11@r186-50-33-33.dialup.adsl.anteldata.net.uy)
18:06.49martinvwU(somesub^${CALLERID(name)) definitely seems to be very wrong, and U(somesub^"${CALLERID(name)") doesn't seem to work any better.
18:07.56igcewielingwell the second one has quotes so that won't work
18:08.25rmudgettDial(xxx,,U(context^"${CALLERID(num)"}))  should pass the comma.  You are using ^ as a substitute for a comma in the parameters of the U() option.
18:08.38igcewieling"abc" is not quoted string abc.  It is a string of quote abc quote
18:09.02igcewielingmartinvw: we still don't see a pastebin showing that.
18:14.05martinvwDial() command, the [test] sub and the redacted DumpChan output - would that be enough? https://pastebin.com/XbuRGnvU
18:14.15martinvwor do you need the complete dialplan and asterisk output?
18:14.53*** join/#asterisk peacetreaty (~peacetrea@static.36.148.9.5.clients.your-server.de)
18:15.49martinvwPutting quotes around the ${CALLERID(name)} changes nothing, DumpChan() will still print ARG1=Lastname and ARG2= Firstname (Company)
18:15.54peacetreatyhi, i just upgraded my linux-distribution. dahdi seems to work, pri show spans shows all my spans up, but asterisk is not answering my call. i even don't see an incomming call. does anyone know how to debug this?
18:20.33*** join/#asterisk esteban (~esteban@unaffiliated/esteban)
18:23.28igcewielingtry using ${MASTER_CHANNEL(CALLERID(name))} in [test] see if that gets the correct callerid name info
18:25.20igcewielingthat way you don't need to pass it as an arg
18:26.30igcewielingfix the callerid line in sip.conf too  callerid="support" is not valid.  callerid=1234 "test" is valid, though I doubt that is the current issue.
18:26.47igcewielingnotice the number before the name
18:27.21rmudgettYou could set a variable with a single underscore so the called channel can see the CALLERID(name) or in this case you could use CONNECTEDLINE(name) to get the caller's name.  The U() subroutine is executed by the called channel not the calling channel when the called channel answers.  https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information#ManipulatingPartyIDInformation-PartyIDpropagation
18:27.57igcewieling<PROTECTED>
18:28.48rmudgettThe full format is: "name" <number>
18:29.21rmudgettAlthough leaving off the quotes is also acceptable.
18:33.53*** join/#asterisk miralin (~Thunderbi@91.237.94.7)
18:35.55*** join/#asterisk cemotyz09 (~cemotyz09@cpe-70-121-157-202.satx.res.rr.com)
18:42.15rmudgettThis is what I was looking for earlier: http://blogs.asterisk.org/2017/03/29/dialplan-handler-routines-allow-customization/
18:46.30martinvwThanks for the advice everybody, but I'll think I'll temporarily revert my changes to our extensions.conf and call it a day for now. I'll be back :)
18:46.32*** part/#asterisk martinvw (~martinvw@2003:a:422:3ba0:9e5c:8eff:fe73:fd8f)
18:55.21*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
18:55.25peacetreatyi figured it out by my self. thanks
19:25.40*** join/#asterisk nny (ad5db800@gateway/web/freenode/ip.173.93.184.0)
19:27.10nnyLooking for some creative thinking here. I have phones that can be set to CALLFWD when someone is away. When they do, they use the same context to dial out as a normal call. As such the callerid is changed to the normal outbound CID via the dialplan. I have some rather verbose ideas on how to check channels and change CID but wondering if there's a better way
19:29.19nnythe phones are Cisco SPA series, I am looking into how the forward is handled in the system.
19:30.43[TK]D-FenderCID should remain the same as the original call
19:31.17[TK]D-Fender<PROTECTED>
19:32.37nnyI am working on a test setup right now, I'll do some of my own investigation and report back, thanks.
19:42.31*** join/#asterisk tzafrir (~tzafrir@62-90-199-247.barak.net.il)
19:46.53*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
21:31.41*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
21:35.27*** join/#asterisk u0m3_ (~u0m3@84.232.219.200)
21:35.28*** join/#asterisk Janos (~Janos@181.194.13.213)
21:37.55Janoshey there, question, I´m trying to build an api to be used as a realtime source for asterisk queues and queue_members. I have setup asterisk and everything seems to be in place, I get the request, but now I´m not sure what to send back to asterisk
21:38.11*** join/#asterisk ChkDigit (~u388mw@74.3.144.66)
21:38.47Janosaccording to the docs (https://wiki.asterisk.org/wiki/display/AST/cURL#cURL-multi) I have to respond with urlencoded data and thats fine but what are the names of the parameters, and which ones are required is what I don't know
21:39.14Janosis there any place where I can read more in depth documentation ? or should I go to the source ?
21:41.13Janosalso is there a list where I can find out what exactly are the "things" that can be loaded with realtime ?
21:58.29*** join/#asterisk TheGoodGuy (~quassel@mail.thegoodguysgroup.ca)
21:58.43TheGoodGuyHey Guys, Maybe someone can point me in the right direction, I am looking for solution for our phone system, That basicly allows you to schedule voip calls via a web GUI anyone know of a 3rd party application / Asterisk plugin that does somthing similar?
21:58.52TheGoodGuyThe idea is, we have our security guards making their rounds, They need to call in when they get to a site, if they do not call in, Start calling them, If they do not answer and confirm okay with a 1 and their pin or emp number, call the monitoring center.. etc etc..
22:07.33*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
22:08.42[TK]D-FenderTheGoodGuy, Everything is 3rd party starting with you as the admin
22:09.19[TK]D-FenderTheGoodGuy, I'm not faminliar with any ge generically written that would serve for this as-is.
22:23.54*** join/#asterisk sibyakin (~sibyakin@188.162.238.247)
23:01.57*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
23:22.08*** part/#asterisk kharwell (kharwell@nat/digium/x-nikvonawtajfikct)
23:40.30*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
23:55.02*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
23:55.51yaymuffinsHello
23:58.31yaymuffinsI'm trying to setup SIP for personal use, there two places I want connected to the same server, Since this is a home setup and not an enterprise, I do not have multiples public IPs and I'm behind a NAT, but there a VPN linking my home network were the SIP server is to a Linux NAS at the second place.
23:59.23yaymuffinsIs there some sort of SIP Proxy I could use from the NAS to connect to the SIP server and then to connect the phone on the linux box?

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