IRC log for #asterisk on 20170715

00:10.13*** join/#asterisk jjrh (~weechat12@ppp-199-167-117-147.storm.ca)
00:19.58*** join/#asterisk infobot (~infobot@rikers.org)
00:19.58*** topic/#asterisk is #asterisk The Open Source PBX and Telephony Platform (asterisk.org) -=- LTS: 13.17.0 (2017/07/12), 11.25.1 (2016/12/08), Standard: 14.6.0 (2017/07/12); 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:23.07*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
00:25.37*** join/#asterisk Typhon (~Typhon@dslb-088-065-216-111.088.065.pools.vodafone-ip.de)
00:35.57*** join/#asterisk forgotmynick (uid24625@gateway/web/irccloud.com/x-qlyenrvefwiptyqe)
00:36.24*** join/#asterisk jjrh (~weechat12@ppp-199-167-117-147.storm.ca)
00:37.40forgotmynickhello. asterisk 13 keeps randomly crashing on ubuntu. i've found this - does anyone know how to fix this? https://pastebin.ubuntu.com/25092722/
00:41.52*** join/#asterisk rwb (~Thunderbi@65.183.151.121)
00:45.07*** join/#asterisk justdave (~dave@unaffiliated/justdave)
01:17.45*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
01:19.07*** join/#asterisk ganbold (~ganbold@173.244.215.173)
01:25.28SamotAre you running anything special on the server?
01:25.34Samotforgotmynick ^^^^
01:37.40*** join/#asterisk zapata (~zapata@2a02:b18:581:10:1c4d:1e27:e4c1:2d04)
01:39.14*** join/#asterisk iheartlinux (~jwpierce3@mail.trunkmasters.com)
03:59.42*** join/#asterisk J0hnSteel (~J0hnSteel@92.55.116.179)
04:07.42*** join/#asterisk lankanmon (~LKNnet@2607:fea8:d1f:ffcb:8450:f548:f3a6:e6e6)
04:18.17*** join/#asterisk J0hnSteel (~J0hnSteel@92.55.116.178)
04:34.44*** join/#asterisk mub (~jub@unaffiliated/mub)
04:41.06wyoungforgotmynick: sounds nasty
04:45.46*** join/#asterisk tuxd00d (~tuxd00d@ip68-106-11-138.ph.ph.cox.net)
05:04.45*** join/#asterisk tuxd00d (~tuxd00d@ip68-106-11-138.ph.ph.cox.net)
05:26.25*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
05:29.26*** join/#asterisk troyt (~troyt@2601:681:4600:1291:44dd:acff:fe85:9c8e)
05:55.08*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
07:12.05*** join/#asterisk defsdoor (~andy@cpc120600-sutt6-2-0-cust177.19-1.cable.virginm.net)
07:26.07*** join/#asterisk jkroon (~jkroon@41.13.18.181)
07:37.41*** join/#asterisk miralin (~Thunderbi@91.237.94.1)
07:39.51*** join/#asterisk juvenal (~juvenal@152.250.188.25)
10:33.17*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
10:46.51*** join/#asterisk Tim_Toady (~fuzzy@snf-33276.vm.okeanos.grnet.gr)
11:10.45*** join/#asterisk samwierema (~samwierem@095-097-255-066.static.chello.nl)
11:43.54*** join/#asterisk evil_gordita (robert@ip70-188-41-127.rn.hr.cox.net)
11:47.30*** join/#asterisk war9407 (war@pool-70-106-197-167.clppva.fios.verizon.net)
12:16.06*** join/#asterisk tzafrir (~tzafrir@bzq-84-109-18-138.cablep.bezeqint.net)
12:23.46*** join/#asterisk sleip (~root@c-76-105-87-143.hsd1.ga.comcast.net)
12:56.08*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
13:11.09*** join/#asterisk rwb (~Thunderbi@65.183.151.121)
13:14.49*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
13:28.23*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
14:27.33*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
14:35.44*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
14:40.29*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
14:49.39*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
14:56.48*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
15:22.23*** join/#asterisk tzafrir (~tzafrir@bzq-84-109-18-138.cablep.bezeqint.net)
15:31.21*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
15:46.53*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
15:55.46*** join/#asterisk forgotmynick (uid24625@gateway/web/irccloud.com/x-irlhcnxhoiqdkbwg)
16:11.24*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
16:42.16*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
16:48.42*** join/#asterisk samwierema (~samwierem@82.169.225.211)
16:53.28*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
17:08.45*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
17:20.18*** join/#asterisk Encrypt (~Encrypt@AMontsouris-655-1-207-50.w92-151.abo.wanadoo.fr)
17:20.31EncryptHello everybody!
17:20.33*** join/#asterisk sh_smith (foobar@cpe-76-174-26-91.socal.res.rr.com)
17:20.53EncryptI'm coming here to ask a question regarding my asterisk setup :)
17:21.00EncryptI'd like to use my server as a potential VoIP gateway
17:21.46EncryptThat is to say, with my mobile phone plan, I would like to connect to asterisk first and then make it recognize me so that I could use a VoIP plan
17:22.01SamotYou want your mobile phone to connect to Asterisk??
17:22.14SamotYou can but you need a softphone client and data access.
17:22.52EncryptHere is a simple scheme: [Mobile phone] --- dial my iNum number ---> [Asterisk server] --- authentication ---> I can call with my VoIP number configured on asterisk
17:22.55*** join/#asterisk sh_smith (foobar@cpe-76-174-26-91.socal.res.rr.com)
17:23.15SamotiNum?
17:23.30EncryptThis is because with my current mobile phone plan, I can call for free 3 phone numbers
17:23.55SamotSo basically, you want to set up Asterisk to call into and then tell it where to dial from there?
17:23.56EncryptSo, if I set one of these nmbers to be an iNum gateway, I can then reach to my asterisk server
17:24.23EncryptAnd once I'm on my asterisk server, I could authenticate to use a set-up VoIP plan :)
17:24.26SamotI have no idea what an iNum is.
17:24.33SamotNo.
17:24.38EncryptSamot, http://www.inum.net/
17:24.48EncryptIt's a free number
17:25.19SamotYour
17:25.19SamotOK
17:25.19SamotThat has nothing to do with calling people.
17:25.19[TK]D-FenderSo do it
17:25.19EncryptI opened an account on ippi.fr years ago and I have a free iNum number
17:25.25SamotAsterisk is a B2BUA
17:25.32[TK]D-FenderAs long as you can ID or auth the call gho do whatever you want with that call afterwards
17:25.40SamotYou're going to call Asterisk and it's going to want to know what to do with the call..
17:25.42EncryptSo when someone calls me on this number, I receive the call on my SIP clients
17:25.43SamotSo..
17:25.46SamotOK
17:25.49[TK]D-FenderSure
17:25.51[TK]D-Fendergo do it
17:25.53SamotYes
17:25.58Encrypt[TK]D-Fender, Yep :)
17:26.06SamotYou said call from your cell to your Inum and then make outbound calls through Asterisk
17:26.31SamotBecause you can call three numbers free..
17:26.32SamotThat's different
17:26.32EncryptI wanted to get pointers to know what I should be looking for to do it :)
17:26.32[TK]D-FenderCall comes in to *.  Check whatever you want or prompt for some auth if the callerid isn't evident, etc
17:26.32[TK]D-Fender^
17:26.34[TK]D-FenderDo you SEE the call as coming from your cell?
17:26.38EncryptThe caller number will be an iNum gateway
17:26.41[TK]D-FenderIf so, then that's probably all you need
17:26.49EncryptSo, a kind of "public" number
17:26.49[TK]D-Fenderotherwise answer and ask for a password or something
17:26.56SamotEncrypt: You have to point that iNum number somewhere
17:27.23SamotWhich would be your Asterisk server
17:27.23SamotSo now calls to that number hit Asterisk..
17:27.23SamotThen what?
17:27.23Encrypt[TK]D-Fender, And at the same time, I want it to be transparent
17:27.27[TK]D-FenderDon't use solid paint then
17:27.50EncryptFor instance, wait for one second for a user input to press "#"
17:27.50[TK]D-Fender<Encrypt> [TK]D-Fender, And at the same time, I want it to be transparent <- what does that even mean
17:27.50[TK]D-Fender?
17:27.50EncryptThen, I would be directed to the auth mechanism
17:27.57SamotWho knows.
17:28.02[TK]D-Fenderit's YOUR call
17:28.06[TK]D-Fenderprocess it however you want
17:28.11SamotThis started as calling Asterisk to make outbound calls.
17:28.12[TK]D-Fenderit has arrived at your server
17:28.21Encrypt[TK]D-Fender, That is to say, if someone calls me on this iNum number or my VoIP number, it should be able to ring and reach me
17:28.22[TK]D-FenderSamot, that's what I got
17:28.48[TK]D-Fenderand how do you want * to call you?
17:28.48EncryptI will give you examples
17:28.48EncryptIt will be clearer
17:28.49[TK]D-Fenderwe shouldn't need multiple
17:28.59[TK]D-FenderHOW do you expect * to call you?
17:29.02EncryptIn the future, I will have two numbers configured on my asterisk server
17:29.06SamotOK
17:29.07SamotLook
17:29.10[TK]D-Fenderwhat SPECIFIC service will it call out using?
17:29.36SamotEncrypt: The numbers, regardless if iNum or not, will hit Asterisk..
17:29.36SamotThen what?
17:29.36[TK]D-Fenderand right now you are also mixing your INBOUND strategy with your OUTBOUND
17:29.41SamotWhat happens when I call you iNum number and it hits Asterisk?
17:29.42EncryptSamot, Here is my explanation:
17:29.42[TK]D-Fenderfinsh ONE direction first
17:29.50[TK]D-Fenderotherwise this coversation is going to end up in circles
17:30.29Encrypt[TK]D-Fender, Yes, yes
17:30.35igcewielinginbound calling and outbound calling are as different as cats and gorillias.   Treat them that way.
17:30.46EncryptSo let's say someone is calling me (inbound call)
17:30.51SamotOK
17:31.22[TK]D-FenderWHAT are they dialing?  HOW does that lead to *?
17:31.32EncryptI will have two numbers configured: an iNum one (0088351000xxxxxxx) and a VoIP one (00331xxxxxxxx in France)
17:31.48EncryptPeople would be able to reach me with these two numbers
17:31.48SamotOK
17:31.50[TK]D-FenderHOW does iNum get delivered to *?
17:31.57SamotSo the call hits Asterisk from the carrier
17:32.10SamotNow that Asterisk has it, then what?
17:32.37EncryptIf they call the iNum or the VoIP number, asterisk then tries to reach me with a timeout of 5 seconds
17:32.37SamotHow?
17:32.45SamotYou have to tell Asterisk that
17:32.55SamotHow to call you, how many times, how long....
17:32.59[TK]D-FenderHOW is asterisk call OUT to you?
17:33.03Samot5 seconds = 1 ring roughly maybe two...
17:33.06SamotBTW.
17:33.06[TK]D-Fenderwhat SERVICE is it going to use?
17:33.10EncryptSamot, It tries to reach one of my SIP softphones, if I am available
17:33.16Samot5 seconds = 1 ring roughly maybe two...
17:33.20[TK]D-FenderSo it calls a softphone?
17:33.36SamotSo you need to write dialplan
17:33.38EncryptSamot, Right, sorry, 5 rings (I have no idea how many seconds that is)
17:33.47SamotRoughly 30
17:33.50[TK]D-FenderAgain, * is calling out to a VoIP SOFTPHONE?
17:33.51SamotGive or take
17:33.53EncryptSamot, I already have one and it works with my iNum number :)
17:34.00Encrypt[TK]D-Fender, Yes
17:34.10[TK]D-FenderFine so far...
17:34.19SamotSo what's the issue?
17:34.19EncryptIt's either linphonec or CSipSimple
17:34.32SamotSounds like you have this working
17:34.36EncryptDepending on my availability on my smartphone or PC
17:34.40EncryptYep :)
17:34.46SamotSo what is the issue?
17:34.52SamotThis sounds like a normal use case.
17:35.19EncryptSamot, Let's consider another case now
17:35.19SamotAsterisk acting as a PBX
17:35.19igcewielingSounds a lot more complicated than VoIP Carrier -> Internet (SIP) -> Asterisk -> Network (SIP) -> SIP phone.
17:35.19EncryptI am out and I have no WiFi access
17:35.44SamotOK
17:35.44SamotSo your extension isn't registered.
17:35.44EncryptMy mobile phone plan allows me to set 3 numbers that I can call for free
17:35.57EncryptI will set the number of my iNum gateway
17:36.13SamotYes..
17:36.19SamotYou want to call your iNum number..
17:36.21[TK]D-FenderYou're complicating this...
17:36.23SamotHit the PBX
17:36.23EncryptI would like to contact a contact who has a fixed phone
17:36.29SamotAnd dial out to another number.
17:36.37SamotYou need to tell Asterisk what that number is.
17:36.39[TK]D-FenderWHAT is * going to CALL not that your soft-phone is NOT there?\
17:36.48[TK]D-FenderWhy are we hearing 10 other things?
17:36.48EncryptThen, with my VoIP plan I can call this number for free (and for an unlimited amount of time)
17:36.56SamotHe switched directions.
17:36.56SamotI'm following.
17:36.56[TK]D-FenderFUCK
17:37.11[TK]D-FenderFINISH THE DAMN DIRECTION
17:37.11SamotEncrypt: You have to tell Asterisk what to do.
17:37.14SamotHe has working inbound to softphone
17:37.18SamotThat's not the issue
17:37.23[TK]D-Fenderwhat happens if it ISN'T there?
17:37.23Encrypt[TK]D-Fender, I finished the first direction :x
17:37.23SamotIt was rambling but that works
17:37.31EncryptI mean the simple one
17:37.38[TK]D-Fender<[TK]D-Fender> what happens if it ISN'T there? <-
17:37.44[TK]D-FenderYou mentioned it might NOT be there.
17:38.04SamotNo
17:38.04[TK]D-Fenderwhat happens THEN?
17:38.05Samotwiji
17:38.05SamotNot having wifi
17:38.05EncryptOh, sorry
17:38.05SamotSo can't make outbound calls
17:38.05SamotHe wants DISA basically
17:38.05SamotThat's what he's looking for
17:38.11[TK]D-Fenderthat's inbound from HIM.
17:38.13Encrypt[TK]D-Fender, Then it will simply go to the "mailbox"
17:38.13SamotOr something like it.
17:38.16SamotRight
17:38.18[TK]D-Fenderand we shouldn't be ON that topic yet
17:38.29SamotHe wants to call the PBX to call other numbers
17:38.32SamotThe original question
17:38.37[TK]D-Fenderfine, NOW we've finished inbound from "other people"
17:38.54Encrypt[TK]D-Fender, Right :)
17:38.58EncryptSorry again
17:39.03SamotEncrypt: You need to tell Asterisk where to call
17:39.09[TK]D-FenderEncrypt, so when YOU call your server you either need to match the callerid of the call or PROMPT for user input
17:39.26SamotYou can call into an IVR that lets you enter numbers and then Asterisk can dial the digits you enter
17:39.26Encrypt[TK]D-Fender, Yes
17:39.52EncryptSamot, Yep! That's what I am looking for
17:39.52SamotOr you can press 1, 2, 3, whatever (speeddials) that Asterisk maps to numbers.
17:39.52EncryptAs you mentioned, when I will be away:
17:39.52SamotYou dial out your SIP trunk
17:40.03EncryptI first call the iNum number with my mobile phone, which is free for me.
17:40.05SamotThis is a common thing done.
17:40.09SamotWell documented.
17:40.10EncryptThen, I authentify myself
17:40.21[TK]D-FenderEncrypt, So far all we care about is how those calls GET to *
17:40.36SamotEncrypt: Here's the thing...
17:40.41EncryptOnce authentified, asterisk listens for numbers I dial and then use my VoIP plan to reach that person
17:40.48SamotIf you have your iNum for both inbound calls from everyone else...
17:40.54[TK]D-FenderEncrypt, so go do it
17:40.57[TK]D-Fenderits YOUR dialplan
17:40.59SamotAnd you want to use it for yourself to make outbound calls..
17:41.00[TK]D-Fendergo ask for INPUT
17:41.01EncryptYep :)
17:41.04SamotYou need to catch YOUR calls
17:41.14SamotSo you can route them differently
17:41.19[TK]D-Fender[TK]D-Fender> Encrypt, so when YOU call your server you either need to match the callerid of the call or PROMPT for user input
17:41.19SamotFrom your callerid
17:41.25EncryptSo, I have to wait for an input
17:41.44Samot^^^
17:41.44SamotRight
17:41.44SamotNO
17:41.44[TK]D-Fendereither * can SEE it's you or you have to allow INPUT
17:41.44[TK]D-FenderPICK ONE
17:41.44SamotYou can match the call off YOUR caller id
17:41.46SamotWhich can go to a prompt
17:41.52Encrypt* won't be able to see it's me, since the number will be the one of the gateway
17:41.54SamotAsterisk still needs to know WHERE to call
17:41.59SamotNo.
17:42.00SamotFFS.
17:42.01EncryptSo, I think INPUT is the way to go
17:42.04[TK]D-Fendergo LOOK to see if the call shows your callerid
17:42.04SamotThat's the INBOUND
17:42.11SamotYour mobile number will be the CALLERID
17:42.35[TK]D-FenderFUCKING LOOK AT THE CALLER-ID FIRST BEFORE GUESSING
17:42.49EncryptYes, yes
17:42.50[TK]D-FenderEncrypt> * won't be able to see it's me, since the number will be the one of the gateway <- maybe the gateway passes YOUR number on
17:42.51SamotEncrypt: What you are looking to do is a common thing. People do it all the time.
17:42.54[TK]D-FenderLOOK AT IT
17:43.17Encrypt[TK]D-Fender, Don't take this too seriously :x
17:43.17EncryptI will
17:43.17[TK]D-FenderThe problem is you're not LOOKING
17:43.24[TK]D-FenderAnd picking solutions without definig what is actually HAPPENING
17:43.24EncryptI only wanted to get your opinion, not you to write my dialplan eh :x
17:44.02SamotYou have to figure out how you want to do this
17:44.02[TK]D-FenderYou want transparent, then you should see if you can avoid that input step.
17:44.12SamotHow will Asterisk know the destination?
17:44.13[TK]D-Fenderor how you are forced to do this
17:44.23[TK]D-FenderSamot, that's DISA
17:44.37[TK]D-FenderSamot, because he's calling the server.  the real target does have to get dialed
17:44.43Encrypt[TK]D-Fender, That's all I wanted to get, pointers
17:44.43SamotI know.
17:44.45EncryptFor the rest, I'll figure out :)
17:44.56SamotHow will Asterisk know if he's trying to call mom or for a pizza?
17:45.03SamotHow will Asterisk know what digits to dial?
17:45.09SamotSomeone has to input those...
17:45.37SamotThere needs to be prompting
17:45.37[TK]D-Fendersomeone = him
17:45.37SamotRight
17:45.37SamotThat's what I was saying.
17:45.37SamotAn IVR
17:45.48EncryptOk, I've just has a look at DISA
17:45.49[TK]D-Fenderor DISA direct
17:45.52EncryptThat's what I wanted :)
17:46.03[TK]D-FenderI would personally do an IVR to give myself better timeout control, etc
17:46.10Samot^^^^
17:46.19SamotI know DISA is an option
17:47.11Samot1:38:00 PM S<Samot> He wants DISA basically
17:47.25SamotIt's just not an option I would suggest first.
17:47.34SamotLike you, I'd go IVR for better control of things.
17:48.00igcewielingAnyone who wants DISA doesent understand enough.
17:48.43SamotI prefer the dialout option in app_voicemail before DISA
17:48.43SamotAt least they've entered their VM PIN to auth the call
17:48.43igcewielingAfter then first multuthousand dollar phone bill they realize they don't understand enough to make DISA secure.
17:48.43EncryptSamot, You mean something saying like: "Welcome stranger! If you're trying to reach Encrypt, then wait. Otherwise, please authentify!" ?
17:48.50SamotSure
17:48.51SamotOr.
17:48.58SamotIf you want this just for *your* calls
17:49.18SamotAnd what all others to ring your extension like normal..
17:49.27EncryptYes, that's what I would prefer
17:49.29SamotYou need to catch call by the incoming caller id, which would be your mobile.
17:49.39SamotSo you can route those calls to your IVR
17:49.45SamotAnd everything else to your extensions
17:49.45EncryptRight
17:50.14EncryptAs [TK]D-Fender said, I'll see what is the caller ID once I call the gateway and then my iNum
17:50.21EncryptBut I suppose it will be the number of the gateway
17:50.32[TK]D-FenderDon't "suppose"
17:50.38EncryptThat said, almost nobody call me using my iNum number
17:50.58[TK]D-FenderLOOK
17:50.58Encrypt[TK]D-Fender, Yes, I'll have a look :)
17:50.58[TK]D-FenderHow long should it have taken to SEE a test call?
17:51.05[TK]D-Fendera LOT less time than this conversation
17:51.24*** join/#asterisk simplydrew (~simplydre@unaffiliated/simplydrew)
17:51.40[TK]D-Fender"Oh look, I SEE it's my number!".  "Oh look, it's clearly the SAME number from them regardless of who's calling it!"
17:52.08[TK]D-FenderThis should have taken under 1 minute
18:00.01Encrypt[TK]D-Fender, Alright
18:00.01EncryptI checked
18:00.29EncryptI didn't know the variable ${CALLERID(all)} before
18:00.57EncryptSo, the number appearing is indeed mine
18:01.50EncryptYou helped me figure out where to search :)
18:03.13EncryptEverything is clearer for me now... :)
18:05.10igcewielingEncrypt: if you didn't know about CALLERID(all) then you never read the output of "core show functions" and "core show function CALLERID"
18:05.21igcewielingor even the asterisk book, I suspect.
18:06.20Encryptigcewieling, What I did was supposed to be something simple at first...
18:06.43igcewielingNothing in Asterisk is simple if you don't know Asterisk.
18:06.44EncryptSo I found tutorials and excellent "asterisk basics" videos made by the "VOIP Guys" on YouTube
18:06.55[TK]D-FenderNot thinking * should be able to see it is not a good start
18:07.29igcewielinggo read the output of those two commands.  Also the output of "core show applications"
18:07.36EncryptHere is their channel by the way: https://www.youtube.com/watch?v=jMQfSsO1da4&list=PLnzEbgyK52Gu9fdVDHburrsG3KBIntXFK
18:07.46igcewielingvideo doesn'
18:07.49Encryptigcewieling, Ok :)
18:07.52igcewielingt work on my VM.  What is it?
18:08.14Encryptigcewieling, A series of videos explaining how to start working with asterisk
18:08.52igcewielingsame version as your Asterisk?
18:08.57igcewielingAlso look at https://wiki.asterisk.org/wiki/display/AST/Home
18:10.08EncryptThanks
18:11.10igcewielingThe problem with unofficial docs is they are almost always badly out of date.
18:12.53EncryptPossible
18:14.03EncryptNow I feel like a noob who tried to create a basic "Hello World" in C without knowing the basic functions provbided by stdlib / stdio :(
18:14.34EncryptSorry for making some of you angry, once again :/
18:17.50*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
18:34.43*** join/#asterisk juvenal (~juvenal@152.250.188.25)
18:45.45wabbitscan asterisk re-invite itself in/out of the media path? If yes how?
18:55.14*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
18:59.06*** join/#asterisk sragan (~skywayska@163.182.162.226)
19:00.55*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
19:01.04*** join/#asterisk Asterisco (~catan@host230-43-dynamic.181-80-r.retail.telecomitalia.it)
19:01.20AsteriscoHi
19:03.19AsteriscoI'm trying to save callerid and i obtain it with this:exten => 021234567,n,System(/bin/echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}|${EXTEN}|${CALLERID(num)}|${CHANNEL}|${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${DNID}|${HANGUPCAUSE}|${CALLERID(all)}|${MEETMESECS}" >> /web-asterisk/asterisk/callerid/callerid.txt)
19:03.48Asteriscobut if i would obtain the internal number that take the call?
19:03.52Asteriscohow can i do it?
19:07.27*** join/#asterisk tuxd00d (~tuxd00d@ip68-106-11-138.ph.ph.cox.net)
19:10.46[TK]D-Fenderhuh?
19:12.57Asteriscoi need save the internal that respond to a call
19:13.52[TK]D-FenderWhat is "the internal"?
19:13.56[TK]D-FenderYou need to be clearer
19:14.19[TK]D-Fenderif you are running this AFTER a bridged call then |${DIALEDPEERNAME}|${DIALEDPEERNUMBER} applies
19:15.12Asteriscoafter this?
19:15.13Asteriscoexten => 2,n,Dial(SIP/11&SIP/12&SIP/13&SIP/14,60,m(musica-attesa))
19:18.26*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
19:25.31*** join/#asterisk mou (~donwillia@188.228.46.39)
19:30.12*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
19:40.53*** join/#asterisk juvenal (~juvenal@152.250.188.25)
19:59.56*** join/#asterisk Samael28 (~Samael28@176.104.56.91)
20:21.40*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
20:22.20[TK]D-FenderAsterisco, you're not going to have have bridged channel information BEFORE you dial something....
20:24.48AsteriscoFender i've put it after and beforehangup
20:26.01Asteriscobut ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME} don't give me any information
20:26.15Asteriscoi obtain |||
20:28.32Asteriscoi'm trying to use exten => h,1, to the end of dialplan
20:30.31Asteriscodon't work!
20:30.54Asteriscoexten => h,1,System(/bin/echo "${EVAL(${DATI_FINE_CHIAMATA})}" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt)
20:31.04AsteriscoDATI_FINE_CHIAMATA=${SS}{STRFTIME(${SS}{EPOCH},,%Y-%m-%d %H:%M:%S)}|${SS}{DIALEDPEERNAME}|${SS}{DIALEDPEERNUMBER}|${SS}{DIALEDTIME}|${SS}{ANSWEREDTIME}
20:31.18Asteriscoi obtain this: 2017-07-15 22:29:56||||
20:32.13Asteriscoit's normal?
20:40.40SamotAsterico: Show the full contexts and dialplan
20:40.49SamotThis single line crap isn't going to get anyone anywhere
20:40.57Samot~pb
20:40.57infoboti heard pastebin is a web-based service where you should paste anything over 3 lines so you don't flood the channel. Here are links to a few: http://pastebin.ca, http://channels.debian.net/paste, http://paste.lisp.org, http://bin.cakephp.org/; or install pastebinit with yum or aptitude.
20:41.43SamotAlso do a call that shows this..
20:41.47Samotasterisk -rvvvvvvvvvvv
20:41.52SamotSo we can actually see what is happening
20:43.14Asteriscowith asterisk -rvvvvvvvvv i look this: -- Executing [h@incoming:1] System("SIP/10.0.0.1-00000000", "/bin/echo "2017-07-15 22:29:56||||" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt") in new stack
20:43.28SamotI don't care about single line snippets.
20:43.36Asteriscoone moment
20:43.44SamotYou have an issue with the way your dialplan is written and/or executing.
20:43.58SamotShow it all so we can actually see what is there and what is happening
20:46.38Asteriscosamot take a look: https://pastebin.com/xPyiLhRj
20:49.10[TK]D-Fender${EVAL(${DATI_FINE_CHIAMATA})}"
20:49.15[TK]D-Fenderyour use of eval is garbage.
20:49.17[TK]D-Fenderuse it DIRECTLY
20:49.27Asteriscoah :|
20:49.31[TK]D-Fenderand NoOp that values INDIVIDUALLY on-scrren
20:49.52[TK]D-FenderYou aren't doing the common-sense thing and looking at them without 5 things in the way
20:50.16[TK]D-Fenderwait....
20:50.29[TK]D-Fenderyou aren't even doing a DIAL in there
20:50.44Asteriscoexten => h,1,System(/bin/echo "${STRFTIME(${{EPOCH},,%Y-%m-%d %H:%M:%S)}|${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt)
20:50.45[TK]D-Fender{DIALEDPEERNAME}|${SS}{DIALEDPEERNUMBER}
20:50.46Asteriscoright?
20:50.52[TK]D-FenderALSO.... you don't have $ in FRONT of the {
20:50.54[TK]D-Fenderfor BOTH
20:50.57[TK]D-Fender2 more screwups
20:51.00[TK]D-Fenderthis is all wrong
20:51.03[TK]D-Fenderall of it
20:51.18[TK]D-Fender${DIALEDPEERNAME}|${DIALEDPEERNUMBER} <- YOU HAVE NO DIAL IN THERE
20:51.27[TK]D-FenderWhat are you even trying to DO there?
20:51.42Asteriscohttps://www.voip-info.org/wiki-Asterisk+variables
20:51.48Samot[...] <-- what are these?
20:51.53AsteriscoUsing $
20:51.53AsteriscoIf you want to set a global variable containing another variable name in the [globals] category of extensions.conf you have to do something like this:
20:51.53Asterisco[globals]
20:51.53AsteriscoSS=$
20:51.53AsteriscoMY_VAR=${SS}{EPOCH}-${SS}{EXTEN}.gsm
20:52.05[TK]D-FenderGo prove that even works
20:52.25[TK]D-Fenderand again.. you have NO DIAL
20:52.32[TK]D-Fender${DIALEDPEERNAME}|${DIALEDPEERNUMBER}| <- worhtless
20:53.03SamotThe channel you are actually on is the "dialed" channel.
20:53.08[TK]D-Fenderno
20:53.11SamotThe carrier sent a call to Asterisk
20:53.13[TK]D-Fenderthere is no "dialed channel"
20:53.20SamotSo it was the dialed channeled in this scenario.
20:53.21[TK]D-Fenderthere is no DIAL
20:53.25SamotIn Asterisk's view..
20:53.27[TK]D-Fenderno
20:53.29SamotIt's just a call
20:53.31SamotNot a dial
20:53.33SamotAs TK said
20:53.36[TK]D-Fenderthat 2 variables are the RESULT of app_dial <-
20:53.40SamotRight
20:53.44SamotThey aren't going to work here.
20:53.46[TK]D-FenderWhich doesn't exist here
20:53.53[TK]D-Fenderand theis eval is garbage
20:54.24SamotWell
20:54.29SamotHe showed a Dial before.
20:54.35SamotBut I asked for the FULL dialplan
20:54.40SamotAnd got back edited stuf.
20:54.40[TK]D-Fenderhttps://pastebin.com/xPyiLhRj <- and it ain't there
20:55.10Samot3:15:14 PM A<Asterisco> exten => 2,n,Dial(SIP/11&SIP/12&SIP/13&SIP/14,60,m(musica-attesa)) <-- He claimed it existed
20:55.12Asteriscoi'e found the problem
20:55.13Asterisco${STRFTIME(${{EPOCH},,%Y-%m-%d %H:%M:%S)}}
20:55.16Asterisco${STRFTIME(${{EPOCH},,%Y-%m-%d %H:%M:%S)}
20:56.46[TK]D-Fender${{ <- WTF is with these double braces?
20:56.55[TK]D-FenderYou don't jsut get to keep adding them on
20:57.26Asteriscoyes
20:57.28Asteriscoexcuse me
20:57.39AsteriscoSystem(/bin/echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}|${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}"
20:57.45[TK]D-FenderAnd your pastbin has no dial
20:58.10[TK]D-Fender${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}" <- ALL worthless
20:58.21SamotBecause he doesn't post all the dialplan like asked
20:58.33[TK]D-FenderAlso missing the matching call
20:58.42[TK]D-Fenderbut we're full of syntax errors too while we're at it
20:58.43Samots/doesn't/didn't/
20:58.48SamotNo.
20:58.56SamotDidn't provide any of the requested stuff.
20:59.02[TK]D-FenderI agree
20:59.07SamotJust keep showing ass half pieces.
21:00.00[TK]D-Fendernever half-ass 2 things ... always whole-ass 1 thing.
21:00.09[TK]D-Fenderbecause efficiency....
21:00.24SamotNooooooooo!!!!!!!
21:02.14*** join/#asterisk lankanmon_ (~LKNnet@2607:fea8:d1f:ffcb:84be:da0e:94a0:dda1)
21:02.33Asteriscosamot https://pastebin.com/xzgyh68v
21:03.29[TK]D-FenderWhere's the call?
21:03.51Asteriscois an incoming call
21:04.39Asteriscoi need check dialedtime of incoming call
21:04.48SamotWhere is the actual debug of a call
21:05.04SamotShowing what happens and how things are fully processed...
21:05.05Asteriscoexten => 9004,1,Answer()
21:05.10SamotNo
21:05.14SamotMake a damn call
21:05.20SamotThat fails to do what you want
21:05.23Asteriscoi do it
21:05.24Samotasterisk -rvvvvvvvvvv
21:05.29SamotWhere is it?~
21:05.32SamotShow it to us
21:05.36SamotWe asked for it
21:05.44SamotWe can't see your screens
21:05.56Asteriscohttps://pastebin.com/QKxWeEJh
21:06.05Asteriscoi know
21:06.07Asterisco:)
21:06.35Asterisco<PROTECTED>
21:06.42SamotAGain
21:06.51SamotThose are variables that are the result of a DIAL
21:06.58SamotThere is no DIAL happening here.
21:07.09Asterisco?!?!?!?
21:07.28Asteriscoi've called the number 9004
21:07.32SamotThose variables are the result of the Dial() app
21:07.36[TK]D-Fender^^^^^^^^^^^^^^^^^^^^^
21:07.44SamotOK
21:07.48[TK]D-FenderWhat part of this are you having trouble understanding
21:07.55SamotThen you DIDN'T SHOW A WHOLE CALL
21:07.58SamotNo.
21:08.01SamotI know what's happening..
21:08.04SamotHe's on the WRONG CHANNEL
21:08.05[TK]D-Fender<[TK]D-Fender> And your pastbin has no dial
21:08.05[TK]D-Fender<[TK]D-Fender> ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}" <- ALL worthless
21:08.06Asteriscowhat?
21:08.13[TK]D-Fender<[TK]D-Fender> there is no "dialed channel"
21:08.18[TK]D-Fender[TK]D-Fender> there is no DIAL
21:08.20SamotWait
21:08.21SamotI got it
21:08.26SamotI pieced it togther.
21:08.28Asteriscoahhh
21:08.29Asterisco:)
21:08.29[TK]D-Fender[TK]D-Fender> and again.. you have NO DIAL
21:08.29[TK]D-Fender<[TK]D-Fender> ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}| <- worhtless
21:08.32SamotI'm VoIP Holmes.
21:08.32Asteriscois a pstn
21:08.34SamotWait
21:08.35SamotStop
21:08.39Asteriscoi redirect to grandstream
21:08.40[TK]D-Fender<[TK]D-Fender> ${DIALEDPEERNAME}|${DIALEDPEERNUMBER} <- YOU HAVE NO DIAL IN THERE
21:08.43SamotStop
21:08.49SamotOh wit
21:08.59SamotIncoming Call from PSTN
21:09.04AsteriscoGXW410X
21:09.05[TK]D-FenderWORTHLESS\
21:09.06SamotHits Asterisk.
21:09.07SamotSTOP
21:09.09SamotSTOP
21:09.21SamotAsterisk dials multiple extensions
21:09.31Samot9004 answers...
21:09.34SamotSo.
21:09.43SamotYou cannot get those variables until AFTER the Dial
21:09.49[TK]D-FenderWHERE'S THE FUCKING CALL?
21:09.50Asteriscooh i see :\
21:09.50SamotAnd you cannot get them on the 9004 CHANNEL
21:09.59[TK]D-Fender9004 is not a "channel"
21:10.04SamotAsterisco...
21:10.09SamotDial it again
21:10.12SamotTHIS TIME
21:10.15Asteriscothe number that i call is 095430666
21:10.25Asteriscothe GXW410X redirect the call to 9004
21:10.25[TK]D-Fender<[TK]D-Fender> WHERE'S THE FUCKING CALL? <-------------------------------------
21:10.27[TK]D-Fender^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21:10.31SamotThe pastebin shows EVERYTHING from the asterisk -rvvvvvvvvvv
21:10.34SamotDo it again
21:10.42*** join/#asterisk jameswf (uid27319@gateway/web/irccloud.com/x-euydlvorqulkbedh)
21:10.47SamotShow it ALL from the moment  you hit the Asterisk CLI
21:10.49SamotNot part of it
21:10.49Asterisco???
21:10.51SamotNot some of it
21:10.54SamotTHE WHOLE CALL
21:10.57Asteriscoi put all
21:11.00Asteriscook :)
21:11.03Asteriscoi reput all
21:11.05SamotOH FFS
21:11.05Asteriscoone moment
21:11.07SamotYou can't do it
21:11.10[TK]D-Fender----------> SHOW THE FUCKING CLI OUTPUT OF THE CALL <--------------
21:11.16SamotIf the Gateway is sending the call to 9004
21:11.18[TK]D-FenderNEW PASTEBIN
21:11.19SamotThere is no DIAL
21:11.32SamotThose variables do not happen
21:11.37SamotBecause the DIAL is from the GATEWAY
21:12.06SamotI asked for two simple things 30 minutes ago
21:12.10SamotFull dialplan
21:12.13SamotFull call example
21:12.26SamotStill not sure I have either of those
21:12.49SamotClearly [TK]D-Fender doesn't think either of those happened.
21:12.56[TK]D-FenderI trust NOTHING
21:12.58[TK]D-FenderI see no CALL
21:13.07[TK]D-FenderEverything until then is BULLSHIT to me.
21:13.35Asteriscohttps://pastebin.com/r2qm8z2h
21:13.36[TK]D-FenderThink I even trust the dialplan is from the same BOX?  Not until I get something to back it up
21:13.46SamotAsterico: You're never getting those variables.
21:13.50[TK]D-FenderAsterisco, Well YOU HAVE NO FUCKING DIAL THERE
21:13.55SamotThis is an incoming call to Asterisk.
21:13.56[TK]D-Fender-- Executing [9004@incoming:1] Answer("SIP/10.0.0.1-00000000", "") in new stack
21:14.02[TK]D-Fender<PROTECTED>
21:14.02SamotNot Asterisk making a call.
21:14.03[TK]D-FenderNO DIAL
21:14.11[TK]D-FenderAsterisk did not call OUT
21:14.15Samot^^^^
21:14.18[TK]D-Fenderthat shit gets created when you DIAL OUT.
21:14.26[TK]D-FenderWhat part of this are you having trouble understanding?
21:14.32Asteriscook
21:14.38Asteriscois an internal call
21:14.46[TK]D-Fenderther is no such thing
21:14.48Asteriscohow can i obtain the same this value?
21:14.51[TK]D-Fenderthose words mean NOTHING
21:15.00Samot5:10:25 PM A<Asterisco> the GXW410X  <-- THAT is where the data you want lives.
21:15.05[TK]D-FenderWHAT VALUE <-------
21:15.17[TK]D-Fender- Executing [9004@incoming:1] Answer("SIP/10.0.0.1-00000000", "") in new stack
21:15.20Asteriscothe time of dial!
21:15.22[TK]D-FenderYou're not even MATCHING A PEER
21:15.26SamotThere is no dial.
21:15.34Asteriscowhat is?????
21:15.40Asteriscothe internal dial
21:15.45SamotNO
21:15.52SamotThis is coming from an external device
21:15.54Asterisco9004 what is?
21:16.04[TK]D-FenderAsterisco> the internal dial <- NO SUCH THING IDIOT. GET THIS THROUGH YOUR HEAD.  THERE IS NO SUCH THING AS "INTERNAL"
21:16.09[TK]D-Fendera fucking CALL arrived at asterisk
21:16.12[TK]D-FenderTHAT IS ALL
21:16.16SamotThis is showing 9004 ANSWERING a call
21:16.22[TK]D-FenderEVERY call is JUST A FUCKING CALL
21:16.26[TK]D-FenderNo
21:16.26SamotFrom an outside source.
21:16.34[TK]D-Fender9004 doesn't answer
21:16.39SamotWell Asterisk matching on 9004
21:16.48[TK]D-Fenderthis is a call being ACCEPTED by * and hitting DIALPLAN
21:16.51SamotYup
21:16.54SamotThat's what I mean.
21:16.56SamotThanks.
21:17.00[TK]D-Fendera NUMBER doesn't answer a call.... ASTERISK is.
21:17.07[TK]D-FenderBecause of a pattern match on an exten
21:17.16SamotRight
21:17.19Asteriscothere is a solution?
21:17.25[TK]D-FenderAsterisco, There is NO DIALTIME.  You did not DIAL
21:17.28SamotGet the data from the GATEWAY
21:17.35[TK]D-FenderThere is no dial time
21:17.37[TK]D-Fenderit does not EXIST
21:17.38SamotOr pull it from the CDRs
21:17.47SamotFor details about what happened.
21:17.52Asterisco:'((((
21:17.55SamotBut DIALSTATUS
21:17.58SamotANSWEREDTIME
21:18.07[TK]D-FenderNONE
21:18.09SamotThey don't exist unless ASTERISK originates the call..
21:18.09[TK]D-FenderDo not exist
21:18.14[TK]D-FenderIndeed
21:18.17SamotNot ACCEPTS
21:18.30[TK]D-FenderAsterisco, you are doing a SHIT job of describing what INFORMATION you want out of this
21:18.46SamotIf you want to know when Asterisk "answered the call
21:18.55Samot5:15:18 PM T<[TK]D-Fender> - Executing [9004@incoming:1] Answer("SIP/10.0.0.1-00000000", "") in new stack
21:19.04SamotUse EPOCH to get the TIME AT THAT MOMENT
21:19.04[TK]D-FenderI want HIS words to clearly describe this without any "tech" words
21:19.22SamotMeh, I got a ball game I have to finish getting ready for
21:19.24[TK]D-Fender-- Executing [9004@incoming:2] System("SIP/10.0.0.1-00000000", "/bin/echo "2017-07-15 23:11:58|9004|0957179627|SIP/10.0.0.1-00000000" >> /web-asterisk/asterisk/callerid/callerid-inizio_chiamata.txt") in new stack
21:19.28[TK]D-FenderHe HAS the time in there
21:19.31[TK]D-Fenderbut NONE of the other shit
21:19.36[TK]D-Fenderbecause those vars don't EXIST yet
21:19.44SamotWell the DIALSTATUS is Answer()
21:19.50[TK]D-Fenderecho "2017-07-15 23:11:58 <- YOU HAVE THE FUCKING TIME.
21:19.51SamotBecause he did Answer()
21:19.57[TK]D-FenderWhat else are you expecting?
21:20.01SamotI mean..
21:20.02Asteriscobut is not a dial :\
21:20.08[TK]D-Fender<Samot> Well the DIALSTATUS is Answer() <- No
21:20.19[TK]D-Fenderthat var is ONLY for Dial()
21:20.24SamotMy point is..
21:20.27[TK]D-FenderThat's why it's in the NAME
21:20.28Asteriscoi know
21:20.30SamotIf he wants DIALSTATUS
21:20.33[TK]D-Fenderno
21:20.40[TK]D-Fenderhe thinks something should BE in there
21:20.50[TK]D-Fenderwhat the FUCK do you expect to FIND in there?
21:21.00[TK]D-Fender<[TK]D-Fender> Asterisco, you are doing a SHIT job of describing what INFORMATION you want out of this
21:21.01[TK]D-Fender^^^
21:21.04Asteriscothe time of the dial
21:21.17[TK]D-FenderYOU HAVE IT
21:21.21Asteriscoi know that i cant' use this variable
21:21.26[TK]D-Fender[TK]D-Fender> -- Executing [9004@incoming:2] System("SIP/10.0.0.1-00000000", "/bin/echo "2017-07-15 23:11:58|9004|0957179627|SIP/10.0.0.1-00000000" >> /web-asterisk/asterisk/callerid/callerid-inizio_chiamata.txt") in new stack
21:21.27SamotAsterico...
21:21.31[TK]D-FenderIDIOT IT'S RIGHT THERE
21:21.33Samot5:06:36 PM A<Asterisco>  -- Executing [9004@incoming:4] NoOp("SIP/10.0.0.1-00000000", "DIALSTATUS is , ANSWEREDTIME is , DIALEDTIME is ") in new stack
21:21.34Asteriscoexcuse me
21:21.35[TK]D-FenderLOOK AT THE TIME ON IT
21:21.37SamotStop
21:21.37[TK]D-FenderIT'S THERE
21:21.38SamotStop
21:21.40[TK]D-FenderYOU FUCKING HAVE THE TIME
21:21.41Asteriscothe duration of the call
21:21.52[TK]D-FenderThere is no duration
21:21.52Asteriscohow many seconds
21:22.00[TK]D-Fenderthat line executes INSTANTLY
21:22.01SamotThat doesn't exist until the HANGUP
21:22.05[TK]D-FenderTHERE IS NO TIME
21:22.18SamotYou don't know how long the call is until it is OVER
21:22.19[TK]D-Fenderthe call INSTANTLY hits the dialplan and you INSTANTLY run that line
21:22.35[TK]D-FenderThat System gets called  thee EXACT SECOND your fucking call ARRIVIES
21:22.38[TK]D-Fenderthere is time IN BETWEEN
21:22.40[TK]D-Fender^^^^^^
21:22.52AsteriscoI need the duration of tha call after hangup
21:23.04SamotIt's in the CDRs
21:23.12[TK]D-Fender^
21:23.26SamotALL that data is in the CDRs
21:23.31SamotBased on the type of call it was.
21:23.35SamotOriginated or Accepted
21:23.42[TK]D-Fender${CDR(duration)}
21:23.44[TK]D-Fender^
21:23.49Asteriscolol!
21:23.55Asteriscois so simply???
21:24.00SamotYou are already logging all this data
21:24.05SamotThey are called CDRs.
21:24.08[TK]D-Fender<Samot> Or pull it from the CDRs
21:24.31Asteriscoi don't know the existence of ${CDR(duration)}
21:24.32Asterisco:)
21:24.36Asteriscoone moment
21:24.45[TK]D-Fender-- Executing [9004@incoming:2] System("SIP/10.0.0.1-00000000", "/bin/echo "2017-07-15 23:11:58
21:24.50[TK]D-Fender-- Executing [9004@incoming:5] System("SIP/10.0.0.1-00000000", "/bin/echo "2017-07-15 23:12:21
21:24.54Asteriscoexten => h,1,System(/bin/echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}|${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${CDR(duration)}" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt)
21:24.58[TK]D-FenderYou ALSO can just calculate this YOURSELF
21:24.58Asteriscoright?
21:25.09[TK]D-FenderGO TRY IT
21:25.20Asteriscoand for the dialedpeernumber?
21:25.50Asteriscoi need obtain the first internal number that answer to the call
21:26.11SamotThe CDRs and CEL HAVE ALL THAT
21:26.19Asteriscooh! :)
21:27.12Asterisco2017-07-15 23:27:04|||22
21:27.13SamotThere are multiple CDRs for calls in a lot of cases.
21:27.15Asteriscofine works!!!
21:27.18Asterisco22 seconds!
21:27.21[TK]D-Fender<Asterisco> and for the dialedpeernumber? <- YOU HAVE NO FUCKING DIAL
21:27.28SamotBecause the CDRs log all points of the call.
21:27.34[TK]D-FenderYou seem to have a SEVERE learning disability here......
21:27.46[TK]D-Fenderyou are not DIALING.  There is NO PEER.  There is NO DIAL.
21:27.47Asteriscoi'm finding a page to CDR variable
21:27.58AsteriscoTK i understund
21:28.03SamotYeah.
21:28.08Asteriscobut is a call :D
21:28.09[TK]D-FenderI doubt that.
21:28.18SamotThis is basically trying to log information that is already being logged in CDRs
21:28.22[TK]D-FenderWe've said this a hundred times and you're STILL asking about those variables
21:28.24Asteriscoi need take information from CDR
21:28.39Asteriscono
21:28.49Samotgoes to play baseball...
21:28.50SamotLater
21:29.58[TK]D-Fenderthere is no "internal number".  You keep using these words that mean nothing.
21:30.11[TK]D-FenderThere also are MULTIPLE of anything
21:30.19[TK]D-FenderSo "first" means nothing.
21:31.09Asteriscoi neet take the internal number that take this "call" for firs time
21:31.28Asteriscoexten => 1,1,Dial(SIP/11&SIP/12&SIP/13&SIP/14,60,m(musica-attesa))
21:31.41Asterisco11, 12, 13 or 14 ?
21:33.40[TK]D-FenderWhere is that HAPPENING in your call?
21:34.00[TK]D-Fenderhttps://pastebin.com/r2qm8z2h <- NO FUCKING DIAL HAPPENED
21:34.18Asteriscowhen i call another number
21:34.28Asterisconow i can't test it
21:34.56Asteriscothere was no one person in office
21:35.17Asteriscoexten => h,1,System(/bin/echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}|${CDR(clid)}|${CDR(src)}|${CDR(dst)}|${CDR(duration)}" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt)
21:35.26Asterisco2017-07-15 23:33:31| <0957179627>|0957179627|9004|22
21:35.56*** join/#asterisk mmlj4 (~mmlj4@47-48-196-90.static.gwnt.ga.charter.com)
21:36.08Asteriscofor 9004 there aren't internal number that answer
21:36.59Asteriscoafter this exten => 1,1,Dial(SIP/11&SIP/12&SIP/13&SIP/14,60,m(musica-attesa))
21:37.48*** join/#asterisk karelk (~karel@31.10.154.117)
21:38.22Asteriscoi can use ${DIALEDPEERNAME}?
21:38.58Asteriscoor better ${DIALEDPEERNUMBER}
21:40.07igcewielingAsterisco: run the Dumpchan application in the call to see some variables you might have access to.
21:40.26igcewielingBEFORE the dial.
21:40.33Asteriscook thanks
21:41.38igcewieling"core show function CHANNEL" will also tell you useful stuff
21:42.08*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
21:42.12[TK]D-Fender<Asterisco> now i can't test it <- then you're wasting everybody's time
21:42.49Asteriscono :)
21:42.57Asteriscotomorrow i go into the office
21:43.01Asteriscoand test it :)
21:44.15Asteriscoi'm finding to save this data into mariadb
21:44.20Asteriscois difficoult? :\
21:44.29[TK]D-Fenderdid you LOOK?
21:44.42[TK]D-FenderGo learn to read.
21:44.43[TK]D-FenderThe start
21:44.46[TK]D-Fenderthen*
21:44.55[TK]D-Fender~book
21:44.55infobotAsterisk: The Definitive Guide, 4th Edition (ISBN 1-4493-3242-0) available at http://oreilly.com/catalog/0636920025894 - Asterisk: The Definitive Guide is released under a Creative Commons License (http://creativecommons.org/licenses/by-nc-nd/3.0/us/) and a version is available for reading online at http://www.asteriskdocs.org/ or see ~buybook
21:44.56[TK]D-Fender^^^^
21:45.11AsteriscoNothing in italian right?
21:45.11[TK]D-FenderI'm sure the word DATABASE is easitl searchable there
21:45.25[TK]D-FenderI have no idea what docs are in italian
21:45.59Asteriscoi've found only this 978850327423
21:46.09Asteriscobut is not a good book
21:46.34Asterisco978850327423 Asterisk Il mondo Voip open source
21:46.43Asteriscohttp://www.apogeonline.com/libri/9788850327423/scheda
21:47.02Asteriscoi've search in Amazon :\
21:47.07Asteriscobut... nothing!
21:48.24[TK]D-FenderOh well
21:48.59Asteriscoi'm reading asteriskdocs.org
21:49.02Asteriscothanks :)
21:49.20Asteriscois and old edition
21:49.39Asteriscoand there are nothing about mariadb
21:49.42Asterisco^_^
21:50.33Asteriscogoodnight and tnx
21:52.23[TK]D-Fender<[TK]D-Fender> I'm sure the word DATABASE is easitl searchable there
21:52.36[TK]D-FenderYup... learning disability
21:53.04[TK]D-FenderTell them the word to look for .. shove it there in uppercase so there's no excuse to miss it .... and nothing
22:10.35*** join/#asterisk mmlj4 (~mmlj4@47-48-196-90.static.gwnt.ga.charter.com)
22:26.38*** join/#asterisk mmlj4 (~mmlj4@47-48-196-90.static.gwnt.ga.charter.com)
22:36.27*** join/#asterisk juvenal (~juvenal@152.250.188.25)
22:45.57*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
23:00.57*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
23:07.13*** join/#asterisk tuxd00d (~tuxd00d@ip68-106-11-138.ph.ph.cox.net)
23:07.53forgotmynickin phpagi, if i $agi->hangup(); will the rest of the script process or will asterisk terminate it?
23:08.48*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)
23:10.33*** join/#asterisk zapata (~zapata@2a02:b18:581:10:9e2:3780:15ed:a55a)
23:14.09*** join/#asterisk jjrh (~weechat12@ppp-199-167-117-147.storm.ca)
23:16.08*** join/#asterisk dnit (0117c211@gateway/web/freenode/ip.1.23.194.17)
23:40.58*** join/#asterisk juvenal (~juvenal@152.250.188.25)
23:43.12*** join/#asterisk SSlater (~simon@mail.favour.com.au)
23:44.40*** join/#asterisk rwb (~Thunderbi@65.183.151.121)
23:57.59*** join/#asterisk jkroon (~jkroon@vc-nat-gp-s-41-13-18-181.umts.vodacom.co.za)

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