00:01.11 | The-Kernel | NGT's broadsoft isn't going to let me change something like that |
00:01.32 | dijib | p3nguin, what mail clinet would your dialplan use to send email? mutt? |
00:03.31 | *** join/#asterisk vinhdizzo (~vinh@pool-173-60-112-55.lsanca.fios.verizon.net) |
00:03.43 | p3nguin | Yes, mutt. |
00:03.57 | p3nguin | And I use ssmtp or msmtp as my MTA. |
00:04.12 | p3nguin | Did use msmtp, now us ssmtp. |
00:04.21 | p3nguin | s/us /use / |
00:15.04 | *** join/#asterisk adeel (~adeel@24-246-63-106.cable.teksavvy.com) |
00:37.09 | dijib | i think my mutt line is ok now... i was just about to test some changes,... and im trying to use some voicemail authentication thing but not sure if its working as i was always getting authenticated. |
00:39.37 | p3nguin | If you are being authenticated, that sounds like it works. |
00:56.34 | dijib | http://pastebin.com/qrKN0kRW doesnt work |
00:57.26 | p3nguin | line 6 is bad. |
00:57.59 | p3nguin | I still don't understand why you insist on using SayAlpha when there's SayDigits. |
00:58.23 | p3nguin | Line 9 has pipe lines instead of commas. |
01:00.09 | dijib | caught that |
01:00.15 | dijib | line six is what? |
01:00.18 | dijib | playback? |
01:00.21 | p3nguin | Then you try to email a file that hasn't even been created, yet. |
01:00.32 | dijib | ok so do that after? |
01:00.53 | p3nguin | You'll need to do the emailing in the h extension, after the call has ended. |
01:00.54 | dijib | or dial? see i dont know how to climax |
01:01.16 | dijib | so goto(h,1) |
01:01.18 | dijib | ? |
01:01.19 | p3nguin | no |
01:01.37 | p3nguin | Calls go to extension h when they hang up. That's what h means. |
01:01.40 | p3nguin | h is the hangup extension. |
01:02.00 | p3nguin | exten => h,1,System() |
01:02.15 | p3nguin | or similar |
01:02.19 | dijib | in the same context? |
01:02.29 | p3nguin | It will run h in the current context. |
01:02.36 | dijib | see im getting a bit confused with the contexts and questions how i could add security.. |
01:02.58 | dijib | go ,Hangup(); goes to h? |
01:03.02 | dijib | in that context? |
01:03.13 | p3nguin | When a call hangs up, it goes to h. |
01:03.37 | p3nguin | The Hangup() probably will never actually get used, but I always define it anyway. |
01:03.42 | p3nguin | like a safety net. |
01:04.38 | dijib | right now i have h defined as such since you defined it. man that needs a cheque |
01:04.39 | dijib | exten => h,1,Goto(h-${FAXSTATUS},1); |
01:05.08 | p3nguin | Not to mention, you have a subject of "new fax from..." to email something that isn't a fax. |
01:05.14 | dijib | lol |
01:05.19 | dijib | thats minor |
01:05.27 | p3nguin | Did you ever read the book? |
01:05.31 | p3nguin | My guess is no. |
01:05.36 | dijib | i wrote the book |
01:05.46 | dijib | just not this book |
01:05.46 | p3nguin | Now I know you're lying. |
01:08.21 | dijib | current dialplan is 529 lines |
01:08.30 | p3nguin | I re-did my fax extension, too, just so you know. |
01:08.49 | dijib | well im thinking send h- to email |
01:09.19 | dijib | but am i right by trying to still use the CALLERID(num) variable in h-? |
01:09.38 | dijib | or even using h- |
01:09.39 | p3nguin | Extension h is where thing happen after the call ends. You're trying to email a file of a recording of a call that hasn't yet been made. |
01:10.07 | dijib | right but with how its set right now, if there is no fax it send the call to h- |
01:10.31 | p3nguin | You're not even dealing with a fax. |
01:10.43 | p3nguin | Don't expect a fax setup to work when not dealing with fax. |
01:13.46 | dijib | then in the main context define h? |
01:15.21 | p3nguin | I don't know what a "main context" is to be able to answer that appropriately. |
01:16.50 | carrar | [main] |
01:17.30 | dijib | internal |
01:17.44 | dijib | {} |
01:17.46 | dijib | ][ |
01:23.38 | *** join/#asterisk ferdna (~ferdna@cpe-67-10-220-35.elp.res.rr.com) |
01:25.36 | *** join/#asterisk addeswe (~adde@c-65bce255.013-16-756d651.cust.bredbandsbolaget.se) |
01:41.27 | p3nguin | This is how I email a fax, or lack of a fax, if that's what happened: http://pastebin.com/fbSwh0hd |
01:41.58 | p3nguin | The same concept can be used to email something that wasn't a fax. |
01:49.55 | p3nguin | This is probably how I would do what you were trying to do: http://pastebin.com/Zr0HvK00 |
01:51.11 | p3nguin | But I can't expect you to use the dial plan I write for you. That would be too easy. |
01:54.38 | p3nguin | You could even create DB entries for every phone you have with a unique caller ID number, and assign an email address to it, then you could email the recorded file to your own email address when it finishes. I'll edit the paste to reflect this idea. |
01:55.48 | p3nguin | Done./ |
01:57.37 | *** join/#asterisk zerohalo (~zerohalo@74.60.136.128) |
02:03.57 | dijib | -- ${DB(fax/fax-manager/email)}); is causing me issues. ive got them store like this |
02:04.09 | dijib | email 9055551324 email@domain.com |
02:05.16 | dijib | oh but im going it like this sorry |
02:05.54 | dijib | -- ${DB(email/${CALLERID(num)})}); |
02:07.04 | dijib | i cant do that can i. |
02:09.44 | p3nguin | You've got a lot of }) in there. I think you have an extra set. |
02:10.03 | p3nguin | If you have a database entry for email/9055551324 with a valid email address, it should work. |
02:10.45 | p3nguin | Nah, you have the right amount of brackets. |
02:11.00 | p3nguin | It just appears like a lot without seeing the rest of the line. |
02:16.19 | dijib | its still causing APPERROR in status |
02:16.42 | dijib | ill paste what im using now. |
02:16.55 | dijib | but its basically your code with my System line |
02:20.38 | p3nguin | I'm sure it's your mailing part that is not working. |
02:23.30 | p3nguin | Are you using the sudo portion like I use? |
02:27.01 | p3nguin | I'm going to fall asleep waiting on you to paste a single line. |
02:30.33 | *** join/#asterisk autofsckk (~autofsckk@unaffiliated/autofsckk) |
02:38.39 | dijib | i think so |
02:38.42 | dijib | yes im using sudo |
02:38.45 | dijib | -u asterisk |
02:39.52 | p3nguin | Did you configure sudoers for that to work? |
02:39.58 | dijib | http://pastebin.com/fRd8JcXZ |
02:40.02 | dijib | sudoers? |
02:40.04 | dijib | maybe not |
02:40.44 | p3nguin | That's... not what I wrote for you. |
02:40.52 | p3nguin | (2049.54) <p3nguin> This is probably how I would do what you were trying to do: http://pastebin.com/Zr0HvK00 |
02:41.23 | p3nguin | And you have to configure sudoers to do that. It's not magic, so it won't work without being configured. |
02:41.55 | p3nguin | visudo |
02:42.01 | p3nguin | add the following line: |
02:42.03 | p3nguin | asterisk ALL=(ALL) NOPASSWD: /usr/bin/mutt |
02:42.23 | p3nguin | save, exit, try again. |
02:42.54 | p3nguin | (2051.10) <p3nguin> But I can't expect you to use the dial plan I write for you. That would be too easy. |
02:51.56 | *** join/#asterisk gxdssoft (~gxdssoft@190.236.111.135) |
03:12.23 | *** join/#asterisk Devon_ (~chatzilla@63.214.236.169) |
03:16.34 | leifmadsen | assuming the US border agency decides not to be douchy, see you all at AstriCon! |
03:21.09 | *** join/#asterisk ChrisInSydney (~Chris@60-242-81-231.tpgi.com.au) |
03:40.11 | *** join/#asterisk LiuYan (~LiuYan@222.125.132.191) |
03:40.39 | *** join/#asterisk lovetide (~LiuYan@222.125.132.191) |
03:46.02 | *** join/#asterisk Rufus (Rufus@unaffiliated/rufus) |
03:56.10 | *** join/#asterisk fisted (~fisted@unaffiliated/fisted) |
04:15.33 | *** join/#asterisk BuenGenio (~Gene@n219076175228.netvigator.com) |
04:40.10 | dijib | anybody still alive? |
04:40.50 | WIMPy | No |
04:40.56 | WIMPy | This is a Zombie Channel |
04:41.03 | dijib | thought so. |
04:41.10 | dijib | i wish there were intelligent zombies |
04:42.18 | WIMPy | Just add some fresh blood. |
04:43.47 | lovetide | :D |
04:43.59 | *** join/#asterisk fisted (~fisted@unaffiliated/fisted) |
04:57.44 | dijib | for the life of me i cant get this working |
04:57.46 | dijib | same => n,System(/bin/echo "Please see attachment."|/usr/bin/sudo -u asterisk /usr/bin/mutt -a "${MIXMONITOR_FILENAME}" -s "Recording from ${CALLERID(num)}" -- ${DB(email/${CALLERID(num)})}); |
04:59.21 | *** join/#asterisk WiretapSeven (~Wiretap@unaffiliated/wiretap) |
05:00.45 | SeRi | dijib, You trying to sent a vmail to an email with attch? |
05:01.04 | dijib | something like that yeah |
05:01.06 | WIMPy | sudo -u asterisk? |
05:01.24 | dijib | yes. |
05:01.25 | WIMPy | Asterisk doesn't run as astersik, but mutt should? |
05:01.37 | dijib | asterisk runs as asterisk |
05:01.46 | dijib | safe_asterisk runs as root |
05:01.54 | WIMPy | Then why do you dudo from asterisk to asterisk? |
05:02.22 | dijib | i dont know. im impotent. ask p3nguin |
05:02.49 | WIMPy | And the command to be executed by sudo isn't clear. It's neither quoted nor are the options terminated by --. |
05:03.38 | dijib | quotes where |
05:03.43 | WIMPy | Is that a cpuy&paste gone wrong thing? |
05:03.53 | dijib | copypasta? |
05:04.02 | SeRi | why not use "su userid -c "command" |
05:04.32 | WIMPy | It only makes sent when changing user, doesn't it? |
05:04.45 | WIMPy | s/sent/sense/ |
05:07.08 | *** join/#asterisk irroot (~irroot@41-135-56-110.dsl.mweb.co.za) |
05:08.14 | *** join/#asterisk gerhard7 (~gerhard7@82-171-103-215.ip.telfort.nl) |
05:08.16 | SeRi | dijib, when I want to send emails with attch inside my linux using asterisk I usually keep it away from the dial plan to eliminate over head in the dial plan. |
05:08.27 | SeRi | here is an example of my email out script |
05:09.00 | SeRi | http://pastebin.com/7nfsm9vh |
05:09.24 | SeRi | its a script that runs in the background and looks for the tiff file in tmp |
05:09.31 | SeRi | than converts it to pdf and emails it |
05:09.51 | SeRi | Is not what you want to do but it gives you an idea how to use scripts to email out |
05:10.23 | dijib | it working now |
05:10.23 | [TK]D-Fender | dijib: You've haven't shown us that dialplan failing |
05:11.49 | dijib | i have it emailing out now. |
05:11.59 | dijib | but i need to fix my gotoif script |
05:12.10 | kaldemar | dijib: do you still want the voicemail e-mail address in dialplan? |
05:12.42 | dijib | here ill show you what i have right now. |
05:14.53 | kaldemar | ${CUT(AST_CONFIG(voicemail.conf,${CUT(SIPPEER(mailbox),@,2)},${CUT(SIPPEER(mailbox),@,1)}),",",3)} |
05:15.30 | dijib | http://pastebin.com/vvegExVx |
05:16.36 | SeRi | I would have a script monitoring for the file created and email it out and than ether back it up or remove it |
05:17.13 | [TK]D-Fender | $[["${result}" = "0"]? |
05:17.16 | [TK]D-Fender | 2x [ |
05:17.17 | p3nguin | Or you could just let asterisk email the file when the call hangs up. |
05:17.19 | SeRi | Thats just me though :) |
05:17.52 | dijib | thats an error? |
05:17.53 | SeRi | to me that just creating a bunch of overhead in the dial plan but hey I know nothing... |
05:18.01 | [TK]D-Fender | Diyou have [[ in a row |
05:18.30 | p3nguin | It's not any more overhead than a daemon monitoring for new files. |
05:18.30 | dijib | k |
05:18.45 | *** join/#asterisk leftist (~leftist@50-10-91-159.gar.clearwire-wmx.net) |
05:18.46 | [TK]D-Fender | kaldemar: the e-mail in voicemail is voicemail.conf, not sippeer |
05:18.56 | [TK]D-Fender | kaldemar: that is the VM box & context |
05:19.00 | [TK]D-Fender | kaldemar: not at all the same |
05:20.35 | p3nguin | Having a small amount of work to do after the call hangs up isn't really a big deal, since it's a computer built within the 20 years. |
05:20.46 | p3nguin | the last 20 years, that is. |
05:21.19 | p3nguin | You're creating more overhead doing the actual recording than you are using mutt to email the file when it is done. |
05:21.21 | SeRi | p3nguin, like I said that's the way I do it. I like to keep things a bit simpler and separate from each other. dial plans can get extensive and complicate so to kee it simple for me I separate the two. |
05:22.30 | kaldemar | [TK]D-Fender: my example had errors in the SIPPEER calls, but it gets the email from voicemail.conf using AST_CONFIG. |
05:23.01 | kaldemar | [TK]D-Fender: the VM context and box are just to get the right line from voicemail.conf. |
05:23.07 | SeRi | by the way I have not been able to go to the mail. school and work is killing me |
05:23.16 | SeRi | are* |
05:23.33 | p3nguin | Any idea about that other SIM? |
05:23.58 | SeRi | yes those are coming this coming week. |
05:24.21 | kaldemar | ${CUT(AST_CONFIG(voicemail.conf,${CUT(SIPPEER(${CHANNEL(peername)},mailbox),@,2)},${CUT(SIPPEER(${CHANNEL(peername)},mailbox),@,1)}),",",3)} |
05:24.27 | kaldemar | ^ that really works. |
05:24.32 | SeRi | I am hoping to see the guy at school on tuesday. |
05:25.55 | [TK]D-Fender | kaldemar: Yeah, I over-focussed on the inner call... |
05:25.59 | [TK]D-Fender | I am tired... |
05:26.17 | dijib | whats wrong with my AGI line? |
05:26.22 | dijib | why doesnt it like me? |
05:26.30 | [TK]D-Fender | dijib: Who said anythine was wrong with your AGI line? |
05:26.34 | dijib | after i took the [ out im getting invalid |
05:26.37 | [TK]D-Fender | dijib: You haven't shown us the failure |
05:26.55 | dijib | im getting a permission denied on the agi script |
05:27.11 | kaldemar | [TK]D-Fender: it happens to the best of us. except to me ofcourse. :) |
05:27.41 | [TK]D-Fender | kaldemar: You're clearly excluded from the "best of us" Vvenn group ;) |
05:29.11 | dijib | failier: http://pastebin.com/vcjRmsCv |
05:29.33 | p3nguin | Permission denied. Seems clear to me. |
05:29.58 | [TK]D-Fender | As it said.. permissions issues... and You aren't showing any real details up front and I don't have time to wring them out. |
05:30.08 | dijib | 4 -rwxr-xr-x. 1 asterisk asterisk 1447 Oct 22 17:47 chk_vm_pwd.agi |
05:30.08 | [TK]D-Fender | I'm off... |
05:30.59 | p3nguin | How about the directory above that? |
05:31.20 | WIMPy | And what does the first line say? |
05:31.29 | p3nguin | I usually use namei to see the perms on the entire path. |
05:36.18 | SeRi | p3nguin, I wanted to mention that comcast did found an issue with port 5060 |
05:36.29 | p3nguin | They admit to blocking it? |
05:36.46 | SeRi | no. they politically chose there words |
05:36.57 | p3nguin | I figured. |
05:37.19 | p3nguin | "We have found an anomaly." |
05:37.36 | SeRi | Mr.Blah we have found a discrepancy in our configuration been used in your modem. we have addressed and we will credit your account accordingly. |
05:38.18 | p3nguin | Do they give you credit per day per port? |
05:38.38 | SeRi | nah they just credited me for 1 month. |
05:39.01 | p3nguin | If they are going to base it per port, divide whatever you think you should get by 65536. |
05:39.10 | SeRi | rofl! |
05:39.41 | *** join/#asterisk seanbright (~sean@asterisk/contributor-and-bug-marshal/seanbright) |
05:39.43 | p3nguin | That's what I'd do if I were Comcast. |
05:40.12 | p3nguin | I'd be the manager in charge of the people that are hired to piss off customers. |
05:40.12 | SeRi | lol |
05:40.15 | *** join/#asterisk kaushal (~kaushal@59.161.24.233) |
05:40.19 | kaushal | Hi |
05:40.46 | kaushal | asteriks uses only one core out of 8 cores on the server, any known issue ? |
05:41.15 | p3nguin | I'd train them with material taken from my own experiences. I rarely have a satisfactory transaction with any company. Ever. |
05:41.30 | SeRi | p3nguin, funny part is that they would not release any details. to this day I have yet to receive the managers call that was suppose to explain the issues to me. |
05:41.45 | p3nguin | Is the problem fixed? |
05:41.48 | SeRi | Yes |
05:41.55 | p3nguin | That's the important part. |
05:41.55 | SeRi | I am using port 5060 :) |
05:42.01 | SeRi | Yes sr it is. |
05:42.21 | p3nguin | Didn't you say you used to have phone service with Comcast? |
05:42.27 | SeRi | Yes. |
05:42.32 | p3nguin | That's why it was jacked up. |
05:42.43 | SeRi | Maybe but they claim the dont use sip |
05:42.46 | p3nguin | They never changed your config after you canceled the voice service. |
05:43.02 | SeRi | they use there own proprietary protocols an shit |
05:43.13 | p3nguin | I'd bet they don't. |
05:43.29 | *** join/#asterisk BuenGenio (~Gene@n058152141152.netvigator.com) |
05:43.30 | WIMPy | Or just an IAD eating everything that arrives on 5060? |
05:45.40 | p3nguin | If you look at the protocols that your voice-enabled DOCSIS modem supports, you'll probably find that it's nothing special and certainly nothing proprietary. |
05:46.21 | SeRi | I try and it does not mention anything |
05:46.31 | MDesade | im back ladies... |
05:46.42 | *** join/#asterisk lovetide (~LiuYan@222.125.132.191) |
05:46.43 | MDesade | whats the latest greatest? |
05:47.06 | p3nguin | Representatives of service providers are trained to lie to customers, and not trained in the actual field of services being provided. |
05:47.34 | SeRi | Thats true |
05:47.41 | p3nguin | Ask any cable company employee that you reach when you call about anything DOCSIS related, and they don't have a clue. |
05:47.44 | kaushal | WIMPy: hi |
05:49.16 | WIMPy | MDesade: Doing you mapping now? |
05:50.41 | SeRi | Voice over Internet Protocol (VoIP) is a technology used to transmit voice and related calls over a data network. Most VoIP service providers use the public Internet to transmit your calls. Comcast does not; we use this technology to transmit your calls over our advanced broadband network. |
05:50.46 | SeRi | That cracked me up |
05:51.06 | MDesade | i tried asteriskNOW, but did not install... doesn't support the LSI RAID card in that version of CentOS... so, i installed CentOS-6-64bit and am reading about the differences between CentOS and Kubuntu |
05:51.32 | WIMPy | SeRi: MAybe they use two IP networks. My provider even uses 4. |
05:51.41 | p3nguin | That statement is probably entirely accurate. |
05:52.13 | dijib | this took me ages |
05:52.13 | dijib | http://pastebin.com/nbWW0wMq |
05:52.18 | SeRi | p3nguin, it might be but if they ware using voip I am sure they are using standard protocols. |
05:52.41 | *** join/#asterisk FainaUkraina (~Gene@203.145.92.197) |
05:52.41 | p3nguin | They aren't doing it over public internet, they are doing it over their cable network, which is using RFC 1918 addressing. |
05:52.46 | SeRi | WIMPy, could be. I really dont care. I have my port back :) yay... |
05:53.04 | p3nguin | They are using VoIP, and I could almost guarantee you that they are using a standard protocol. |
05:53.41 | p3nguin | dijib: namei -l /var/lib/asterisk/agi-bin/chk_vm_pwd.agi |
05:54.03 | p3nguin | Or if you don't have -l, maybe you have -m and -o at least. |
05:54.07 | WIMPy | Yes, most of them use SIP. That's why their lines all suck big times. |
05:54.32 | SeRi | like you said the important thing is that it works. after some battle but it now works :P |
05:54.41 | p3nguin | example: http://pastebin.com/qMcjFzHb |
05:54.48 | dijib | http://pastebin.com/JPJRWWRJ |
05:54.56 | SeRi | comcast just wants to much money for there piece of crap service. |
05:55.19 | SeRi | I was paying 39.99 a month for there voip |
05:55.28 | SeRi | I am down to 8 dollars a month |
05:56.30 | p3nguin | Okay, so it shouldn't be a problem with the perms on the agi file. How about the perms on the interpreter? (That's found in the shebang in the agi script.) |
05:57.00 | p3nguin | $8 per month? For what?! |
05:57.04 | SeRi | http://maps.level3.com/default/ |
05:57.17 | SeRi | voipms |
05:57.51 | p3nguin | Oh, I thought you meant $8 per month for internet service from Comcrap. |
05:57.57 | SeRi | rofl |
05:57.59 | SeRi | hell no |
05:58.01 | SeRi | I wish! |
05:58.22 | dijib | http://pastebin.com/NFhp1rLT |
05:58.22 | p3nguin | I had no idea they'd even print out your bill for only $8. |
05:58.49 | p3nguin | Can asterisk execute /usr/bin/php? |
05:58.54 | dijib | no |
05:59.00 | p3nguin | That's a problem. |
05:59.02 | dijib | actually thats the problem |
05:59.18 | p3nguin | You forgot to install php? |
05:59.24 | dijib | should i install php or use the non php script |
05:59.42 | kaldemar | or just not use agi in the first place? |
05:59.43 | dijib | yum install php5 ? |
05:59.44 | p3nguin | If you can do it without php, do it without php. |
05:59.49 | dijib | ok |
06:00.10 | *** join/#asterisk Marquel (~Marquel@static.132.171.47.78.clients.your-server.de) |
06:00.18 | Marquel | morning. |
06:00.58 | dijib | other script |
06:00.59 | dijib | http://pastebin.com/wa6Y7JF3 |
06:01.15 | SeRi | p3nguin, lol. fam does not use the phone much. Just me for work and the office. most calls are inside voipms network so they are free :) |
06:01.49 | p3nguin | If you're going to use that one, don't forget to install perl. |
06:01.58 | Marquel | i have a little problem with asterisk-1.8.7.1: it tells me signalling=bri_net_ptmp is not implemented for chan_dahdi. but asterisk-1.8.6.0 does support this signalling mode. what's wrong with that? |
06:02.08 | dijib | which would you use perl or php? |
06:02.16 | p3nguin | But if you can do it without an AGI, do it without an AGI. See: kaldemar. |
06:02.55 | p3nguin | I'd choose no AGI first. Then I'd choose perl second. |
06:03.08 | p3nguin | Then python. Then php last. |
06:03.27 | dijib | ${CUT(AST_CONFIG(voicemail.conf,${CUT(SIPPEER(${CHANNEL(peername)},mailbox),@,2)},${CUT(SIPPEER(${CHANNEL(peername)},mailbox),@,1)}),",",3)} |
06:04.00 | dijib | he said SIPPEER was voicemail.conf ? |
06:04.29 | p3nguin | SIPPEER() can check certain values associated with your SIP peer. |
06:04.41 | p3nguin | In this case, mailbox is the value it is looking for. |
06:05.15 | p3nguin | It uses AST_CONFIG() to find the matching value in voicemail.conf. |
06:05.17 | dijib | so mailbox is ${CALLERID(num)} ? |
06:05.41 | p3nguin | Usually your mailbox number is going to be the same as your caller ID number which is usually the same as your extension number. |
06:05.44 | kaldemar | dijib: no, mailbox is what you have configured for a peer in sip.conf in the mailbox parameter. |
06:05.46 | p3nguin | But it really doesn't matter. |
06:05.54 | p3nguin | Because it is checking the mailbox setting for the peer. |
06:05.58 | p3nguin | Nothing to do with caller ID. |
06:06.06 | p3nguin | It is channel/peer based. |
06:06.47 | dijib | what if there is no peer? |
06:06.51 | p3nguin | There is. |
06:07.03 | p3nguin | Without a peer, there is no phone call. |
06:07.06 | dijib | its a call comming from itsp |
06:07.12 | p3nguin | The ITSP is a peer. |
06:07.29 | dijib | so peername = callerid(num) ? |
06:07.32 | dijib | no. |
06:07.34 | p3nguin | Not usually. |
06:07.48 | p3nguin | But I'm not sure what your ITSP has to do with your voicemail.conf. |
06:08.22 | dijib | ok nothing. i wanted the caller to enter their CID number. then use that to check against voicemail.conf's account |
06:08.25 | dijib | s |
06:08.44 | dijib | ext_num ext_psw |
06:08.47 | dijib | pwd |
06:08.48 | p3nguin | They are defining their own caller ID number to make a call? |
06:08.57 | dijib | yes |
06:08.57 | kaldemar | dijib: is the number entered by the caller also the mailbox name in voicemail.conf? |
06:09.07 | dijib | yes |
06:09.09 | kaldemar | dijib: what is the context for the mailboxes? |
06:09.30 | p3nguin | I'm interested to see where this goes. |
06:09.35 | dijib | 600 => 123,Hugo Chavez,chrismfinn@gmail.com |
06:09.38 | dijib | oi. |
06:09.41 | p3nguin | That's not a context. |
06:09.42 | dijib | sanitised. |
06:09.48 | dijib | oh default. |
06:10.13 | kaldemar | dijib: what variable are you using to read the caller-entered value? |
06:10.27 | dijib | ext_num |
06:10.38 | dijib | and ext_pwd for passcode |
06:11.12 | kaldemar | ${CUT(AST_CONFIG(voicemail.conf,default,${ext_num}),",",3)} gets you the e-mail address then. |
06:12.52 | dijib | ive got mutt getting the email from ${DB} |
06:13.03 | dijib | i need to authenticate users against voicemail.conf |
06:14.43 | kaldemar | heh, now i actually know what you're trying to do.. oh well, Authenticate(${CUT(AST_CONFIG(voicemail.conf,default,${ext_num}),",",1)}) |
06:15.09 | dijib | i guess i dont express myself very well |
06:16.22 | kaldemar | and the same thing is done by VMAuthenticate(${ext_num}) |
06:16.23 | kaldemar | guess so. |
06:16.24 | dijib | i just wanted someone to call in. use the dialplan set CID & authenticate at the same time. enter destination number, call out, record call and email the recorded file |
06:16.55 | dijib | im thinking of using your cut instead of the DB as i would need to add users in DB and if i use CUT i can just use voicemail.conf |
06:17.37 | kaldemar | or use VMAuthenticate. |
06:18.55 | *** join/#asterisk fisted (~fisted@unaffiliated/fisted) |
06:21.28 | Marquel | nobody? |
06:22.21 | WIMPy | Marquel: How old is your libpri? |
06:24.28 | irroot | SMH there plenty ref leaks in app_queue |
06:24.47 | Marquel | WIMPy: quite a bit - 1.4.12, no newer available from distribution. |
06:25.19 | WIMPy | Marquel: That's good enough. |
06:25.35 | WIMPy | Did you make Asterisk yourself? |
06:25.48 | Marquel | WIMPy: gentoo-linux, yes, compiling myself. |
06:26.36 | WIMPy | Then something must have gone wrong. Did you install that version of libpri before compiling Asterisk? |
06:27.32 | Marquel | yes. did not recompile/reinstall libpri since july 2011, yet asterisk 1.8.7.1 does not support bri_net_ptmp, 1.8.6.0 does. |
06:29.21 | WIMPy | Ah, so you already had it working. NFI then. Maybe some hickup in the current version? |
06:29.30 | Marquel | asterisk's configuration shows libpri as usable. |
06:29.37 | Marquel | dunno, that's why i ask. |
06:29.53 | Marquel | i'm about to file a bug with my distribution. |
06:30.44 | Marquel | (i can at probably will also email my hardware vendor about it, maybe they do have an idea) |
06:30.49 | Marquel | s/at/and/ |
06:31.06 | WIMPy | BTW.. irroot: Did you put your chan_lcr patch online somewhere whe I can link to it? |
06:31.52 | WIMPy | where |
06:37.20 | Marquel | WIMPy: so, bug filed, now goes teh email to teh hardware vendor... |
06:38.02 | WIMPy | Just out of interest: What hardware are you using? |
06:38.44 | Marquel | WIMPy: a junghanns.net duoBRI PCIe dual-channel isdn adapter. |
06:39.39 | WIMPy | Interesting to often see duo bris in use. |
06:40.00 | Marquel | ;) |
06:40.04 | WIMPy | No space for two cards? |
06:40.10 | Marquel | WIMPy: no. |
06:40.56 | Marquel | the mainboard of that box has exactly one PCIe slot (last one of those) and i do not intend to buy (expensive) cards which i can not use with the next mainboard. |
06:41.19 | WIMPy | USB :-) |
06:41.23 | Marquel | and why two cards when one of them can perfectly handle inside ISDN and outside ISDN? |
06:41.28 | Marquel | erm... no. |
06:42.16 | WIMPy | I've never been a fan of USB, either, but it seems to work. |
06:42.55 | Marquel | whatever can hide inside the box and be run fully on the box's powersupply does exactly that. i do not intend to clatter up my power consumption with inefficient supplies of some crappy usb-hardware or - also likely - consume all my USB-ports with just one energy-hungry appliance. |
06:44.02 | WIMPy | Err, you only need one usb port per port. No exta PSU, unless you need to power phones, but that's true for internal cards as well. |
06:44.58 | WIMPy | But it would still be an interesting idea to maybe use two usb ports, like external HDDs do, and a step-up converter to supply power to a phone. |
06:45.04 | Marquel | you are right with that ;) |
06:45.14 | Marquel | you can't. |
06:45.30 | WIMPy | Why? |
06:46.06 | Marquel | IIRC ISDN specifies 70 volts phantom power and not few amperes to do so. i like to see how you manage to do that with 500mA of 5V from USB ;) |
06:46.52 | WIMPy | 2.5W. That's quite a lot. |
06:47.19 | Marquel | enough for one or two ISDN phones. not more. |
06:47.53 | WIMPy | Do you think you want to connect more than two phones to one USB adapter? |
06:48.32 | Marquel | it doesn't make much sense given that one phone can congest one of them by using both B-channels. |
06:49.50 | Marquel | but ISDN specifies up to twelve phones on one S0-bus, and power-specs tell they should be all powered by that bus, if the bus is powered. ;) |
06:50.05 | WIMPy | You shouldn't use more than one channel per phone, no matter how many calls you have. |
06:50.30 | WIMPy | No, only 8 phones. |
06:50.36 | WIMPy | 12 sockets. |
06:50.45 | Marquel | still too much for 2.5W ;) |
06:51.17 | WIMPy | Maybe out of spec but should be good enough in practice. |
06:52.38 | Marquel | but then, if you need a powered S0 - why not ask your provider for a set of NTSBs, configure them to be bus-slaves and hook them to the s0-bus and power-supply? ;) |
06:53.25 | WIMPy | That's the usual way of doing it, but if you did it from USB you could be mobile. |
06:54.29 | *** join/#asterisk oej (~olle@ANice-257-1-31-202.w90-52.abo.wanadoo.fr) |
06:54.39 | WIMPy | It's just for fun anyway. |
06:54.46 | Marquel | mobile in "put my laptop with *, the usb-isdn-adapter and my isdn-phone in the hotel room, set up internet and vpn and use the isdn phone "from home" instead of paying hotel rates"? ;) |
06:55.17 | WIMPy | Somethin like that :-0 |
06:55.18 | WIMPy | ) |
06:56.07 | Marquel | well. i tend to just bring my headset and my laptop had a sip-softphone installed... somewhat less equipment. ;) |
06:56.46 | WIMPy | Good enough for your garden shed. |
06:57.36 | Marquel | but then a friend of mine once came up with the idea of "hacking" one of the old analog phones with a number dialing wheel: apply a cell phone to the phone, have pulses converted to dial commands and a battery powerful enough to ring the electro-mechanical bell on incoming calls. |
06:58.15 | Marquel | would be quite a show if that thing rings in public transport and you have to actually pickup a receiver connected to the phone with a cord. ;) |
06:58.49 | WIMPy | That actually makes sense, as you would be allowed to use that while driving. |
06:59.02 | WIMPy | But any commecrial GSM gateway would do that. |
06:59.40 | Marquel | yeah, but can you cramp a commercial gsm-gateway into those classical phones, along with such a large battery? |
07:00.11 | Marquel | but guess how it'd look like if you decide to dial a number with that thing... ;) |
07:00.31 | WIMPy | You can get both analog and ISDN to GSM gateways. And cars have lots of power. |
07:00.59 | *** join/#asterisk The_REV (~The_REV@c-76-21-1-80.hsd1.ca.comcast.net) |
07:19.31 | *** join/#asterisk oej (~olle@ANice-257-1-31-202.w90-52.abo.wanadoo.fr) |