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.40 | forgotmynick | hello. 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.28 | Samot | Are you running anything special on the server? |
01:25.34 | Samot | forgotmynick ^^^^ |
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.06 | wyoung | forgotmynick: 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.31 | Encrypt | Hello everybody! |
17:20.33 | *** join/#asterisk sh_smith (foobar@cpe-76-174-26-91.socal.res.rr.com) |
17:20.53 | Encrypt | I'm coming here to ask a question regarding my asterisk setup :) |
17:21.00 | Encrypt | I'd like to use my server as a potential VoIP gateway |
17:21.46 | Encrypt | That 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.01 | Samot | You want your mobile phone to connect to Asterisk?? |
17:22.14 | Samot | You can but you need a softphone client and data access. |
17:22.52 | Encrypt | Here 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.15 | Samot | iNum? |
17:23.30 | Encrypt | This is because with my current mobile phone plan, I can call for free 3 phone numbers |
17:23.55 | Samot | So basically, you want to set up Asterisk to call into and then tell it where to dial from there? |
17:23.56 | Encrypt | So, if I set one of these nmbers to be an iNum gateway, I can then reach to my asterisk server |
17:24.23 | Encrypt | And once I'm on my asterisk server, I could authenticate to use a set-up VoIP plan :) |
17:24.26 | Samot | I have no idea what an iNum is. |
17:24.33 | Samot | No. |
17:24.38 | Encrypt | Samot, http://www.inum.net/ |
17:24.48 | Encrypt | It's a free number |
17:25.19 | Samot | Your |
17:25.19 | Samot | OK |
17:25.19 | Samot | That has nothing to do with calling people. |
17:25.19 | [TK]D-Fender | So do it |
17:25.19 | Encrypt | I opened an account on ippi.fr years ago and I have a free iNum number |
17:25.25 | Samot | Asterisk is a B2BUA |
17:25.32 | [TK]D-Fender | As long as you can ID or auth the call gho do whatever you want with that call afterwards |
17:25.40 | Samot | You're going to call Asterisk and it's going to want to know what to do with the call.. |
17:25.42 | Encrypt | So when someone calls me on this number, I receive the call on my SIP clients |
17:25.43 | Samot | So.. |
17:25.46 | Samot | OK |
17:25.49 | [TK]D-Fender | Sure |
17:25.51 | [TK]D-Fender | go do it |
17:25.53 | Samot | Yes |
17:25.58 | Encrypt | [TK]D-Fender, Yep :) |
17:26.06 | Samot | You said call from your cell to your Inum and then make outbound calls through Asterisk |
17:26.31 | Samot | Because you can call three numbers free.. |
17:26.32 | Samot | That's different |
17:26.32 | Encrypt | I wanted to get pointers to know what I should be looking for to do it :) |
17:26.32 | [TK]D-Fender | Call 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-Fender | Do you SEE the call as coming from your cell? |
17:26.38 | Encrypt | The caller number will be an iNum gateway |
17:26.41 | [TK]D-Fender | If so, then that's probably all you need |
17:26.49 | Encrypt | So, a kind of "public" number |
17:26.49 | [TK]D-Fender | otherwise answer and ask for a password or something |
17:26.56 | Samot | Encrypt: You have to point that iNum number somewhere |
17:27.23 | Samot | Which would be your Asterisk server |
17:27.23 | Samot | So now calls to that number hit Asterisk.. |
17:27.23 | Samot | Then what? |
17:27.23 | Encrypt | [TK]D-Fender, And at the same time, I want it to be transparent |
17:27.27 | [TK]D-Fender | Don't use solid paint then |
17:27.50 | Encrypt | For 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.50 | Encrypt | Then, I would be directed to the auth mechanism |
17:27.57 | Samot | Who knows. |
17:28.02 | [TK]D-Fender | it's YOUR call |
17:28.06 | [TK]D-Fender | process it however you want |
17:28.11 | Samot | This started as calling Asterisk to make outbound calls. |
17:28.12 | [TK]D-Fender | it has arrived at your server |
17:28.21 | Encrypt | [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-Fender | Samot, that's what I got |
17:28.48 | [TK]D-Fender | and how do you want * to call you? |
17:28.48 | Encrypt | I will give you examples |
17:28.48 | Encrypt | It will be clearer |
17:28.49 | [TK]D-Fender | we shouldn't need multiple |
17:28.59 | [TK]D-Fender | HOW do you expect * to call you? |
17:29.02 | Encrypt | In the future, I will have two numbers configured on my asterisk server |
17:29.06 | Samot | OK |
17:29.07 | Samot | Look |
17:29.10 | [TK]D-Fender | what SPECIFIC service will it call out using? |
17:29.36 | Samot | Encrypt: The numbers, regardless if iNum or not, will hit Asterisk.. |
17:29.36 | Samot | Then what? |
17:29.36 | [TK]D-Fender | and right now you are also mixing your INBOUND strategy with your OUTBOUND |
17:29.41 | Samot | What happens when I call you iNum number and it hits Asterisk? |
17:29.42 | Encrypt | Samot, Here is my explanation: |
17:29.42 | [TK]D-Fender | finsh ONE direction first |
17:29.50 | [TK]D-Fender | otherwise this coversation is going to end up in circles |
17:30.29 | Encrypt | [TK]D-Fender, Yes, yes |
17:30.35 | igcewieling | inbound calling and outbound calling are as different as cats and gorillias. Treat them that way. |
17:30.46 | Encrypt | So let's say someone is calling me (inbound call) |
17:30.51 | Samot | OK |
17:31.22 | [TK]D-Fender | WHAT are they dialing? HOW does that lead to *? |
17:31.32 | Encrypt | I will have two numbers configured: an iNum one (0088351000xxxxxxx) and a VoIP one (00331xxxxxxxx in France) |
17:31.48 | Encrypt | People would be able to reach me with these two numbers |
17:31.48 | Samot | OK |
17:31.50 | [TK]D-Fender | HOW does iNum get delivered to *? |
17:31.57 | Samot | So the call hits Asterisk from the carrier |
17:32.10 | Samot | Now that Asterisk has it, then what? |
17:32.37 | Encrypt | If they call the iNum or the VoIP number, asterisk then tries to reach me with a timeout of 5 seconds |
17:32.37 | Samot | How? |
17:32.45 | Samot | You have to tell Asterisk that |
17:32.55 | Samot | How to call you, how many times, how long.... |
17:32.59 | [TK]D-Fender | HOW is asterisk call OUT to you? |
17:33.03 | Samot | 5 seconds = 1 ring roughly maybe two... |
17:33.06 | Samot | BTW. |
17:33.06 | [TK]D-Fender | what SERVICE is it going to use? |
17:33.10 | Encrypt | Samot, It tries to reach one of my SIP softphones, if I am available |
17:33.16 | Samot | 5 seconds = 1 ring roughly maybe two... |
17:33.20 | [TK]D-Fender | So it calls a softphone? |
17:33.36 | Samot | So you need to write dialplan |
17:33.38 | Encrypt | Samot, Right, sorry, 5 rings (I have no idea how many seconds that is) |
17:33.47 | Samot | Roughly 30 |
17:33.50 | [TK]D-Fender | Again, * is calling out to a VoIP SOFTPHONE? |
17:33.51 | Samot | Give or take |
17:33.53 | Encrypt | Samot, I already have one and it works with my iNum number :) |
17:34.00 | Encrypt | [TK]D-Fender, Yes |
17:34.10 | [TK]D-Fender | Fine so far... |
17:34.19 | Samot | So what's the issue? |
17:34.19 | Encrypt | It's either linphonec or CSipSimple |
17:34.32 | Samot | Sounds like you have this working |
17:34.36 | Encrypt | Depending on my availability on my smartphone or PC |
17:34.40 | Encrypt | Yep :) |
17:34.46 | Samot | So what is the issue? |
17:34.52 | Samot | This sounds like a normal use case. |
17:35.19 | Encrypt | Samot, Let's consider another case now |
17:35.19 | Samot | Asterisk acting as a PBX |
17:35.19 | igcewieling | Sounds a lot more complicated than VoIP Carrier -> Internet (SIP) -> Asterisk -> Network (SIP) -> SIP phone. |
17:35.19 | Encrypt | I am out and I have no WiFi access |
17:35.44 | Samot | OK |
17:35.44 | Samot | So your extension isn't registered. |
17:35.44 | Encrypt | My mobile phone plan allows me to set 3 numbers that I can call for free |
17:35.57 | Encrypt | I will set the number of my iNum gateway |
17:36.13 | Samot | Yes.. |
17:36.19 | Samot | You want to call your iNum number.. |
17:36.21 | [TK]D-Fender | You're complicating this... |
17:36.23 | Samot | Hit the PBX |
17:36.23 | Encrypt | I would like to contact a contact who has a fixed phone |
17:36.29 | Samot | And dial out to another number. |
17:36.37 | Samot | You need to tell Asterisk what that number is. |
17:36.39 | [TK]D-Fender | WHAT is * going to CALL not that your soft-phone is NOT there?\ |
17:36.48 | [TK]D-Fender | Why are we hearing 10 other things? |
17:36.48 | Encrypt | Then, with my VoIP plan I can call this number for free (and for an unlimited amount of time) |
17:36.56 | Samot | He switched directions. |
17:36.56 | Samot | I'm following. |
17:36.56 | [TK]D-Fender | FUCK |
17:37.11 | [TK]D-Fender | FINISH THE DAMN DIRECTION |
17:37.11 | Samot | Encrypt: You have to tell Asterisk what to do. |
17:37.14 | Samot | He has working inbound to softphone |
17:37.18 | Samot | That's not the issue |
17:37.23 | [TK]D-Fender | what happens if it ISN'T there? |
17:37.23 | Encrypt | [TK]D-Fender, I finished the first direction :x |
17:37.23 | Samot | It was rambling but that works |
17:37.31 | Encrypt | I 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-Fender | You mentioned it might NOT be there. |
17:38.04 | Samot | No |
17:38.04 | [TK]D-Fender | what happens THEN? |
17:38.05 | Samot | wiji |
17:38.05 | Samot | Not having wifi |
17:38.05 | Encrypt | Oh, sorry |
17:38.05 | Samot | So can't make outbound calls |
17:38.05 | Samot | He wants DISA basically |
17:38.05 | Samot | That's what he's looking for |
17:38.11 | [TK]D-Fender | that's inbound from HIM. |
17:38.13 | Encrypt | [TK]D-Fender, Then it will simply go to the "mailbox" |
17:38.13 | Samot | Or something like it. |
17:38.16 | Samot | Right |
17:38.18 | [TK]D-Fender | and we shouldn't be ON that topic yet |
17:38.29 | Samot | He wants to call the PBX to call other numbers |
17:38.32 | Samot | The original question |
17:38.37 | [TK]D-Fender | fine, NOW we've finished inbound from "other people" |
17:38.54 | Encrypt | [TK]D-Fender, Right :) |
17:38.58 | Encrypt | Sorry again |
17:39.03 | Samot | Encrypt: You need to tell Asterisk where to call |
17:39.09 | [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:39.26 | Samot | You can call into an IVR that lets you enter numbers and then Asterisk can dial the digits you enter |
17:39.26 | Encrypt | [TK]D-Fender, Yes |
17:39.52 | Encrypt | Samot, Yep! That's what I am looking for |
17:39.52 | Samot | Or you can press 1, 2, 3, whatever (speeddials) that Asterisk maps to numbers. |
17:39.52 | Encrypt | As you mentioned, when I will be away: |
17:39.52 | Samot | You dial out your SIP trunk |
17:40.03 | Encrypt | I first call the iNum number with my mobile phone, which is free for me. |
17:40.05 | Samot | This is a common thing done. |
17:40.09 | Samot | Well documented. |
17:40.10 | Encrypt | Then, I authentify myself |
17:40.21 | [TK]D-Fender | Encrypt, So far all we care about is how those calls GET to * |
17:40.36 | Samot | Encrypt: Here's the thing... |
17:40.41 | Encrypt | Once authentified, asterisk listens for numbers I dial and then use my VoIP plan to reach that person |
17:40.48 | Samot | If you have your iNum for both inbound calls from everyone else... |
17:40.54 | [TK]D-Fender | Encrypt, so go do it |
17:40.57 | [TK]D-Fender | its YOUR dialplan |
17:40.59 | Samot | And you want to use it for yourself to make outbound calls.. |
17:41.00 | [TK]D-Fender | go ask for INPUT |
17:41.01 | Encrypt | Yep :) |
17:41.04 | Samot | You need to catch YOUR calls |
17:41.14 | Samot | So 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.19 | Samot | From your callerid |
17:41.25 | Encrypt | So, I have to wait for an input |
17:41.44 | Samot | ^^^ |
17:41.44 | Samot | Right |
17:41.44 | Samot | NO |
17:41.44 | [TK]D-Fender | either * can SEE it's you or you have to allow INPUT |
17:41.44 | [TK]D-Fender | PICK ONE |
17:41.44 | Samot | You can match the call off YOUR caller id |
17:41.46 | Samot | Which can go to a prompt |
17:41.52 | Encrypt | * won't be able to see it's me, since the number will be the one of the gateway |
17:41.54 | Samot | Asterisk still needs to know WHERE to call |
17:41.59 | Samot | No. |
17:42.00 | Samot | FFS. |
17:42.01 | Encrypt | So, I think INPUT is the way to go |
17:42.04 | [TK]D-Fender | go LOOK to see if the call shows your callerid |
17:42.04 | Samot | That's the INBOUND |
17:42.11 | Samot | Your mobile number will be the CALLERID |
17:42.35 | [TK]D-Fender | FUCKING LOOK AT THE CALLER-ID FIRST BEFORE GUESSING |
17:42.49 | Encrypt | Yes, yes |
17:42.50 | [TK]D-Fender | Encrypt> * 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.51 | Samot | Encrypt: What you are looking to do is a common thing. People do it all the time. |
17:42.54 | [TK]D-Fender | LOOK AT IT |
17:43.17 | Encrypt | [TK]D-Fender, Don't take this too seriously :x |
17:43.17 | Encrypt | I will |
17:43.17 | [TK]D-Fender | The problem is you're not LOOKING |
17:43.24 | [TK]D-Fender | And picking solutions without definig what is actually HAPPENING |
17:43.24 | Encrypt | I only wanted to get your opinion, not you to write my dialplan eh :x |
17:44.02 | Samot | You have to figure out how you want to do this |
17:44.02 | [TK]D-Fender | You want transparent, then you should see if you can avoid that input step. |
17:44.12 | Samot | How will Asterisk know the destination? |
17:44.13 | [TK]D-Fender | or how you are forced to do this |
17:44.23 | [TK]D-Fender | Samot, that's DISA |
17:44.37 | [TK]D-Fender | Samot, because he's calling the server. the real target does have to get dialed |
17:44.43 | Encrypt | [TK]D-Fender, That's all I wanted to get, pointers |
17:44.43 | Samot | I know. |
17:44.45 | Encrypt | For the rest, I'll figure out :) |
17:44.56 | Samot | How will Asterisk know if he's trying to call mom or for a pizza? |
17:45.03 | Samot | How will Asterisk know what digits to dial? |
17:45.09 | Samot | Someone has to input those... |
17:45.37 | Samot | There needs to be prompting |
17:45.37 | [TK]D-Fender | someone = him |
17:45.37 | Samot | Right |
17:45.37 | Samot | That's what I was saying. |
17:45.37 | Samot | An IVR |
17:45.48 | Encrypt | Ok, I've just has a look at DISA |
17:45.49 | [TK]D-Fender | or DISA direct |
17:45.52 | Encrypt | That's what I wanted :) |
17:46.03 | [TK]D-Fender | I would personally do an IVR to give myself better timeout control, etc |
17:46.10 | Samot | ^^^^ |
17:46.19 | Samot | I know DISA is an option |
17:47.11 | Samot | 1:38:00 PM S<Samot> He wants DISA basically |
17:47.25 | Samot | It's just not an option I would suggest first. |
17:47.34 | Samot | Like you, I'd go IVR for better control of things. |
17:48.00 | igcewieling | Anyone who wants DISA doesent understand enough. |
17:48.43 | Samot | I prefer the dialout option in app_voicemail before DISA |
17:48.43 | Samot | At least they've entered their VM PIN to auth the call |
17:48.43 | igcewieling | After then first multuthousand dollar phone bill they realize they don't understand enough to make DISA secure. |
17:48.43 | Encrypt | Samot, You mean something saying like: "Welcome stranger! If you're trying to reach Encrypt, then wait. Otherwise, please authentify!" ? |
17:48.50 | Samot | Sure |
17:48.51 | Samot | Or. |
17:48.58 | Samot | If you want this just for *your* calls |
17:49.18 | Samot | And what all others to ring your extension like normal.. |
17:49.27 | Encrypt | Yes, that's what I would prefer |
17:49.29 | Samot | You need to catch call by the incoming caller id, which would be your mobile. |
17:49.39 | Samot | So you can route those calls to your IVR |
17:49.45 | Samot | And everything else to your extensions |
17:49.45 | Encrypt | Right |
17:50.14 | Encrypt | As [TK]D-Fender said, I'll see what is the caller ID once I call the gateway and then my iNum |
17:50.21 | Encrypt | But I suppose it will be the number of the gateway |
17:50.32 | [TK]D-Fender | Don't "suppose" |
17:50.38 | Encrypt | That said, almost nobody call me using my iNum number |
17:50.58 | [TK]D-Fender | LOOK |
17:50.58 | Encrypt | [TK]D-Fender, Yes, I'll have a look :) |
17:50.58 | [TK]D-Fender | How long should it have taken to SEE a test call? |
17:51.05 | [TK]D-Fender | a 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-Fender | This should have taken under 1 minute |
18:00.01 | Encrypt | [TK]D-Fender, Alright |
18:00.01 | Encrypt | I checked |
18:00.29 | Encrypt | I didn't know the variable ${CALLERID(all)} before |
18:00.57 | Encrypt | So, the number appearing is indeed mine |
18:01.50 | Encrypt | You helped me figure out where to search :) |
18:03.13 | Encrypt | Everything is clearer for me now... :) |
18:05.10 | igcewieling | Encrypt: 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.21 | igcewieling | or even the asterisk book, I suspect. |
18:06.20 | Encrypt | igcewieling, What I did was supposed to be something simple at first... |
18:06.43 | igcewieling | Nothing in Asterisk is simple if you don't know Asterisk. |
18:06.44 | Encrypt | So I found tutorials and excellent "asterisk basics" videos made by the "VOIP Guys" on YouTube |
18:06.55 | [TK]D-Fender | Not thinking * should be able to see it is not a good start |
18:07.29 | igcewieling | go read the output of those two commands. Also the output of "core show applications" |
18:07.36 | Encrypt | Here is their channel by the way: https://www.youtube.com/watch?v=jMQfSsO1da4&list=PLnzEbgyK52Gu9fdVDHburrsG3KBIntXFK |
18:07.46 | igcewieling | video doesn' |
18:07.49 | Encrypt | igcewieling, Ok :) |
18:07.52 | igcewieling | t work on my VM. What is it? |
18:08.14 | Encrypt | igcewieling, A series of videos explaining how to start working with asterisk |
18:08.52 | igcewieling | same version as your Asterisk? |
18:08.57 | igcewieling | Also look at https://wiki.asterisk.org/wiki/display/AST/Home |
18:10.08 | Encrypt | Thanks |
18:11.10 | igcewieling | The problem with unofficial docs is they are almost always badly out of date. |
18:12.53 | Encrypt | Possible |
18:14.03 | Encrypt | Now 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.34 | Encrypt | Sorry 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.45 | wabbits | can 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.20 | Asterisco | Hi |
19:03.19 | Asterisco | I'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.48 | Asterisco | but if i would obtain the internal number that take the call? |
19:03.52 | Asterisco | how can i do it? |
19:07.27 | *** join/#asterisk tuxd00d (~tuxd00d@ip68-106-11-138.ph.ph.cox.net) |
19:10.46 | [TK]D-Fender | huh? |
19:12.57 | Asterisco | i need save the internal that respond to a call |
19:13.52 | [TK]D-Fender | What is "the internal"? |
19:13.56 | [TK]D-Fender | You need to be clearer |
19:14.19 | [TK]D-Fender | if you are running this AFTER a bridged call then |${DIALEDPEERNAME}|${DIALEDPEERNUMBER} applies |
19:15.12 | Asterisco | after this? |
19:15.13 | Asterisco | exten => 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-Fender | Asterisco, you're not going to have have bridged channel information BEFORE you dial something.... |
20:24.48 | Asterisco | Fender i've put it after and beforehangup |
20:26.01 | Asterisco | but ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME} don't give me any information |
20:26.15 | Asterisco | i obtain ||| |
20:28.32 | Asterisco | i'm trying to use exten => h,1, to the end of dialplan |
20:30.31 | Asterisco | don't work! |
20:30.54 | Asterisco | exten => h,1,System(/bin/echo "${EVAL(${DATI_FINE_CHIAMATA})}" >> /web-asterisk/asterisk/callerid/callerid-fine_chiamata.txt) |
20:31.04 | Asterisco | DATI_FINE_CHIAMATA=${SS}{STRFTIME(${SS}{EPOCH},,%Y-%m-%d %H:%M:%S)}|${SS}{DIALEDPEERNAME}|${SS}{DIALEDPEERNUMBER}|${SS}{DIALEDTIME}|${SS}{ANSWEREDTIME} |
20:31.18 | Asterisco | i obtain this: 2017-07-15 22:29:56|||| |
20:32.13 | Asterisco | it's normal? |
20:40.40 | Samot | Asterico: Show the full contexts and dialplan |
20:40.49 | Samot | This single line crap isn't going to get anyone anywhere |
20:40.57 | Samot | ~pb |
20:40.57 | infobot | i 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.43 | Samot | Also do a call that shows this.. |
20:41.47 | Samot | asterisk -rvvvvvvvvvvv |
20:41.52 | Samot | So we can actually see what is happening |
20:43.14 | Asterisco | with 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.28 | Samot | I don't care about single line snippets. |
20:43.36 | Asterisco | one moment |
20:43.44 | Samot | You have an issue with the way your dialplan is written and/or executing. |
20:43.58 | Samot | Show it all so we can actually see what is there and what is happening |
20:46.38 | Asterisco | samot take a look: https://pastebin.com/xPyiLhRj |
20:49.10 | [TK]D-Fender | ${EVAL(${DATI_FINE_CHIAMATA})}" |
20:49.15 | [TK]D-Fender | your use of eval is garbage. |
20:49.17 | [TK]D-Fender | use it DIRECTLY |
20:49.27 | Asterisco | ah :| |
20:49.31 | [TK]D-Fender | and NoOp that values INDIVIDUALLY on-scrren |
20:49.52 | [TK]D-Fender | You aren't doing the common-sense thing and looking at them without 5 things in the way |
20:50.16 | [TK]D-Fender | wait.... |
20:50.29 | [TK]D-Fender | you aren't even doing a DIAL in there |
20:50.44 | Asterisco | exten => 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.46 | Asterisco | right? |
20:50.52 | [TK]D-Fender | ALSO.... you don't have $ in FRONT of the { |
20:50.54 | [TK]D-Fender | for BOTH |
20:50.57 | [TK]D-Fender | 2 more screwups |
20:51.00 | [TK]D-Fender | this is all wrong |
20:51.03 | [TK]D-Fender | all of it |
20:51.18 | [TK]D-Fender | ${DIALEDPEERNAME}|${DIALEDPEERNUMBER} <- YOU HAVE NO DIAL IN THERE |
20:51.27 | [TK]D-Fender | What are you even trying to DO there? |
20:51.42 | Asterisco | https://www.voip-info.org/wiki-Asterisk+variables |
20:51.48 | Samot | [...] <-- what are these? |
20:51.53 | Asterisco | Using $ |
20:51.53 | Asterisco | If 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.53 | Asterisco | [globals] |
20:51.53 | Asterisco | SS=$ |
20:51.53 | Asterisco | MY_VAR=${SS}{EPOCH}-${SS}{EXTEN}.gsm |
20:52.05 | [TK]D-Fender | Go prove that even works |
20:52.25 | [TK]D-Fender | and again.. you have NO DIAL |
20:52.32 | [TK]D-Fender | ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}| <- worhtless |
20:53.03 | Samot | The channel you are actually on is the "dialed" channel. |
20:53.08 | [TK]D-Fender | no |
20:53.11 | Samot | The carrier sent a call to Asterisk |
20:53.13 | [TK]D-Fender | there is no "dialed channel" |
20:53.20 | Samot | So it was the dialed channeled in this scenario. |
20:53.21 | [TK]D-Fender | there is no DIAL |
20:53.25 | Samot | In Asterisk's view.. |
20:53.27 | [TK]D-Fender | no |
20:53.29 | Samot | It's just a call |
20:53.31 | Samot | Not a dial |
20:53.33 | Samot | As TK said |
20:53.36 | [TK]D-Fender | that 2 variables are the RESULT of app_dial <- |
20:53.40 | Samot | Right |
20:53.44 | Samot | They aren't going to work here. |
20:53.46 | [TK]D-Fender | Which doesn't exist here |
20:53.53 | [TK]D-Fender | and theis eval is garbage |
20:54.24 | Samot | Well |
20:54.29 | Samot | He showed a Dial before. |
20:54.35 | Samot | But I asked for the FULL dialplan |
20:54.40 | Samot | And got back edited stuf. |
20:54.40 | [TK]D-Fender | https://pastebin.com/xPyiLhRj <- and it ain't there |
20:55.10 | Samot | 3: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.12 | Asterisco | i'e found the problem |
20:55.13 | Asterisco | ${STRFTIME(${{EPOCH},,%Y-%m-%d %H:%M:%S)}} |
20:55.16 | Asterisco | ${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-Fender | You don't jsut get to keep adding them on |
20:57.26 | Asterisco | yes |
20:57.28 | Asterisco | excuse me |
20:57.39 | Asterisco | System(/bin/echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}|${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}" |
20:57.45 | [TK]D-Fender | And your pastbin has no dial |
20:58.10 | [TK]D-Fender | ${DIALEDPEERNAME}|${DIALEDPEERNUMBER}|${DIALEDTIME}|${ANSWEREDTIME}" <- ALL worthless |
20:58.21 | Samot | Because he doesn't post all the dialplan like asked |
20:58.33 | [TK]D-Fender | Also missing the matching call |
20:58.42 | [TK]D-Fender | but we're full of syntax errors too while we're at it |
20:58.43 | Samot | s/doesn't/didn't/ |
20:58.48 | Samot | No. |
20:58.56 | Samot | Didn't provide any of the requested stuff. |
20:59.02 | [TK]D-Fender | I agree |
20:59.07 | Samot | Just keep showing ass half pieces. |
21:00.00 | [TK]D-Fender | never half-ass 2 things ... always whole-ass 1 thing. |
21:00.09 | [TK]D-Fender | because efficiency.... |
21:00.24 | Samot | Nooooooooo!!!!!!! |
21:02.14 | *** join/#asterisk lankanmon_ (~LKNnet@2607:fea8:d1f:ffcb:84be:da0e:94a0:dda1) |
21:02.33 | Asterisco | samot https://pastebin.com/xzgyh68v |
21:03.29 | [TK]D-Fender | Where's the call? |
21:03.51 | Asterisco | is an incoming call |
21:04.39 | Asterisco | i need check dialedtime of incoming call |
21:04.48 | Samot | Where is the actual debug of a call |
21:05.04 | Samot | Showing what happens and how things are fully processed... |
21:05.05 | Asterisco | exten => 9004,1,Answer() |
21:05.10 | Samot | No |
21:05.14 | Samot | Make a damn call |
21:05.20 | Samot | That fails to do what you want |
21:05.23 | Asterisco | i do it |
21:05.24 | Samot | asterisk -rvvvvvvvvvv |
21:05.29 | Samot | Where is it?~ |
21:05.32 | Samot | Show it to us |
21:05.36 | Samot | We asked for it |
21:05.44 | Samot | We can't see your screens |
21:05.56 | Asterisco | https://pastebin.com/QKxWeEJh |
21:06.05 | Asterisco | i know |
21:06.07 | Asterisco | :) |
21:06.35 | Asterisco | <PROTECTED> |
21:06.42 | Samot | AGain |
21:06.51 | Samot | Those are variables that are the result of a DIAL |
21:06.58 | Samot | There is no DIAL happening here. |
21:07.09 | Asterisco | ?!?!?!? |
21:07.28 | Asterisco | i've called the number 9004 |
21:07.32 | Samot | Those variables are the result of the Dial() app |
21:07.36 | [TK]D-Fender | ^^^^^^^^^^^^^^^^^^^^^ |
21:07.44 | Samot | OK |
21:07.48 | [TK]D-Fender | What part of this are you having trouble understanding |
21:07.55 | Samot | Then you DIDN'T SHOW A WHOLE CALL |
21:07.58 | Samot | No. |
21:08.01 | Samot | I know what's happening.. |
21:08.04 | Samot | He'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.06 | Asterisco | what? |
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.20 | Samot | Wait |
21:08.21 | Samot | I got it |
21:08.26 | Samot | I pieced it togther. |
21:08.28 | Asterisco | ahhh |
21:08.29 | Asterisco | :) |
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.32 | Samot | I'm VoIP Holmes. |
21:08.32 | Asterisco | is a pstn |
21:08.34 | Samot | Wait |
21:08.35 | Samot | Stop |
21:08.39 | Asterisco | i redirect to grandstream |
21:08.40 | [TK]D-Fender | <[TK]D-Fender> ${DIALEDPEERNAME}|${DIALEDPEERNUMBER} <- YOU HAVE NO DIAL IN THERE |
21:08.43 | Samot | Stop |
21:08.49 | Samot | Oh wit |
21:08.59 | Samot | Incoming Call from PSTN |
21:09.04 | Asterisco | GXW410X |
21:09.05 | [TK]D-Fender | WORTHLESS\ |
21:09.06 | Samot | Hits Asterisk. |
21:09.07 | Samot | STOP |
21:09.09 | Samot | STOP |
21:09.21 | Samot | Asterisk dials multiple extensions |
21:09.31 | Samot | 9004 answers... |
21:09.34 | Samot | So. |
21:09.43 | Samot | You cannot get those variables until AFTER the Dial |
21:09.49 | [TK]D-Fender | WHERE'S THE FUCKING CALL? |
21:09.50 | Asterisco | oh i see :\ |
21:09.50 | Samot | And you cannot get them on the 9004 CHANNEL |
21:09.59 | [TK]D-Fender | 9004 is not a "channel" |
21:10.04 | Samot | Asterisco... |
21:10.09 | Samot | Dial it again |
21:10.12 | Samot | THIS TIME |
21:10.15 | Asterisco | the number that i call is 095430666 |
21:10.25 | Asterisco | the 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.31 | Samot | The pastebin shows EVERYTHING from the asterisk -rvvvvvvvvvv |
21:10.34 | Samot | Do it again |
21:10.42 | *** join/#asterisk jameswf (uid27319@gateway/web/irccloud.com/x-euydlvorqulkbedh) |
21:10.47 | Samot | Show it ALL from the moment you hit the Asterisk CLI |
21:10.49 | Samot | Not part of it |
21:10.49 | Asterisco | ??? |
21:10.51 | Samot | Not some of it |
21:10.54 | Samot | THE WHOLE CALL |
21:10.57 | Asterisco | i put all |
21:11.00 | Asterisco | ok :) |
21:11.03 | Asterisco | i reput all |
21:11.05 | Samot | OH FFS |
21:11.05 | Asterisco | one moment |
21:11.07 | Samot | You can't do it |
21:11.10 | [TK]D-Fender | ----------> SHOW THE FUCKING CLI OUTPUT OF THE CALL <-------------- |
21:11.16 | Samot | If the Gateway is sending the call to 9004 |
21:11.18 | [TK]D-Fender | NEW PASTEBIN |
21:11.19 | Samot | There is no DIAL |
21:11.32 | Samot | Those variables do not happen |
21:11.37 | Samot | Because the DIAL is from the GATEWAY |
21:12.06 | Samot | I asked for two simple things 30 minutes ago |
21:12.10 | Samot | Full dialplan |
21:12.13 | Samot | Full call example |
21:12.26 | Samot | Still not sure I have either of those |
21:12.49 | Samot | Clearly [TK]D-Fender doesn't think either of those happened. |
21:12.56 | [TK]D-Fender | I trust NOTHING |
21:12.58 | [TK]D-Fender | I see no CALL |
21:13.07 | [TK]D-Fender | Everything until then is BULLSHIT to me. |
21:13.35 | Asterisco | https://pastebin.com/r2qm8z2h |
21:13.36 | [TK]D-Fender | Think I even trust the dialplan is from the same BOX? Not until I get something to back it up |
21:13.46 | Samot | Asterico: You're never getting those variables. |
21:13.50 | [TK]D-Fender | Asterisco, Well YOU HAVE NO FUCKING DIAL THERE |
21:13.55 | Samot | This 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.02 | Samot | Not Asterisk making a call. |
21:14.03 | [TK]D-Fender | NO DIAL |
21:14.11 | [TK]D-Fender | Asterisk did not call OUT |
21:14.15 | Samot | ^^^^ |
21:14.18 | [TK]D-Fender | that shit gets created when you DIAL OUT. |
21:14.26 | [TK]D-Fender | What part of this are you having trouble understanding? |
21:14.32 | Asterisco | ok |
21:14.38 | Asterisco | is an internal call |
21:14.46 | [TK]D-Fender | ther is no such thing |
21:14.48 | Asterisco | how can i obtain the same this value? |
21:14.51 | [TK]D-Fender | those words mean NOTHING |
21:15.00 | Samot | 5:10:25 PM A<Asterisco> the GXW410X <-- THAT is where the data you want lives. |
21:15.05 | [TK]D-Fender | WHAT VALUE <------- |
21:15.17 | [TK]D-Fender | - Executing [9004@incoming:1] Answer("SIP/10.0.0.1-00000000", "") in new stack |
21:15.20 | Asterisco | the time of dial! |
21:15.22 | [TK]D-Fender | You're not even MATCHING A PEER |
21:15.26 | Samot | There is no dial. |
21:15.34 | Asterisco | what is????? |
21:15.40 | Asterisco | the internal dial |
21:15.45 | Samot | NO |
21:15.52 | Samot | This is coming from an external device |
21:15.54 | Asterisco | 9004 what is? |
21:16.04 | [TK]D-Fender | Asterisco> the internal dial <- NO SUCH THING IDIOT. GET THIS THROUGH YOUR HEAD. THERE IS NO SUCH THING AS "INTERNAL" |
21:16.09 | [TK]D-Fender | a fucking CALL arrived at asterisk |
21:16.12 | [TK]D-Fender | THAT IS ALL |
21:16.16 | Samot | This is showing 9004 ANSWERING a call |
21:16.22 | [TK]D-Fender | EVERY call is JUST A FUCKING CALL |
21:16.26 | [TK]D-Fender | No |
21:16.26 | Samot | From an outside source. |
21:16.34 | [TK]D-Fender | 9004 doesn't answer |
21:16.39 | Samot | Well Asterisk matching on 9004 |
21:16.48 | [TK]D-Fender | this is a call being ACCEPTED by * and hitting DIALPLAN |
21:16.51 | Samot | Yup |
21:16.54 | Samot | That's what I mean. |
21:16.56 | Samot | Thanks. |
21:17.00 | [TK]D-Fender | a NUMBER doesn't answer a call.... ASTERISK is. |
21:17.07 | [TK]D-Fender | Because of a pattern match on an exten |
21:17.16 | Samot | Right |
21:17.19 | Asterisco | there is a solution? |
21:17.25 | [TK]D-Fender | Asterisco, There is NO DIALTIME. You did not DIAL |
21:17.28 | Samot | Get the data from the GATEWAY |
21:17.35 | [TK]D-Fender | There is no dial time |
21:17.37 | [TK]D-Fender | it does not EXIST |
21:17.38 | Samot | Or pull it from the CDRs |
21:17.47 | Samot | For details about what happened. |
21:17.52 | Asterisco | :'(((( |
21:17.55 | Samot | But DIALSTATUS |
21:17.58 | Samot | ANSWEREDTIME |
21:18.07 | [TK]D-Fender | NONE |
21:18.09 | Samot | They don't exist unless ASTERISK originates the call.. |
21:18.09 | [TK]D-Fender | Do not exist |
21:18.14 | [TK]D-Fender | Indeed |
21:18.17 | Samot | Not ACCEPTS |
21:18.30 | [TK]D-Fender | Asterisco, you are doing a SHIT job of describing what INFORMATION you want out of this |
21:18.46 | Samot | If you want to know when Asterisk "answered the call |
21:18.55 | Samot | 5:15:18 PM T<[TK]D-Fender> - Executing [9004@incoming:1] Answer("SIP/10.0.0.1-00000000", "") in new stack |
21:19.04 | Samot | Use EPOCH to get the TIME AT THAT MOMENT |
21:19.04 | [TK]D-Fender | I want HIS words to clearly describe this without any "tech" words |
21:19.22 | Samot | Meh, 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-Fender | He HAS the time in there |
21:19.31 | [TK]D-Fender | but NONE of the other shit |
21:19.36 | [TK]D-Fender | because those vars don't EXIST yet |
21:19.44 | Samot | Well the DIALSTATUS is Answer() |
21:19.50 | [TK]D-Fender | echo "2017-07-15 23:11:58 <- YOU HAVE THE FUCKING TIME. |
21:19.51 | Samot | Because he did Answer() |
21:19.57 | [TK]D-Fender | What else are you expecting? |
21:20.01 | Samot | I mean.. |
21:20.02 | Asterisco | but is not a dial :\ |
21:20.08 | [TK]D-Fender | <Samot> Well the DIALSTATUS is Answer() <- No |
21:20.19 | [TK]D-Fender | that var is ONLY for Dial() |
21:20.24 | Samot | My point is.. |
21:20.27 | [TK]D-Fender | That's why it's in the NAME |
21:20.28 | Asterisco | i know |
21:20.30 | Samot | If he wants DIALSTATUS |
21:20.33 | [TK]D-Fender | no |
21:20.40 | [TK]D-Fender | he thinks something should BE in there |
21:20.50 | [TK]D-Fender | what 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.04 | Asterisco | the time of the dial |
21:21.17 | [TK]D-Fender | YOU HAVE IT |
21:21.21 | Asterisco | i 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.27 | Samot | Asterico... |
21:21.31 | [TK]D-Fender | IDIOT IT'S RIGHT THERE |
21:21.33 | Samot | 5: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.34 | Asterisco | excuse me |
21:21.35 | [TK]D-Fender | LOOK AT THE TIME ON IT |
21:21.37 | Samot | Stop |
21:21.37 | [TK]D-Fender | IT'S THERE |
21:21.38 | Samot | Stop |
21:21.40 | [TK]D-Fender | YOU FUCKING HAVE THE TIME |
21:21.41 | Asterisco | the duration of the call |
21:21.52 | [TK]D-Fender | There is no duration |
21:21.52 | Asterisco | how many seconds |
21:22.00 | [TK]D-Fender | that line executes INSTANTLY |
21:22.01 | Samot | That doesn't exist until the HANGUP |
21:22.05 | [TK]D-Fender | THERE IS NO TIME |
21:22.18 | Samot | You don't know how long the call is until it is OVER |
21:22.19 | [TK]D-Fender | the call INSTANTLY hits the dialplan and you INSTANTLY run that line |
21:22.35 | [TK]D-Fender | That System gets called thee EXACT SECOND your fucking call ARRIVIES |
21:22.38 | [TK]D-Fender | there is time IN BETWEEN |
21:22.40 | [TK]D-Fender | ^^^^^^ |
21:22.52 | Asterisco | I need the duration of tha call after hangup |
21:23.04 | Samot | It's in the CDRs |
21:23.12 | [TK]D-Fender | ^ |
21:23.26 | Samot | ALL that data is in the CDRs |
21:23.31 | Samot | Based on the type of call it was. |
21:23.35 | Samot | Originated or Accepted |
21:23.42 | [TK]D-Fender | ${CDR(duration)} |
21:23.44 | [TK]D-Fender | ^ |
21:23.49 | Asterisco | lol! |
21:23.55 | Asterisco | is so simply??? |
21:24.00 | Samot | You are already logging all this data |
21:24.05 | Samot | They are called CDRs. |
21:24.08 | [TK]D-Fender | <Samot> Or pull it from the CDRs |
21:24.31 | Asterisco | i don't know the existence of ${CDR(duration)} |
21:24.32 | Asterisco | :) |
21:24.36 | Asterisco | one 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.54 | Asterisco | exten => 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-Fender | You ALSO can just calculate this YOURSELF |
21:24.58 | Asterisco | right? |
21:25.09 | [TK]D-Fender | GO TRY IT |
21:25.20 | Asterisco | and for the dialedpeernumber? |
21:25.50 | Asterisco | i need obtain the first internal number that answer to the call |
21:26.11 | Samot | The CDRs and CEL HAVE ALL THAT |
21:26.19 | Asterisco | oh! :) |
21:27.12 | Asterisco | 2017-07-15 23:27:04|||22 |
21:27.13 | Samot | There are multiple CDRs for calls in a lot of cases. |
21:27.15 | Asterisco | fine works!!! |
21:27.18 | Asterisco | 22 seconds! |
21:27.21 | [TK]D-Fender | <Asterisco> and for the dialedpeernumber? <- YOU HAVE NO FUCKING DIAL |
21:27.28 | Samot | Because the CDRs log all points of the call. |
21:27.34 | [TK]D-Fender | You seem to have a SEVERE learning disability here...... |
21:27.46 | [TK]D-Fender | you are not DIALING. There is NO PEER. There is NO DIAL. |
21:27.47 | Asterisco | i'm finding a page to CDR variable |
21:27.58 | Asterisco | TK i understund |
21:28.03 | Samot | Yeah. |
21:28.08 | Asterisco | but is a call :D |
21:28.09 | [TK]D-Fender | I doubt that. |
21:28.18 | Samot | This is basically trying to log information that is already being logged in CDRs |
21:28.22 | [TK]D-Fender | We've said this a hundred times and you're STILL asking about those variables |
21:28.24 | Asterisco | i need take information from CDR |
21:28.39 | Asterisco | no |
21:28.49 | Samot | goes to play baseball... |
21:28.50 | Samot | Later |
21:29.58 | [TK]D-Fender | there is no "internal number". You keep using these words that mean nothing. |
21:30.11 | [TK]D-Fender | There also are MULTIPLE of anything |
21:30.19 | [TK]D-Fender | So "first" means nothing. |
21:31.09 | Asterisco | i neet take the internal number that take this "call" for firs time |
21:31.28 | Asterisco | exten => 1,1,Dial(SIP/11&SIP/12&SIP/13&SIP/14,60,m(musica-attesa)) |
21:31.41 | Asterisco | 11, 12, 13 or 14 ? |
21:33.40 | [TK]D-Fender | Where is that HAPPENING in your call? |
21:34.00 | [TK]D-Fender | https://pastebin.com/r2qm8z2h <- NO FUCKING DIAL HAPPENED |
21:34.18 | Asterisco | when i call another number |
21:34.28 | Asterisco | now i can't test it |
21:34.56 | Asterisco | there was no one person in office |
21:35.17 | Asterisco | exten => 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.26 | Asterisco | 2017-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.08 | Asterisco | for 9004 there aren't internal number that answer |
21:36.59 | Asterisco | after 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.22 | Asterisco | i can use ${DIALEDPEERNAME}? |
21:38.58 | Asterisco | or better ${DIALEDPEERNUMBER} |
21:40.07 | igcewieling | Asterisco: run the Dumpchan application in the call to see some variables you might have access to. |
21:40.26 | igcewieling | BEFORE the dial. |
21:40.33 | Asterisco | ok thanks |
21:41.38 | igcewieling | "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.49 | Asterisco | no :) |
21:42.57 | Asterisco | tomorrow i go into the office |
21:43.01 | Asterisco | and test it :) |
21:44.15 | Asterisco | i'm finding to save this data into mariadb |
21:44.20 | Asterisco | is difficoult? :\ |
21:44.29 | [TK]D-Fender | did you LOOK? |
21:44.42 | [TK]D-Fender | Go learn to read. |
21:44.43 | [TK]D-Fender | The start |
21:44.46 | [TK]D-Fender | then* |
21:44.55 | [TK]D-Fender | ~book |
21:44.55 | infobot | Asterisk: 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.11 | Asterisco | Nothing in italian right? |
21:45.11 | [TK]D-Fender | I'm sure the word DATABASE is easitl searchable there |
21:45.25 | [TK]D-Fender | I have no idea what docs are in italian |
21:45.59 | Asterisco | i've found only this 978850327423 |
21:46.09 | Asterisco | but is not a good book |
21:46.34 | Asterisco | 978850327423 Asterisk Il mondo Voip open source |
21:46.43 | Asterisco | http://www.apogeonline.com/libri/9788850327423/scheda |
21:47.02 | Asterisco | i've search in Amazon :\ |
21:47.07 | Asterisco | but... nothing! |
21:48.24 | [TK]D-Fender | Oh well |
21:48.59 | Asterisco | i'm reading asteriskdocs.org |
21:49.02 | Asterisco | thanks :) |
21:49.20 | Asterisco | is and old edition |
21:49.39 | Asterisco | and there are nothing about mariadb |
21:49.42 | Asterisco | ^_^ |
21:50.33 | Asterisco | goodnight 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-Fender | Yup... learning disability |
21:53.04 | [TK]D-Fender | Tell 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.53 | forgotmynick | in 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) |