IRC log for #asterisk on 20201121

00:19.45*** join/#asterisk aNullValue (~amstemen@lopsa/member/andrewmstemen)
02:34.57*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
04:41.35*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
06:42.36*** join/#asterisk tomaluca95 (~quassel@kde/developer/tomaluca)
07:02.37*** join/#asterisk Janos (~textual@201.204.94.76)
07:07.47*** join/#asterisk Janos (~textual@201.204.94.76)
07:11.45*** join/#asterisk akp55 (~akp55@c-73-148-15-158.hsd1.va.comcast.net)
07:52.25*** join/#asterisk AndyCap (~aoy@pdpc/supporter/sustaining/AndyCap)
08:10.19*** join/#asterisk AndyCap (~aoy@pdpc/supporter/sustaining/AndyCap)
08:29.18*** join/#asterisk tomaluca95 (~quassel@kde/developer/tomaluca)
08:40.40*** join/#asterisk bmg505 (~leon@8ta-151-20-147.telkomadsl.co.za)
09:08.44*** join/#asterisk miralin (~Thunderbi@178.34.150.192)
09:09.59*** join/#asterisk miralin (~Thunderbi@178.34.150.192)
09:21.45*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
09:50.33*** join/#asterisk drathir_tor (~drathir@gateway/tor-sasl/drathir)
11:22.26*** join/#asterisk pchero (~pchero@211.178.226.108)
12:02.14*** join/#asterisk AsteriskRoss__ (~AsteriskR@37.157.48.2)
12:57.35*** join/#asterisk [sID] (~root@213-92-243-160.serv-net.pl)
12:58.28[sID]Hello,
12:58.32[sID]The question is, can I somehow get information about REFERRED-BY: and Refer-To: in dialplan?
13:23.48*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
14:02.53sibiria[sID]: you can read headers using the PJSIP_HEADER() function
14:03.10sibiriafor chan_sip i believe the function is SIP_HEADER()
14:03.47*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
14:04.29[sID]sibiria:
14:04.31[sID]Well, according to the documentation, the header itself does not provide information.
14:04.34[sID]https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_SIP_HEADER
14:04.34[sID]I don't understand how to use the GET_TRANSFERRER_DATA variable
14:04.54[sID]exten => _.,1,Set(TRANSFER=${SIP_HEADER(GET_TRANSFERRER_DATA(x-.))})
14:05.11[sID]Yes unfortunately it does not download any information.
14:07.45sibiria"The variable must be set before a call to the application that starts the channel that may eventually transfer back into the dialplan, and must be inherited by that channel, so prefix it with the _ or __ when setting (or set it in the pre-dial handler executed on the new channel)."
14:07.50sibiriadid you do this as well
14:09.49sibiriai would give SET(GET_TRANSFERRER_DATA=x-) a try, before initiating the call
14:09.55[sID]Well, at the beginning I have dialplans of this context set up
14:10.20sibiriaif you originate with a call file, you must set it there instead i believe
14:10.49sibiriasince once it does enter the context that way, that channel is already bridged
14:11.58[sID]Ok, check it out for a moment
14:13.42[sID]sibiria: Ok, check it out for a moment
14:13.49[sID]He set up, now the question is how to download it exactly?
14:14.12Samot?
14:14.55sibiriai'm not actually sure, but from this point i would try just accessing the header directly by its name with SIP_HEADER()
14:15.42[sID]Ultimately, I need to get information Refer-To: and REFERRED-BY
14:15.52sibiriaah sorry
14:15.53sibiriano
14:16.06sibiriai didn't read the last part - headers will be returned to your channel as a hash
14:16.15sibiria"Headers are returned in the form of a dialplan hash TRANSFER_DATA, and can be accessed with the functions HASHKEYS(TRANSFER_DATA) and, e. g., HASH(TRANSFER_DATA,X-That-Special-Header)."
14:16.34sibiriaso the latter variable call is what you're looking for
14:17.34sibiriae.g. Verbose(1,${HASH(TRANSFER_DATA,SOMEHEADERNAME)}) to have a look
14:18.13sibiriai get the feeling this would be easier with pjsip :P
14:18.28sibiriamaybe consider it an incentive to finally move along from chan_sip
14:19.35[sID]It turns out :) I'll check in a moment.
14:20.28[sID]no return :(
14:21.15[sID]Executing [192.168.1.50:5061@from_sbc:1] Set("SIP/customer-cx_001-00000152", "GET_TRANSFERRER_DATA=x-") in new stack
14:21.33[sID]Executing [192.168.1.50:5061@from_sbc:9] Verbose("SIP/customer-cx_001-00000152", "1,") in new stack
14:21.42Samot[sID]: Do you have hedaders that stat with x-?
14:21.55Samot[sID]: Do you have headers that start with x-?
14:21.59*** join/#asterisk jaysbnc (~jaysbnc@p5b27f5fc.dip0.t-ipconnect.de)
14:22.28jaysbnchi guys, anyone can support me connecting to companyflex sip trunk via pjsip?
14:24.54[sID]https://pastebin.com/rUpKVhig
14:25.08[sID]This Header
14:26.15SamotAnd what is the dialplan for this?
14:28.50[sID]https://pastebin.com/RFeqP2T7
14:30.42[sID]hmm
14:30.44[sID]its work
14:31.11*** join/#asterisk sh_smith (~sh_smith@cpe-172-88-21-24.socal.res.rr.com)
14:31.31[sID]Something works, I'm still checking
14:38.09jaysbnchey guys, anyone familiar with exotic sip trunks?
14:38.23jaysbnci am strugling with an companyflex account
14:40.42sibiriano, but if you provide some more details maybe someone has an idea
15:00.55*** join/#asterisk Janos (~textual@201.204.94.76)
15:04.21*** join/#asterisk AsteriskRoss__ (~AsteriskR@37.157.48.2)
15:04.42*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
15:27.25*** join/#asterisk sa02irc (~mbax@155-079-043-212.ip-addr.inexio.net)
15:48.39*** join/#asterisk jaysbnc (~jaysbnc@p5b27ef65.dip0.t-ipconnect.de)
15:50.06*** join/#asterisk [NC] (~NC@208.94.241.140)
16:30.59*** join/#asterisk Janos (~textual@201.204.94.76)
16:56.15*** join/#asterisk Barbosa (~barbosa@179.250.230.160)
17:04.30*** join/#asterisk jaysbnc_ (~jaysbnc@p5b27ec28.dip0.t-ipconnect.de)
17:19.56*** join/#asterisk netman (~netman@185.94.249.222)
17:56.15*** join/#asterisk tips (~tips@pool-173-72-12-154.cmdnnj.fios.verizon.net)
18:49.02*** join/#asterisk DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt)
19:01.51*** join/#asterisk TandyUK (~admin@TandyUK/staff/James)
19:07.35*** join/#asterisk opal (~wowaname@volatile/founder/wowaname)
19:18.50*** join/#asterisk igcewieling (~ewieling@199.27.202.69)
19:19.21igcewielingwhoops
19:19.25*** part/#asterisk igcewieling (~ewieling@199.27.202.69)
19:34.38*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
20:20.24drmessanoYeah, you better whoops
20:54.52*** join/#asterisk Barbosa_ (~barbosa@179.251.153.93)
21:03.49*** join/#asterisk retentiveboy (~retentive@c-76-97-11-199.hsd1.ga.comcast.net)
21:55.02*** join/#asterisk velix (~velix@unaffiliated/velix)
21:55.27velixSorry for asking, but can I assign variables anywhere or only in extensions? f.e. sounds => '/other/location/'
22:03.02*** join/#asterisk Barbosa (~barbosa@186.192.102.57)
22:03.10SamotJust in diol
22:03.16SamotDialplan
22:03.49SamotYou can set vars on pjsip or sip channels via the endpoint/peers config
22:04.59velixSamot: Oh okay. Then I need to link the directory.
22:05.56SamotLink what directory and how?
22:07.49velixBefore answering this (it's complicated), can the directory variables (f.e. astetcdir) set in asterisk.conf be read from other configs or the dialplan?
22:10.06Samotvelix: What don't you explain what you are trying to do instead of asking questions one at a time.
22:13.05velixSamot: It's always the same. When you'd simply answer the questions, all would be good. But you want to supervise my setup...
22:13.06velixhttps://bpa.st/raw/ZY6A
22:13.12velixI've explained it for you in detail.
22:13.13*** join/#asterisk spatel (~spatel@pool-96-237-230-175.bstnma.fios.verizon.net)
22:13.46velixThe first thing when I come to this channel is to apologize for aksing a question...
22:14.23SamotOK, nevermind.
22:14.33SamotYou asked a question, I gave an answer.
22:14.53velixOkay, thanks for your time.
22:14.58SamotYou asked another question, I asked for clarification on that question, you decided to not answer but ask a different question.
22:14.58velix(and for the answer)
22:16.57velixMy question was about using variables in a path, f.e. "$astdatadir/sounds/myownsound.gsm" in dialplan.
22:17.38SamotOf course you can use vars in the path.
22:17.55velixbut they need to be defined in the callfile.
22:18.05velixI mean, I cannot access the variable set in asterisk.conf?
22:20.43velixah, it works. ${ASTDATADIR}
22:20.45velixThanks!
22:22.42*** join/#asterisk Barbosa_ (~barbosa@gn01-186-192-102-57.sim.goiania.br)
22:28.11*** join/#asterisk Barbosa (~barbosa@gn01-186-192-102-57.sim.goiania.br)
22:28.31velixSorry for asking another question: can I keep the DB from 17.8 to 18.1 or shall I recreate it?
22:37.24*** join/#asterisk tmoore (~tmoore@2600:1702:4110:3d10:c2be:1ad8:7622:fa3e)
22:38.13velixSamot: The symlink solution also works. I've got two approaches now. Thanks for your knowledge again.
23:17.54*** part/#asterisk velix (~velix@unaffiliated/velix)
23:26.03aNullValuedoes anyone here have experience with devices that do video calling over SIP, who might be willing to give advice?
23:27.35aNullValuei need to implement a video door intercom system in a factory. probably with an Axis video door station, which speaks SIP. i've seen a few videos of it being done on youtube, so it works in theory at least, but... i'm concerned about the phones (on the inside, not the door phone), how long they're going to last, how complex the user experience is, etc
23:27.58aNullValuemostly because the only sip phones i can find that seem to support video are running downright ancient versions of android
23:30.56*** join/#asterisk ttys000 (~ttys000@S0106cc2de0099182.no.shawcable.net)
23:35.32SamotaNullValue: Poly's support video. Others support video but you need to get mid-high range models of their phones.
23:35.53SamotBecause either the phone requires an external camera via USB or has one built in.
23:40.38aNullValueall polys? i've been looking at spec sheets and not seeing video codec support :-\
23:40.45aNullValuemaybe i'm missing something, heh
23:42.24aNullValuei really don't need the desk phones to have a camera, i just need them to display the video from the far side. heh.
23:57.20SamotMy points was simple.
23:57.32SamotThere are numerous SIP phones that support this.
23:57.43SamotPoly, Yealink, Grandstream...
23:58.03SamotThree big players in the space. All have a model or more that support video in some format.

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