00:00.24 | *** join/#asterisk frek818 (~frek818@ma92736d0.tmodns.net) |
00:02.29 | *** join/#asterisk s7r (~s7r@openvpn/user/s7r) |
00:02.54 | *** join/#asterisk hfor (~hforjehik@gateway/tor-sasl/hforjehikiasq6n2) |
00:28.11 | *** join/#asterisk spditner (~simon@104-222-122-138.cpe.teksavvy.com) |
00:28.30 | *** join/#asterisk bkruse (~Adium@24.42.207.11) |
00:55.16 | *** join/#asterisk goseeped (~goseeped@190.207.75.74) |
00:56.43 | goseeped | hi , Guys has anyone try video on webrtc using pjsip sip stack on asterisk 13 ? |
00:58.17 | goseeped | VP8 codec is supported over web sockets , i know since asterisk 12 asterisk support VP8 passthr... but not work for me ! |
01:00.52 | *** join/#asterisk fstd (~fstd@unaffiliated/fisted) |
01:04.59 | cyford | wow u on the cutting edge lol |
01:10.33 | *** join/#asterisk saint_ (~saint@c-71-59-68-185.hsd1.nj.comcast.net) |
01:19.14 | *** join/#asterisk hfp_ (~hfp@65.93.185.195) |
01:21.05 | *** join/#asterisk Vutral (~ss@mirbsd/special/Vutral) |
01:23.49 | *** join/#asterisk puzzled (~patrick@puzzled.xs4all.nl) |
01:26.33 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
01:30.55 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
01:33.51 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
01:38.45 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
01:40.04 | *** join/#asterisk Ionic (~ionic@home.ionic.de) |
01:40.38 | Ionic | hi, does anyone know a maintained external (i.e., not distributed with asterisk) channel? |
01:48.47 | *** join/#asterisk linuxfool (~james@DHCP-149-252.resnet.ua.edu) |
01:49.36 | *** join/#asterisk LiuYan (~hola@unaffiliated/liuyan) |
01:53.19 | *** join/#asterisk ewheeler (~ewheeler@c-24-20-122-25.hsd1.or.comcast.net) |
01:53.22 | ewheeler | g'day all. |
01:54.24 | ewheeler | at the top of a context I want to inject a NoOp(foo) but without affecting the rest of the call flow. How do I do this? I tried s,n,NoOp() but it wont hit. |
01:54.58 | goseeped | cyford : no it is just i want to run video ! i had already done this with asterisk 11 but with asterisk 13 it is difficult seems like asterisk is not managing well VP8 streams ! |
01:58.02 | goseeped | ewheeler: if you want that at the top of the context you should have to put : exten => s,1,NoOp("what ever you want") ; if you only need to bridge the channel that could work ! |
01:59.03 | goseeped | if you need make a playback or something like that firts you need to answer the channel ! |
01:59.05 | ewheeler | goseeped, but what if something else is included below me? Wont I take over the call path, or will it also run the next s,1,foo that would shoe up from an include => |
01:59.57 | ewheeler | goseeped, no answer needs. Just noop for debuging. Basically I have an existing dialplan with calls a bunch of includes, and I want to noop at the top so I know when it is called without affecting the rest of the follow through. |
02:03.07 | *** join/#asterisk sruffell (~sruffell@asterisk/the-kernel-guy/sruffell) |
02:03.07 | *** mode/#asterisk [+o sruffell] by ChanServ |
02:04.21 | goseeped | yes , you could do something like this [local] \n include=> long-distance \n exten=> 100,1,Noop() \n exten=> 100,n,something()... \n exten=> 100,n,Goto(longdistance,200,1) \n\n |
02:05.39 | goseeped | ewheeler : [longdistance] \n exten=> 200,1,Noop() \n exten=> 200,1,something() ... |
02:05.58 | goseeped | ewheeler : [longdistance] \n exten=> 200,1,Noop() \n exten=> 200,n,something() ... |
02:08.06 | ewheeler | yes but what I want is [longdistance]\n exten => _.!,1,NoOp()\ninclude => whatever |
02:08.26 | ewheeler | so the noop always happens without modifying other contexts. |
02:08.40 | ewheeler | but of course _.! always matches and takes over. |
02:08.57 | Ionic | why would you need to modify other contexts if you did it like this? |
02:09.36 | ewheeler | ok, so I have [a]\n include => b\n include => c |
02:09.55 | Ionic | hm, wait, including contexts is bad, yes |
02:10.01 | ewheeler | and I want to have [a] exten => ?,?,noop(foo) \n include => b, include =>c |
02:10.04 | Ionic | but jumping via goto should work okay |
02:10.07 | ewheeler | b and c are already there. |
02:10.15 | ewheeler | I want to add the noop that always triggers under [a] |
02:10.25 | ewheeler | what are the '?' values that I should use to hook that? |
02:11.22 | Ionic | the problem here is that include copies the content of the other contexts into the current context |
02:11.55 | Ionic | I wonder if you could just *call* the other contexts instead? |
02:11.58 | goseeped | if you make include , and include and include ...asterisk you try to lookup for each context for a match ! you could jump between context with Goto and not necesary need an include ! |
02:12.21 | Ionic | (*call* as in use goto, like goseeped mentioned) |
02:12.49 | Ionic | that would eliminate your problem |
02:12.51 | ewheeler | Ionic, so something like _.!,1,noop() \n _.!,n,Goto(...) ? |
02:13.01 | ewheeler | and use the gotos instead of the include? |
02:13.09 | Ionic | ewheeler: exactly |
02:13.29 | ewheeler | that works. then I don't need to worry about whatever is in the gotos. |
02:13.37 | Ionic | yeah |
02:13.38 | ewheeler | (includes, that is) |
02:13.49 | Ionic | in the other contexts, to be precise |
02:13.55 | ewheeler | yep |
02:14.18 | Ionic | but make sure it actually works |
02:14.32 | ewheeler | indeed. I don't want a 6am call tomorrow :) |
02:15.19 | Ionic | I mean, it should work, but make sure it actually works-works :p |
02:15.24 | Ionic | you'll get the idea |
02:17.05 | Ionic | "does something" vs. "does the correct/intended thing" |
02:23.57 | ewheeler | It seems to work. Whats the best (most exact) goto to replicate the state? Goto(newcontext, ${EXTEN}, ?) |
02:24.00 | ewheeler | how do I set the priority? |
02:24.22 | ewheeler | to keep it as it was |
02:24.42 | ewheeler | (probably 1, but how can I know for sure? Is there a ${PRIO} ?) |
02:25.31 | ewheeler | ahh, ${PRIORITY} |
02:27.13 | ewheeler | hmm, but I think I want 1. |
02:27.24 | ewheeler | my goto shows up on line 2. |
02:27.35 | Ionic | or just omit it? |
02:28.50 | Ionic | not sure that actually works, though |
02:28.55 | ewheeler | nope. it wants it. see the goto defnintion. |
02:28.59 | ewheeler | Goto([[context|]extension|]priority) |
02:29.10 | ewheeler | funny way of defaulting, I think its historical |
02:29.42 | Ionic | ${PRIORITY} sounds good, though |
02:30.02 | ewheeler | yes, but my goto is on line2, and I'm pretty sure I enter the context on 1, so I better hardcode it as 1. |
02:30.05 | ewheeler | prio was getting 2 |
02:30.49 | Ionic | note that the call will end when the next priority is not found |
02:31.29 | Ionic | like, specifying 1, 2, 4 in order will terminate the call after executing the statement with priority 2 |
02:32.03 | ewheeler | thank for your help. I'll test tomorrow for real but it looks good. |
02:32.05 | ewheeler | Ionic++ |
02:39.49 | cyford | i use something like this |
02:40.29 | cyford | exten => _300X,29,Set(codecs=${SIPPEER(${EXTEN},codecs)}) |
02:40.29 | cyford | exten => _300X,n,GotoIf($["${codecs}" = ""]?31:100) |
02:40.29 | cyford | exten => _300X,31,Set(codecs=${PJSIP_ENDPOINT(${EXTEN},allow)}) |
02:40.29 | cyford | exten => _300X,n,GotoIf($["${codecs}" = ""]?40:200) |
02:40.29 | cyford | exten => _300X,40,Set(codecs=${SIPPEER(${EXTEN},codecs)}) |
02:40.30 | cyford | exten => _300X,n,GotoIf($["${codecs}" = ""]?50:300) |
02:40.30 | cyford | exten => _300X,50,NoOp(** Unable to determin channel type ${EXTEN} not available **) |
02:40.31 | cyford | exten => _300X,n,Goto(${EXTEN},exit) |
02:47.38 | Ionic | I'd better go to bed, it's late enough |
02:47.48 | cyford | in this example line 30 will go too line 31 if variable is null , otherwise it will go to line 100 |
02:47.56 | cyford | ok, gn |
02:50.33 | *** join/#asterisk jasonwert (~jasonwert@71.89.137.28) |
02:51.36 | Ionic | be careful with "line" |
02:51.49 | Ionic | it's really the priority, not the "line" |
02:55.53 | Ionic | ewheeler: which also makes sense for you. given you want to start at the beginning of a context, goto will need priority 1, yep |
02:57.44 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
02:58.44 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
03:00.56 | ChannelZ | and please use pastebins |
03:00.59 | ChannelZ | ~pb |
03:00.59 | infobot | A "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://www.pastebin.com, http://pastebin.ca, http://channels.debian.net/paste, http://paste.lisp.org, http://bin.cakephp.org/; or install pastebinit with yum or aptitude. |
03:04.37 | *** join/#asterisk bkruse (~Adium@64.89.97.113) |
03:08.04 | ChannelZ | Well poop. Hover is dead. Where my DNS is. |
03:23.26 | *** join/#asterisk superscrat (~asanders@173-17-133-2.client.mchsi.com) |
03:29.03 | *** join/#asterisk darkbasic (~quassel@niko.linuxsystems.it) |
03:33.51 | *** join/#asterisk CeBe1 (~CeBe@port-92-200-116-216.dynamic.qsc.de) |
03:57.33 | *** join/#asterisk dmoke (~moke@unaffiliated/moke) |
04:00.44 | *** join/#asterisk FreezingCold (~FreezingC@135.0.41.14) |
04:22.00 | [TK]D-Fender | cyford, That's redundent, missing a bunch of priorities, and should be using labels. |
04:26.04 | cyford | what ya talkin about tk |
04:27.12 | [TK]D-Fender | 29 & 40 = exact same thing |
04:27.26 | [TK]D-Fender | as well as the comparison you're doing after them |
04:27.35 | [TK]D-Fender | By even GETTING there you already know it's blank |
04:27.38 | [TK]D-Fender | so those are pointless |
04:28.21 | [TK]D-Fender | And you shouldn't be using numbered priorities like that |
04:28.54 | [TK]D-Fender | And we don't see what you've got in 100,200,300 |
04:29.10 | cyford | opps, 40 is suppose to be iax.. havent got tht far yet.. exten => _300X,40,Set(codecs=${IAXPEER(${EXTEN},codecs)}) |
04:29.12 | [TK]D-Fender | I'm doubting half of that code is needed either |
04:29.42 | cyford | its all relivent an working except iax |
04:30.09 | cyford | well thewre is some commeted out for testing |
04:30.22 | [TK]D-Fender | It may get you there... but I'm betting highly redundent |
04:30.24 | cyford | some for dubugging |
04:31.04 | [TK]D-Fender | Should be less than half that size |
04:31.07 | cyford | well i asked before for the best way,, an i took an ran with the option u gave |
04:31.40 | cyford | and it worked, just took alot more lines then i wanted |
04:32.08 | [TK]D-Fender | Yes, I told you to use those functions... its the code you wrapped around them that's in need of a real cleanup |
04:32.54 | cyford | will to test sip takes 2 lines per ur example, as any other protical right |
04:33.06 | cyford | *Well |
04:33.29 | cyford | exten => _300X,29,Set(codecs=${SIPPEER(${EXTEN},codecs)}) |
04:33.29 | cyford | exten => _300X,n,GotoIf($["${codecs}" = ""]?31:100) |
04:34.02 | [TK]D-Fender | 50% waste right there |
04:34.09 | cyford | i was going to use IP but PJSIP_ENDPOINT didnt have a ip note |
04:34.27 | [TK]D-Fender | Specifying 31 is pointless as well. |
04:35.21 | cyford | that is not 50% lol |
04:35.27 | cyford | be nice tk |
04:35.39 | cyford | <PROTECTED> |
04:36.04 | cyford | <PROTECTED> |
04:36.05 | Penguin | A lot of people who are not good at writing dialplan post things to the internet. |
04:36.46 | cyford | in this case if not null go to 100 |
04:37.10 | cyford | i didnt know the not null sign to switch it |
04:37.13 | Penguin | Then use EXISTS() or IFNULL() |
04:37.36 | [TK]D-Fender | You're setting a variable AT ALL. |
04:37.43 | [TK]D-Fender | That's 3 lines of waste |
04:38.09 | cyford | i would love to see an example to simplify it |
04:38.31 | [TK]D-Fender | cyford, Use the function IN your GotoIf |
04:38.36 | [TK]D-Fender | this is the basics.... |
04:38.43 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
04:38.44 | Penguin | It looks like you'll set the variable non-conditionally. |
04:38.59 | Penguin | So the GotoIf() will always be false. |
04:39.16 | cyford | no |
04:39.28 | Penguin | Your Set() is not a conditional one. |
04:39.30 | [TK]D-Fender | Penguin, goal is to check if it returns something. |
04:39.43 | Penguin | EXISTS() or IFNULL() |
04:39.47 | *** join/#asterisk timahvo1 (~rogue@mail.cickenya.com) |
04:39.47 | cyford | if null go next line |
04:39.49 | [TK]D-Fender | Penguin, Set then check. Instead of checking direct and not wasting time with a set |
04:40.02 | cyford | if not null go to pririty X |
04:40.42 | [TK]D-Fender | cyford, You still don't need the Set()'s. check the function direct |
04:40.57 | Penguin | Your Set() is not conditional. You don't need to check if after you explicitly set it. |
04:41.23 | [TK]D-Fender | And you don't need the 31,40,50 |
04:41.25 | cyford | before i had it easy, but that finction only got caller channel. so this was my first attempt to get callie tech |
04:41.52 | Penguin | IFNULL(${SIPPEER(${EXTEN},codecs)}) |
04:42.01 | cyford | it works but ofc i dont know the most optimized way |
04:42.02 | Penguin | or EXISTS(${SIPPEER(${EXTEN},codecs)}) |
04:42.03 | [TK]D-Fender | <cyford> before i had it easy, but that finction only got caller channel. so this was my first attempt to get callie tech <- what function are you talking about? |
04:42.33 | [TK]D-Fender | cyford, We didn't just bring up one you shouldn't be using |
04:42.57 | cyford | no before tk |
04:43.02 | cyford | not now |
04:43.17 | [TK]D-Fender | we aren't talking about that |
04:43.33 | [TK]D-Fender | And you aren't giving any detail for anyone to have a clue what you're talking about. That's rambling :) |
04:43.46 | [TK]D-Fender | And was concerning stuff you did that also didn't work :) |
04:43.51 | cyford | before i was using exten => _300X,n,Set(ChannelType=${CHANNEL:0:3}) |
04:44.03 | [TK]D-Fender | Let's leave the past out of this and fix your current mess :) |
04:44.08 | [TK]D-Fender | I know what you had |
04:44.12 | [TK]D-Fender | let's move past that. |
04:44.56 | cyford | ok, but if u keeo making me guess the best way it will take a while |
04:45.01 | cyford | show me pls |
04:45.22 | [TK]D-Fender | <[TK]D-Fender> cyford, Use the function IN your GotoIf |
04:45.48 | cyford | gotoif is a function right |
04:45.53 | Penguin | no |
04:45.56 | [TK]D-Fender | No, it is an APPLICATION |
04:46.05 | cyford | ur right |
04:47.17 | cyford | ur saying combine gotoif and set... but i dont know how to do that |
04:47.27 | [TK]D-Fender | No. |
04:47.28 | Penguin | no |
04:47.31 | Penguin | No Set(). |
04:47.37 | [TK]D-Fender | DITCH THAT |
04:47.41 | [TK]D-Fender | Use the4 function DIRECTLY |
04:47.48 | [TK]D-Fender | TEST the function DIRECTLY |
04:47.50 | Penguin | I showed you how to check if it exists and how to check if it is null. |
04:47.56 | Penguin | Put that into your GotoIf(). |
04:48.09 | [TK]D-Fender | Penguin, That's minor syntax gravy and technically requires more chars :) |
04:48.34 | [TK]D-Fender | Penguin, But looks better to Boolean Nazi's :)\ |
04:48.35 | Penguin | What you're saying is that he'll never figure it out if not fed by spoon. |
04:48.53 | [TK]D-Fender | cyford, Put the function DIRECTLY in place of your variable |
04:49.17 | cyford | exten => _300X,n,GotoIf($["SIPPEER(${EXTEN},codecs)" = ""]?31:100) |
04:49.28 | [TK]D-Fender | cyford, Missing the REFERENCING of it |
04:49.34 | [TK]D-Fender | cyford, getting warmer though |
04:49.52 | Penguin | If you use ISNULL() you don't have to compare it to a null value! |
04:50.03 | [TK]D-Fender | When you are GETTING a function it needs something extra .... something you DID on the other line before... |
04:50.41 | Penguin | hears the spoon approaching |
04:51.21 | cyford | exten => _300X,n,GotoIf($["codecs=${SIPPEER(${EXTEN},codecs)}" = ""]?31:100) |
04:51.33 | [TK]D-Fender | no |
04:51.35 | cyford | lol |
04:51.46 | [TK]D-Fender | sYou are not setting some stupid variable .. |
04:51.54 | [TK]D-Fender | You are COMPARING THE FUNCTION to "" |
04:51.58 | cyford | i didnt think so |
04:52.43 | [TK]D-Fender | exten => _300X,n,GotoIf($["${SIPPEER(${EXTEN},codecs)}" = ""]?:100) |
04:52.49 | Penguin | You don't need to compare it to anything. |
04:52.50 | [TK]D-Fender | \To save you the next 5 mistakes |
04:53.02 | Penguin | If you're comparing it, you aren't using the right function. |
04:53.13 | [TK]D-Fender | Penguin, Let him at least also get an expression right! :) |
04:53.37 | [TK]D-Fender | Penguin, You mean not using one MORE function. |
04:53.44 | [TK]D-Fender | Penguin, yours is optional |
04:54.04 | cyford | Penguin whats your example |
04:54.10 | Penguin | scroll up |
04:55.08 | cyford | i never used snull in my life, , can i see an example pls |
04:55.18 | [TK]D-Fender | that IS a sample |
04:55.31 | [TK]D-Fender | it returns 0 or 1 |
04:55.38 | *** join/#asterisk ShapeShifter499 (~Raansu@unaffiliated/shapeshifter499) |
04:55.42 | [TK]D-Fender | Which you'd see if you read the instructions |
04:56.02 | cyford | what insctructions |
04:56.05 | [TK]D-Fender | ... |
04:56.19 | [TK]D-Fender | "core show function FUNCTIONNAME" |
04:56.25 | cyford | <- confused |
04:57.17 | Penguin | Since the standard is "core show function FUNCTIONNUME", if you wanted to see instructions for ISNULL, you'd run "core show function ISNULL". How confusing is that really? |
04:57.38 | Penguin | s/NU/NA/ |
04:57.55 | cyford | thats not confusing |
04:58.12 | cyford | unleass it doesnt tell me how to use it in dial plan |
04:59.04 | Penguin | Functions are always treated the same was as referencing a variable. |
04:59.11 | cyford | ok it tell me what it does, but call me stupid i usually learn by seein an excamle |
04:59.14 | [TK]D-Fender | ${FUNCTION()} <- that's hwo you REFERENCE a function. |
04:59.29 | Penguin | ${ISNULL(stuff to check for goes here)} |
04:59.35 | [TK]D-Fender | Set(FUNCTION()=blah) <- that's how you SET a function. |
04:59.58 | [TK]D-Fender | You were using functions with no apparent clue how they work |
04:59.59 | *** join/#asterisk Hobbes` (~calvin@2001:4b98:dc0:47:216:3eff:fe18:5d33) |
05:01.14 | Hobbes` | anyone know how to "reset" a huwaei dongle? ttyUSB2 shows RSSI info but ttyUSB0 doesn't respond. |
05:02.13 | Hobbes` | I've tried unbinding/binding the usb device.. it's still in the same state |
05:02.56 | cyford | ${ISNULL(${SIPPEER(${EXTEN},codecs)})} |
05:03.18 | Penguin | Now put that inside your GotoIf(). |
05:03.55 | Penguin | If ${SIPPEER(${EXTEN},codecs)} is a null value, it will return TRUE. |
05:04.01 | Penguin | or 1 |
05:04.26 | cyford | exten => _300X,n,GotoIf($["${ISNULL(${SIPPEER(${EXTEN},codecs)})}" = ""]?31:100) |
05:04.35 | Penguin | no |
05:04.39 | [TK]D-Fender | cyford, No need for an expression anymore... |
05:04.48 | Penguin | No quotes, no comparison to another string. |
05:05.01 | Penguin | The ISNULL() does all the work. |
05:05.07 | cyford | exten => _300X,n,GotoIf($[${ISNULL(${SIPPEER(${EXTEN},codecs)})}]?31:100) |
05:05.18 | [TK]D-Fender | cyford, NO EXPRESSION. |
05:05.47 | cyford | ok u got me, whats an expression |
05:05.50 | [TK]D-Fender | $[] <------------- |
05:06.03 | [TK]D-Fender | You need some serious sit-down time with the book. |
05:06.10 | [TK]D-Fender | You don't ahve any of your basics |
05:06.12 | Penguin | While it won't have any adverse effect, it's probably not needed. |
05:06.24 | cyford | exten => _300X,n,GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?31:100) |
05:06.26 | [TK]D-Fender | Penguin, Not sure what happens when there's no operator |
05:06.42 | [TK]D-Fender | cyford, Now ditch the 31 |
05:06.56 | Penguin | If the tested value inside the ISNULL function is null, it returns a 1. |
05:07.29 | Penguin | Do you want to jump to 100 if that SIPPEER thing is actually null? |
05:07.42 | cyford | ok, but this seems like prorammin shit an not basic dial plan lol |
05:07.50 | Penguin | It's very basic dial plan. |
05:07.54 | cyford | programming* |
05:08.08 | Penguin | Oddly, writing dialplan is a form of programming. |
05:08.33 | Penguin | So do you want to go to 100 or 31 if it is null? |
05:09.19 | cyford | if codec is null 31 |
05:09.29 | cyford | <PROTECTED> |
05:09.34 | Penguin | If it exists, you want to go to 100? |
05:09.39 | cyford | channels |
05:09.45 | Penguin | GotoIf(${EXISTS(${SIPPEER(${EXTEN},codecs)})}?100) |
05:09.56 | Penguin | GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:100) |
05:10.00 | [TK]D-Fender | that works to in the reverse sence |
05:10.33 | [TK]D-Fender | Technically EXISTS is the forward-logic method for this so you don't deal with an ELSE |
05:10.45 | [TK]D-Fender | And saves that valuable byte |
05:11.02 | cyford | nice |
05:11.31 | [TK]D-Fender | <PROTECTED> |
05:11.32 | cyford | i hardly think i can duplicate this. but i can defifinitly use i |
05:11.34 | cyford | it |
05:12.06 | Penguin | Yeah, you should consider labels instead of numbers. |
05:12.07 | [TK]D-Fender | <[TK]D-Fender> exten => _300X,n,GotoIf($["${SIPPEER(${EXTEN},codecs)}" = ""]?:100) |
05:12.10 | cyford | i dont get the number tk what ya mean |
05:12.26 | cyford | aww i see |
05:12.32 | Penguin | GotoIf(${EXISTS(${SIPPEER(${EXTEN},codecs)})}?labelIfTrue) |
05:12.38 | Penguin | GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:labelIfFalse) |
05:12.44 | [TK]D-Fender | that would have done for the TINY leap of shoving the function reference right in there instead of setting apointless variable just to test that in its place |
05:13.26 | [TK]D-Fender | You don't HAVE to have a TRUE target if you just want to jump on FALSE. |
05:13.46 | Penguin | as seen in my two separate examples |
05:14.32 | cyford | oic if true it should go next line and test something else. i suppose in ya method it is automatic right |
05:15.00 | [TK]D-Fender | yes |
05:15.07 | [TK]D-Fender | Go nowhere. Continue |
05:22.27 | cyford | YAT it worked |
05:25.34 | [TK]D-Fender | That's Round 1 of logic |
05:25.56 | cyford | spoke to soon, next line doesnt work |
05:26.17 | cyford | didnt go to line 31 |
05:26.26 | cyford | if faulse |
05:26.30 | [TK]D-Fender | the next is using ExecIf instead so that with 3 lines of dialplan you exit with the resulting channeltype in a variable ready to use and NOT jumping at all |
05:26.34 | cyford | i mean if true |
05:27.02 | [TK]D-Fender | show us |
05:30.38 | cyford | ohh nvm it worked before, i forgot change priority after copying line |
05:35.17 | cyford | exten => _300X,29,GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:100) |
05:35.18 | cyford | exten => _300X,30,GotoIf(${ISNULL(${PJSIP_ENDPOINT(${EXTEN},allow)})}?:200) |
05:35.18 | cyford | exten => _300X,31,GotoIf(${ISNULL(${IAXPEER(${EXTEN},codecs)})}?:300) |
05:36.16 | cyford | yes that did cut down 50% |
05:36.21 | cyford | thanks |
05:37.25 | [TK]D-Fender | <[TK]D-Fender> the next is using ExecIf instead so that with 3 lines of dialplan you exit with the resulting channeltype in a variable ready to use and NOT jumping at all |
05:37.37 | [TK]D-Fender | I can cut the NEXT 50% just the same |
05:38.47 | [TK]D-Fender | And that was a start of 8 line you had. So the first round knocked off 5. |
05:39.11 | [TK]D-Fender | And that's without the supporting targets of your GotoIF's |
05:43.26 | cyford | im clueless without examples, but ill go on a limb and say u mean something like this exten => _300X,30,GotoIf(${ExecIf(${PJSIP_ENDPOINT(${EXTEN},allow)})}?:200) |
05:43.53 | cyford | ohh nvm |
05:44.04 | cyford | <PROTECTED> |
05:44.53 | cyford | exten => _300X,30,ExecIf(${ISNULL(${PJSIP_ENDPOINT(${EXTEN},allow)})}?:200) |
05:45.44 | [TK]D-Fender | Have you vaguely consindered reading the instructions for these things before inventing syntax out of thin air? |
05:47.52 | cyford | i have read many things,. |
05:47.59 | cyford | <PROTECTED> |
05:48.13 | cyford | <PROTECTED> |
05:48.42 | cyford | asterisk has pages, and most sufe i read and dont know how i can use |
05:48.50 | [TK]D-Fender | But you decided to just cut & paste it into the other code your were spoonfed. You're even cheating the learning process when stuff is handed to you... |
05:48.54 | cyford | most stuf* |
05:49.23 | cyford | wel it seemded logical there |
05:49.40 | [TK]D-Fender | Based on what? What do yout think it means? |
05:50.01 | cyford | <PROTECTED> |
05:50.14 | [TK]D-Fender | How does what you're giving it make it anything different than a Gotoif? |
05:51.51 | cyford | if u give me a seed i can grow a tree, maybe not the tree that i would be able to do if given guidance |
05:52.29 | cyford | ill research it now |
05:52.37 | [TK]D-Fender | You still haven't leard to use CLI to read the INSTRUCTIONS for these applications & functions you're using. |
05:53.37 | cyford | yeah cli always gave me info from something, and not the actial dialplan structure or excample |
05:54.29 | [TK]D-Fender | If gives you the exact structure |
05:55.06 | cyford | ohh i een going to https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_PJSIP_ENDPOINT |
05:55.14 | [TK]D-Fender | Do you need for gotoif to tell you "500" for the target? How does it know you have a 500? |
05:55.45 | cyford | becuase i made a 500 |
05:56.09 | cyford | exten => _300X,500,Set(location=${DB(SIP/Registry/${EXTEN})}) |
05:56.22 | cyford | example |
05:56.29 | [TK]D-Fender | But you didn't need a sample with 500 in there |
05:56.36 | [TK]D-Fender | It said to put a priority or label there |
05:56.56 | [TK]D-Fender | It says what each parameter and piece yopu pass it is supposed to be |
05:57.01 | cyford | yeah i did lables in some examples |
05:57.29 | cyford | exten => _300X,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail) |
05:58.27 | cyford | in this senerieo i have sip 100 pjsip 200 and iax 300 |
05:58.32 | [TK]D-Fender | well go read the instructions for this new app. You made a cray assumption that you pass it the same thing as GotoIf... and somehow it acts differently on that exact same information. |
05:59.15 | cyford | ok, thanks bro for tonights lesson |
05:59.34 | cyford | tommorow, i will have something that would surprise ya |
05:59.39 | cyford | :) |
06:59.06 | *** join/#asterisk riess82 (~riessma@mail.p-riess.at) |
07:03.39 | *** join/#asterisk smrdoshi (~samir@182.70.116.47) |
07:03.45 | *** part/#asterisk smrdoshi (~samir@182.70.116.47) |
07:13.05 | *** join/#asterisk jhlavacek (~jirka@84.19.95.180) |
07:18.57 | *** join/#asterisk sekil (~Ognjen@78.24.104.82) |
07:23.36 | *** join/#asterisk bulkorok (~Benjamin@85.183.61.47) |
07:41.37 | *** join/#asterisk gerhard7 (~gerhard7@77-172-82-111.ip.telfort.nl) |
07:48.01 | *** join/#asterisk Marquel (~Marquel@fuchsfanclub/allerdings/marquel) |
07:48.58 | *** join/#asterisk D-Boy (~D-Boy@unaffiliated/cain) |
07:54.03 | *** join/#asterisk timahvo1 (~rogue@mail.cickenya.com) |
08:07.48 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
08:10.25 | *** join/#asterisk evil_gordita (~evilgordi@ip70-188-56-139.rn.hr.cox.net) |
08:10.53 | *** join/#asterisk jhlavacek (~jirka@84.19.95.180) |
08:12.15 | *** join/#asterisk smrdoshi (~samir@182.70.116.47) |
08:12.34 | *** part/#asterisk smrdoshi (~samir@182.70.116.47) |
08:19.35 | *** join/#asterisk tzafrir (~tzafrir@local.xorcom.com) |
08:23.43 | *** join/#asterisk timahvo1 (~rogue@mail.cickenya.com) |
08:34.04 | *** join/#asterisk tparcina (~tomo@212.92.200.41) |
08:41.42 | *** join/#asterisk hehol (~hehol@2001:1438:1009:200:8ce0:5e91:f2c6:8b02) |
08:55.33 | *** join/#asterisk areski (~areski@80.174.128.116.dyn.user.ono.com) |
09:02.37 | *** join/#asterisk MaliutaLap (nikolai@unaffiliated/maliuta) |
09:13.27 | jacobkiers | Hi, I’m experiencing a segfault with asterisk 13.1.0: segfault at 25ff1 ip 00007f923627b41a sp 00007f921ef86bb0 error 4 in libpj.so.2[7f9236266000+2a000]. |
09:13.35 | jacobkiers | Does anyone know how I can debug this? |
09:14.32 | jacobkiers | Asterisk 13.1.0 / Linux asterisk06 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 GNU/Linux |
09:17.49 | ChannelZ | Are you using PJSIP? |
09:19.31 | WIMPy | Ugh. That was evil. Ignoring join/leave messages made a very effective DOS vector. Now auto-ignorw just adds to that one and sussenly the whole server was filtered. |
09:19.36 | jacobkiers | ChannelZ: yes |
09:19.46 | ChannelZ | What version did you build? |
09:20.01 | jacobkiers | 13.1.0 |
09:20.15 | ChannelZ | no, of pjsip |
09:20.25 | jacobkiers | Oh. Where can I find that? |
09:20.27 | *** join/#asterisk CeBe (~CeBe@port-92-200-116-216.dynamic.qsc.de) |
09:20.39 | jacobkiers | I’m not completely sure. |
09:20.50 | ChannelZ | I guess you installed an asterisk package then |
09:21.11 | jacobkiers | No, I compiled Asterisk on Debian Wheezy (with some backports). |
09:21.34 | ChannelZ | ok.. then you had to have built pjsip at some point if you're using it |
09:21.40 | jacobkiers | I think pjsip came from the backports. Let me check. |
09:22.11 | jacobkiers | Version 2.1.0.0 |
09:23.07 | ChannelZ | hmm |
09:24.13 | ChannelZ | Only thing I can suggest is something goofy with that version or particular build of pjsip |
09:24.34 | ChannelZ | I'm running Asterisk 13 with pjsip 2.2.1 without incident. I was running something else prior to that but I'm not sure which.. |
09:24.45 | jacobkiers | Ok. |
09:25.00 | jacobkiers | We could try rebuilding against another version of pjsip. |
09:25.39 | ChannelZ | I assume asterisk is the only thing you have using it, so it should be pretty easy |
09:25.44 | *** join/#asterisk Vutral (~ss@mirbsd/special/Vutral) |
09:25.55 | ChannelZ | Does it segfault immediately when you start asterisk or is it happening after a time? |
09:33.01 | jacobkiers | After some time. |
09:33.16 | *** join/#asterisk Vutral (~ss@mirbsd/special/Vutral) |
09:45.09 | *** join/#asterisk Vutral (~ss@mirbsd/special/Vutral) |
09:57.13 | *** join/#asterisk infernix (nix@unaffiliated/infernix) |
10:15.18 | *** join/#asterisk ghostlines (~ghostline@82.201.93.50) |
10:33.54 | *** join/#asterisk Kaian (~kaian@6.62-99-78.static.clientes.euskaltel.es) |
10:55.54 | *** join/#asterisk marceloamorim (~marcelo@189-90-192-72.isimples.com.br) |
10:56.09 | *** part/#asterisk marceloamorim (~marcelo@189-90-192-72.isimples.com.br) |
11:08.57 | *** part/#asterisk benasse (~benasse@nowhere.cicogna.fr) |
11:09.11 | *** join/#asterisk benasse (~benasse@nowhere.cicogna.fr) |
11:15.28 | *** join/#asterisk moke (~moke@unaffiliated/moke) |
11:38.19 | *** join/#asterisk Vutral (~ss@mirbsd/special/Vutral) |
11:47.47 | *** join/#asterisk areski (~areski@81.Red-83-53-30.dynamicIP.rima-tde.net) |
12:08.58 | *** join/#asterisk sporksnail (~sporksnai@goose.dalerichards.net) |
12:14.46 | *** join/#asterisk ghostlines (~ghostline@82.201.93.50) |
12:26.21 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
12:32.09 | *** join/#asterisk pppingme (~pppingme@unaffiliated/pppingme) |
12:33.34 | *** join/#asterisk ghostlines (~ghostline@82.201.93.50) |
12:56.04 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
12:56.14 | *** join/#asterisk evilman_home (kvirc@89-179-77-66.broadband.corbina.ru) |
13:00.49 | *** join/#asterisk fstd (~fstd@unaffiliated/fisted) |
13:28.01 | *** join/#asterisk brad_mssw (~brad@66.129.88.50) |
13:41.47 | *** join/#asterisk n3ob (~Ed@pool-71-162-133-193.phlapa.fios.verizon.net) |
13:45.44 | *** join/#asterisk [TK]D-Fender (~chatzilla@216-191-106-163.dedicated.allstream.net) |
13:49.29 | *** join/#asterisk puzzled (~patrick@puzzled.xs4all.nl) |
13:56.17 | *** join/#asterisk SpeedEvil (~quassel@tor/regular/SpeedEvil) |
14:03.22 | Katty | fenderbender. |
14:13.43 | *** join/#asterisk sparetire_ (~sparetire@unaffiliated/sparetire) |
14:18.23 | goseeped | hi , Guys has anyone try video on webrtc using pjsip sip stack on asterisk 13 ? , VP8 codec is supported over web sockets ? , i know since asterisk 12 asterisk support VP8 passthr... but not work for me on ast 13 ! |
14:31.42 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
14:34.40 | *** join/#asterisk sommarnatt (~sommarnat@kungsbacka.oderland.com) |
14:50.17 | *** join/#asterisk sruffell (~sruffell@asterisk/the-kernel-guy/sruffell) |
14:50.17 | *** mode/#asterisk [+o sruffell] by ChanServ |
14:58.59 | *** join/#asterisk darkbasic (~quassel@niko.linuxsystems.it) |
15:07.51 | *** join/#asterisk ipengineer (~zconkle@static-71-252-134-63.dllstx.fios.verizon.net) |
15:08.38 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
15:09.14 | *** join/#asterisk newtonr (~newtonr@nat/digium/x-ufcebzblmcgjoher) |
15:09.39 | *** mode/#asterisk [+o newtonr] by ChanServ |
15:10.44 | *** join/#asterisk gerhard7 (~gerhard7@77-172-82-111.ip.telfort.nl) |
15:12.03 | *** join/#asterisk Tuju_ (~tuju@214.204.50.195.sta.estpak.ee) |
15:13.00 | Tuju_ | is it possible that two or more trunks get mixed between two hosts A and B ? i have not defined any non-default port numbers. |
15:15.47 | newtonr | Tuju_, what do you mean mixed? |
15:16.37 | *** join/#asterisk nicknam1232 (5f96cb66@gateway/web/freenode/ip.95.150.203.102) |
15:17.00 | Tuju_ | those trunks have different contexts, i know that call from host A tries to use first trunk, but it gets received in second in host B - that has other context too. |
15:17.47 | Tuju_ | that wrong trunk in host B was visible with sip show channel..... command in host B end. |
15:18.26 | Tuju_ | i was wondering should i use different port numbers than 5060 for each trunk? |
15:18.55 | *** join/#asterisk sommarnatt (~sommarnat@91.201.60.253) |
15:21.19 | *** join/#asterisk nix8n82 (a68ce751@gateway/web/freenode/ip.166.140.231.81) |
15:25.56 | Tuju_ | maybe this is the problem: Received Address: 172.16.1.1:5060 |
15:26.11 | Tuju_ | it doesn't have fqdn |
15:26.44 | *** join/#asterisk mjordan (~mjordan@nat/digium/x-hjtkglxnrqdvusje) |
15:26.44 | *** mode/#asterisk [+o mjordan] by ChanServ |
15:27.33 | *** join/#asterisk putnopvut (~putnopvut@asterisk/master-of-queues/mmichelson) |
15:27.33 | *** mode/#asterisk [+o putnopvut] by ChanServ |
15:28.00 | newtonr | I don't understand what you are saying. |
15:28.48 | newtonr | If a call is going to the wrong *system* then a port conflict is likely not an issue. |
15:29.33 | Tuju_ | there are only two hosts and hence "systems". |
15:30.00 | Tuju_ | somehow the incoming call ends up into wrong context. |
15:30.22 | Tuju_ | i tried to find asterisk docs but those haven't been written yet, as i see. :-( |
15:30.35 | Tuju_ | mysql had the same situation for years. |
15:30.54 | Tuju_ | or similar, they had same docs, one html page for each version :) |
15:31.05 | *** join/#asterisk jasonwert (~jasonwert@71.89.137.28) |
15:32.29 | *** join/#asterisk ghostlines (~ghostline@82.201.93.50) |
15:35.10 | newtonr | Tuju_, what docs in particular are you looking for? Asterisk documentation is at wiki.asterisk.org, including in the sample configuration files, and there is the Asterisk Definitive Guide (a book) |
15:35.37 | Tuju_ | newtonr: yep, i checked that. there is no docs about sip.conf syntax. |
15:35.44 | [TK]D-Fender | Tuju_: The incoming call is matching the first of the 2 peers you've created and thus going to that peer's context |
15:36.17 | Tuju_ | [TK]D-Fender: hmmm.... |
15:37.00 | newtonr | Tuju_, the sip.conf.sample file is the sip.conf documentation. There are docs about general config file syntax on wiki.asterisk.org |
15:37.20 | Tuju_ | newtonr: that's what i was saying, there is no documentation. |
15:37.54 | [TK]D-Fender | Yes there is |
15:38.01 | newtonr | Tuju_, the sip.conf file syntax follows pretty much the same syntax as all of the other config files |
15:38.02 | [TK]D-Fender | There are multiple WIKIS, books, etc |
15:38.15 | Tuju_ | [TK]D-Fender: i thought that the particular peer would have been mapped from register => line's last argument. |
15:38.26 | Tuju_ | [TK]D-Fender: i haven't found that then. |
15:38.33 | [TK]D-Fender | tuNo, there is NO relationship between a peer & a register statement |
15:38.48 | Tuju_ | [TK]D-Fender: a common practise that docs are found from project's domain. :) |
15:38.54 | [TK]D-Fender | Tuju_: Call comes in and gets matched against your peers in order |
15:39.05 | *** join/#asterisk cyford (~allen@76.122.73.37) |
15:39.18 | Tuju_ | [TK]D-Fender: if so, then it matches to second peer. |
15:39.21 | mjordan | er, wiki.asterisk.org? Which is linked from asterisk.org? |
15:39.27 | [TK]D-Fender | Tuju_: Your calls happen to match the same peer based on how you defined them |
15:39.29 | mjordan | Config file syntax: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Configuration+Files |
15:39.31 | Tuju_ | mjordan: show me the url. |
15:39.42 | mjordan | there you go. |
15:40.02 | mjordan | which is linked from asterisk.org: http://www.asterisk.org/community |
15:40.20 | Tuju_ | mjordan: in that given url there is no sip.conf syntax described. |
15:40.34 | [TK]D-Fender | Tuju_: it's in the sample config |
15:40.48 | [TK]D-Fender | Tuju_: Which comes with * itself |
15:40.56 | Tuju_ | sample is a sample, it is not documentation. |
15:41.00 | mjordan | oh good lord |
15:41.10 | mjordan | if you want an argument, I'll pass |
15:41.12 | mjordan | good luck |
15:41.19 | [TK]D-Fender | Tuju_: Samples can be documentation |
15:41.32 | newtonr | Tuju_, I just told you that the sip.conf syntax is the same as the other files. :) |
15:41.38 | Tuju_ | this is documentation http://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html *with* an example at the end. |
15:41.40 | [TK]D-Fender | Tuju_: If you need a 3 paragraph story for each little parameter well... then that's a different story. |
15:41.49 | [TK]D-Fender | Tuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/ |
15:42.04 | Tuju_ | [TK]D-Fender: in your opinion samples can be docs, a lot of people disagree. |
15:42.22 | [TK]D-Fender | Tuju_: Well in here .... it's just you. |
15:42.31 | Tuju_ | a documentation covers systematic descriptions of all possible syntaxes. |
15:42.36 | Tuju_ | those samples do not. |
15:42.38 | [TK]D-Fender | Tuju_: We'll cite you as a reference for the next guy who asks the same... |
15:42.51 | newtonr | Yup I'm out on this one! Time to make tea. |
15:42.54 | [TK]D-Fender | Tuju_: Really? What is the sample missing? |
15:43.15 | [TK]D-Fender | Tuju_: What syntax does it skip? |
15:43.18 | Qwell | [TK]D-Fender: The exact config he needs for his particular scenario. |
15:43.33 | Tuju_ | [TK]D-Fender: it's not systematic documentation. Asterisk does not have to show the same as I just referred from postgresql. |
15:43.39 | [TK]D-Fender | Qwell: Nope. that isn't "syntax. |
15:44.04 | [TK]D-Fender | Tuju_: maybe there isn't as much to say about Asterisk's configs |
15:44.22 | Tuju_ | you're just laying if you claim that asterisk has documentation. it doesn't. |
15:45.01 | [TK]D-Fender | Tuju_: The samples have all sorts of extra explanations for certain bits. But you aren't bringing a specific case to us for comparison |
15:45.10 | *** join/#asterisk sgriepentrog (~sgriepent@nat/digium/x-vneglvqnxvktfuxx) |
15:45.13 | Tuju_ | i can't even belive that I need to explain this, but it makes sense, if I would not have to - there would be those docs. |
15:45.33 | Tuju_ | special case is exactly what i'm not after. |
15:45.38 | [TK]D-Fender | Tuju_: You said there is missing samples/explanation for syntax. Tell us specifically what piece you were missing. |
15:45.47 | Tuju_ | docs cover _all_possbile_syntaxes_systematically_ |
15:46.00 | Tuju_ | i did not say so. |
15:46.00 | [TK]D-Fender | Tuju_: You don't get to say "you're missing stuff" and not show us a solid example. |
15:46.18 | [TK]D-Fender | Tuju_: What specifi syntax was exluded? |
15:46.19 | Tuju_ | you're putting words to my mouth. |
15:46.33 | Tuju_ | [17:45] <Tuju_> docs cover _all_possbile_syntaxes_systematically_ |
15:46.47 | Tuju_ | how hard is that to understand? |
15:47.11 | Tuju_ | http://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html that draws you a picture on your screen if you don't get it. |
15:47.32 | [TK]D-Fender | ~book |
15:47.32 | 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 |
15:47.45 | [TK]D-Fender | Here's a free book. It's been avaiable in multiple releases over the years |
15:47.46 | Tuju_ | that's another topic. |
15:48.10 | [TK]D-Fender | It's written by several Asterisk dev's and other digium employees. |
15:48.11 | Tuju_ | I still keep my opinion, that Asterisk does not have docs. It has examples and a book. |
15:48.18 | [TK]D-Fender | Might as well be considered "official" |
15:48.24 | [TK]D-Fender | Book = doc |
15:48.30 | [TK]D-Fender | And it's HTML on-line |
15:48.34 | Tuju_ | And it's probably a real good book about topic. |
15:48.37 | Katty | Tuju_: may i make a suggestion? |
15:48.44 | *** join/#asterisk superscrat (~asanders@nat/digium/x-yopbsceqnmxxrbnk) |
15:48.46 | Tuju_ | Katty: go ahead. :) |
15:48.51 | Qwell | Katty: is it "go away"? |
15:49.07 | Katty | Tuju_: if you don't like what's currently available, then take charge, make it your own. you write a book on it (= |
15:49.18 | Katty | Tuju_: help others in the community and make the project better. |
15:49.23 | Katty | Tuju_: that's what this is all about!! |
15:49.24 | [TK]D-Fender | Tuju_: So we've got the book (the more definitive one), and complete samples with descriptions. |
15:49.30 | Tuju_ | Katty: if you didn't notice, I'm just doing it. |
15:49.36 | Katty | Tuju_: that's great!!! |
15:49.53 | Katty | Tuju_: i look forward to reading it, too! |
15:49.53 | Tuju_ | part of the process is admitting that we have a problem. |
15:50.08 | Tuju_ | and we haven't solved that first part yet. |
15:50.14 | Katty | Qwell: no it's not go away :P |
15:50.37 | Qwell | "You need to join a 12-step program." "For what?" "For your crippling addiction." "Addiction to what?" "Why won't you just admit you have a problem?!" |
15:50.38 | Katty | Tuju_: and that's the beauty of the community. we can each do something to make it a little better! |
15:51.24 | Tuju_ | you could admit, that majority of other projects have tackled that given topic in a way i've just described. |
15:51.49 | Tuju_ | instead you suggest me going away. :) |
15:52.17 | Tuju_ | if they did it so - maybe I'm not that wrong after all? |
15:53.00 | Tuju_ | that is a hell a lot of work to do that. I'm sure that Postgresql - that is a great example of docs, saw that it's an important part of the projects. |
15:53.58 | Tuju_ | and frankly - when looking their docs, I've no ideas how to make 'em better or what is missing there. |
15:55.55 | *** join/#asterisk ChkDigit (~u388mw@74.3.144.66) |
15:56.58 | *** join/#asterisk wizhippo (~wizhippo@CPEc8d719031328-CM0c473de604b0.cpe.net.cable.rogers.com) |
15:57.12 | [TK]D-Fender | http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup |
15:57.38 | [TK]D-Fender | Line 767 starts a paragraph conrning your question about registration vs matching callsdescribes t |
15:58.40 | [TK]D-Fender | Line 767 starts a paragraph concerning your question about registration vs matching calls |
15:58.44 | [TK]D-Fender | can't type today |
16:01.56 | *** join/#asterisk sommarnatt (~sommarnat@c83-248-211-40.bredband.comhem.se) |
16:02.16 | Tuju_ | hmmm... |
16:02.53 | Tuju_ | i think my problem is that call comes in with ip address in sip headers - instead of domain. |
16:03.02 | Tuju_ | and hence it doesn't get mapped into those two first lines. |
16:05.10 | [TK]D-Fender | Tuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup |
16:05.14 | [TK]D-Fender | Tuju_: 1091 |
16:05.19 | Tuju_ | [TK]D-Fender: yep, you're right on that 767. |
16:05.39 | Tuju_ | i got that impression from some other web page. |
16:05.59 | Tuju_ | i think i have the url somewhere safe "because it was so good instructions." |
16:06.00 | [TK]D-Fender | Tuju_: What is this "some other web page"? |
16:06.54 | Tuju_ | [TK]D-Fender: yep, i have those 1091 row domains defined. |
16:07.02 | Tuju_ | I look if i can find that url |
16:07.22 | *** part/#asterisk bulkorok (~Benjamin@85.183.61.47) |
16:16.55 | Tuju_ | i've tons of notes about asterisk, those for some reason are not in usual place. can't find it now. |
16:17.33 | [TK]D-Fender | Tuju_: Didn't bother to actually bookmark it? |
16:17.44 | [TK]D-Fender | Tuju_: And no browser history? |
16:17.44 | Tuju_ | i typically use .txt files |
16:18.03 | Tuju_ | for example firefox hoses all its bookmarks if disk gets full. |
16:18.16 | Tuju_ | i don't save there anything. |
16:18.31 | [TK]D-Fender | Tuju_: If your system run out of disk space and seize up like that... you've got real issues |
16:18.46 | Tuju_ | what 'size up' ? |
16:19.10 | [TK]D-Fender | seize = freeze / lock / fail |
16:19.12 | [TK]D-Fender | not "size" |
16:19.16 | [TK]D-Fender | that was not a typo |
16:19.30 | Tuju_ | if you have firefox in your computer, you've the same "real issues". |
16:20.29 | [TK]D-Fender | Tuju_: Of running out of space? |
16:20.47 | Tuju_ | it's a feature. in firefox. |
16:20.56 | [TK]D-Fender | Tuju_: Never happened. it's a "possiblity", but it is only an issue if you actually run yourself to that poitn. |
16:21.15 | [TK]D-Fender | Tuju_: What feature in Firefox makes me run out of disk space? |
16:21.17 | Tuju_ | yes, disks are not indefinite. |
16:22.27 | [TK]D-Fender | Tuju_: Well if you ignore the "low gas" warning on your car you'll deserve what's coming there too. |
16:23.18 | Tuju_ | in country where i live, running out of gas has most likely more severe consicequences than running out of disk space. :) |
16:23.55 | [TK]D-Fender | Tuju_: either is a sign of a bad driver |
16:24.22 | Tuju_ | i kind of start understanding why asterisk doesn't have docs. |
16:24.33 | [TK]D-Fender | Tuju_: So let us know when you find whatever link it was that gave you the impression you walked in here with. |
16:24.44 | Tuju_ | i'm googlin it atm. |
16:24.51 | [TK]D-Fender | Tuju_: Again, a very full & verbose book is a doc. |
16:26.03 | [TK]D-Fender | 2" thick dead-tree publication with free on-line browsing = incontrovertible documentation. |
16:26.30 | [TK]D-Fender | Big story and big background in general. |
16:27.13 | [TK]D-Fender | Tuju_: So we'll critique your source when you somehow ever come back to us with it. I won't hold my breath for that. In the meantime, let's move on.... |
16:29.36 | *** join/#asterisk gmalsack (~grim@23.30.198.161) |
16:30.01 | *** join/#asterisk jiuweigui (~jiuweigui@unaffiliated/jiuweigui) |
16:31.03 | *** join/#asterisk rmudgett (~rmudgett@nat/digium/x-yexsbabhhpilrlvy) |
16:34.18 | gmalsack | mjordan: I've acquired the valgrind output and created a bug tracker report. |
16:35.24 | gmalsack | here's my next question. system did not crash once while running under valgrind just as you'd suspected. so the users want to continue to run under valgrind. I'm assuming this is not preferred.... |
16:36.46 | mjordan | it'll be slow as mollases |
16:38.09 | gmalsack | they are expecting to support 100 simultaneous calls transcoding from IBLC to G.729 on a vm with 2 2.4 cores and 2gb of ram. I'm thinking I should be laughing at their expectations, but I figured I should get a second opinion before I tell them they are insane! |
16:39.31 | mjordan | to be frank, I'm not sure how you're getting those errors. Which codec modules are you loading? |
16:39.58 | mjordan | you mentioned codec_g729. Which one from the Digium download site are you using? |
16:42.50 | gmalsack | just looking at that now. I don't remember compiling anything for them for g729, nor any other codecs. not sure if their web developer did or not. Looking at what's loaded, nope, no g729, so I don't know how they are expecting to transcode... :-D http://pastebin.com/VD5pqPps |
16:43.12 | mjordan | some of those line numbers don't match up either. Is it an unmodified version of 13.1? |
16:43.34 | gmalsack | yes, I downloaded fresh source. |
16:46.30 | Tuju_ | [TK]D-Fender: i think it was this one: http://www.asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/connecting_two_asterisk.html |
16:47.03 | [TK]D-Fender | Tuju_: that is at least an old revision of the book I've been linking you to. |
16:47.07 | Tuju_ | i got the impression that /osaka maps the registered line into peer's name + configuration |
16:47.23 | [TK]D-Fender | "You are reading Asterisk: The Future of Telephony (2nd Edition for Asterisk 1.4), by Jim van Meggelen, Jared Smith, and Leif Madsen." |
16:47.25 | Tuju_ | [TK]D-Fender: well, it's been some time i read that last time. hence it was hard to find. |
16:48.04 | *** join/#asterisk Johnny5_ (d8cff501@gateway/web/freenode/ip.216.207.245.1) |
16:48.23 | Tuju_ | if I would be an asshole, i would har har har that your book recommendation as definate source, but I'm not. |
16:48.49 | [TK]D-Fender | Tuju_: Copyright © 2007, 2005 O’Reilly Media |
16:48.57 | Tuju_ | i makes perfectly sense that you said, as my config doesn't work atm. |
16:49.14 | Tuju_ | [TK]D-Fender: so it's different source/author |
16:49.26 | [TK]D-Fender | Tuju_: What you based your judgement on was a singular book published 8 years ago. |
16:49.37 | [TK]D-Fender | Tuju_: No, same authors (more or less) |
16:49.38 | Tuju_ | anyway, docs look good - it's just wrong, apparently. |
16:49.48 | [TK]D-Fender | Tuju_: Which is wrong? |
16:49.54 | Tuju_ | that mapping. |
16:50.02 | Tuju_ | or then it's wrong version. |
16:50.04 | [TK]D-Fender | Tuju_: And don't forget you just stated that an assumption you made was wrong. Not something it said. |
16:50.33 | [TK]D-Fender | Tuju_: Don't put words in its pages! :) |
16:50.48 | Tuju_ | it would have been perfectly logical that there would have been a connection between register line and peers. |
16:51.12 | [TK]D-Fender | Tuju_: If the doc doesn't say it then nothing green-lights your assumption. |
16:51.23 | Tuju_ | in meantime, i did find something else interesting while looking that. |
16:51.43 | [TK]D-Fender | Tuju_: Sure. What now? |
16:51.48 | Tuju_ | like this http://ronnybull.com/2014/02/01/asterisk-sip-trunk-settings-obivoice/ didn't delve into it yet. |
16:52.31 | Tuju_ | this http://www.layerfour.net/portal/knowledgebase.php?action=displayarticle&id=43 seemed to repeat that same /osaka error. |
16:52.46 | Tuju_ | partially, not eaxctly. |
16:53.05 | Tuju_ | http://www.beardy.se/how-to-set-up-a-sip-trunk-in-the-asterisk-pbx related |
16:53.31 | [TK]D-Fender | Tuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup <- 744 |
16:53.37 | [TK]D-Fender | Tuju_: Expressly tells you otherwise |
16:55.31 | Tuju_ | indeed - peer is not the same as 'extension'. |
16:56.10 | [TK]D-Fender | Tuju_: that sets the "contact" for the register to tell the other side what extension to dial back to your server when sending you calls. They may respect this... or not depending on how they choose to work. |
16:57.18 | [TK]D-Fender | Tuju_: If you register to an ITSP that provides you 10 DID's via a single account with a single registration they may ignore the Contact: you set in the register and just send you the DID # as the target extension when they call. This is the most common behaviour for standard ITSPs |
16:58.20 | Tuju_ | i need to put that into file that didn't exist. |
16:59.43 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
17:00.41 | [TK]D-Fender | Tuju_: http://ronnybull.com/2014/02/01/asterisk-sip-trunk-settings-obivoice/ <- this one is fine and you can see that the /YOURPHONENUMBER is not the [peername] and they actually put in writing that you need to make this extension in your dialplan and that is where it should land |
17:01.14 | Tuju_ | yes, that struck into my eye too. |
17:02.28 | [TK]D-Fender | Tuju_: As a general note, I've seen some good blogs. I have also seen plenty written by well-meaning, but horrifically wrong people. "Some guy's blog" should be taken with a grain of salt, a dash of pepper, and 2 scoops of paprika. |
17:02.57 | [TK]D-Fender | Tuju_: When I hear "On the user forums", I automatically think "firing squad". |
17:02.59 | Tuju_ | apparently that's the case. |
17:03.49 | Tuju_ | and those forks don't make it any easier. |
17:03.53 | [TK]D-Fender | Tuju_: What else can wel help you with? |
17:04.00 | Tuju_ | :) |
17:04.05 | [TK]D-Fender | Tuju_: was "forks" a typo? |
17:04.29 | Tuju_ | a fork? |
17:04.49 | Tuju_ | i thought there were many. |
17:05.49 | Tuju_ | btw, i had an idea, why not create a DNS-BL service that has DNSserver and asterisk. |
17:06.09 | Tuju_ | and then we all route these pisher phone numbers into that asterisk. |
17:06.30 | Tuju_ | and whenever a pishing attempt happens, that service gets all pisher's information. |
17:06.39 | Tuju_ | and makes block list from that data. |
17:07.09 | [TK]D-Fender | [12:04]Tuju_i thought there were many. <- Where? Why? |
17:07.18 | Tuju_ | information like this: Call from '' (107.150.61.66:5098) to extension '000972592328763' rejected because extension not found in context 'public'. |
17:08.14 | [TK]D-Fender | Tuju_: I think I have heard of such a collection group before. |
17:08.24 | Tuju_ | [TK]D-Fender: i'm not sure, i guess got the feeling while googling. |
17:08.39 | [TK]D-Fender | Tuju_: There are also full-country lists so you can firewall against zones you know you don't care about. |
17:08.59 | [TK]D-Fender | Tuju_[TK]D-Fender: i'm not sure, i guess got the feeling while googling. <- Luke should trust his feeling. You should think twice :p |
17:09.08 | [TK]D-Fender | </kenobi> |
17:09.49 | Tuju_ | let's keep LoTR out still, shall we? SW will do. |
17:09.53 | [TK]D-Fender | There was maybe 2 Asterisk forks ever and they have been long dead and with virtually no mention |
17:10.09 | [TK]D-Fender | Tuju_: plenty of SW to go around... |
17:10.51 | Tuju_ | that i just suggested, would be a distributed response to a distributed pishing attempt. |
17:12.15 | [TK]D-Fender | Tuju_: Depends how trustworthy you consider the contributors. |
17:12.19 | Tuju_ | the part that i didn't figure out yet, was that how to distinguish those pishing numbers. |
17:12.40 | Tuju_ | [TK]D-Fender: here we have eID's. That's pretty solid stuff. |
17:13.07 | Tuju_ | you need to die to get rid of your fuckups. hence it doesn't happen. |
17:13.11 | [TK]D-Fender | Tuju_: Then again it's a question of the value of creating a huge list of possible attackers that maybe aren't really ... and then loading that and never getting attacked by any of them. All of this .. vs just looking after your own situation... |
17:13.18 | *** join/#asterisk bgmCoder (~Miranda@70.43.111.18) |
17:13.45 | bgmCoder | Hello all! Anyone know where I can find a list of all the number commands in the Asterisk Menus? |
17:13.51 | Tuju_ | i was thinking an iptables filtering. |
17:15.25 | [TK]D-Fender | Tuju_: fail2ban + iptables is the current paradigm |
17:15.43 | [TK]D-Fender | bgmCoder: What "menus"? |
17:15.46 | Tuju_ | fail2ban fails being single-host implementation. |
17:16.09 | *** join/#asterisk afournier (~admin@46.255.181.29) |
17:16.12 | [TK]D-Fender | Tuju_: You could also create your own distribution method for what it generates. |
17:16.14 | Tuju_ | i need distributed, firewall is own system in close network. |
17:16.30 | Tuju_ | [TK]D-Fender: i know, I already talked with fail2ban folks about that. |
17:16.34 | bgmCoder | Hi, TK. I'm thinking to enumerate all the menus with their numbers for when you navigate through the system menus from the phone. |
17:16.42 | [TK]D-Fender | Tuju_: And again, if you're working off a blacklist you're wasteing all sorts of comms and jacking up your ban list with things that have never and may never touch you. |
17:16.47 | [TK]D-Fender | Tuju_: And could be faulty. |
17:17.08 | Tuju_ | with enough reports you could distinguish those. |
17:17.14 | [TK]D-Fender | Tuju_: I don't see that as an "improvement" necessarily. Sure it's good in theory, but the payoff doesn't feel too real... |
17:17.54 | [TK]D-Fender | Tuju_: Trick is getting enough reports, plus the loading factor, distribution method, etc. And then dependency on this list as a form of protection. It itself becomes a point of failure. |
17:19.35 | Tuju_ | you sound like a matemathician in doctor who never gets touch the woman. I'm like an engineer who doesn't care about asymptomic theory, as "close enough for practical implementations" :) |
17:20.10 | [TK]D-Fender | Tuju_: I've used both methodologies in the past so .... there's your "practical". |
17:21.06 | [TK]D-Fender | Tuju_: I'm also a realist in that if I get hit with 10 attempts a day and I nail them at the point being targeted... I didn't need to generate and implement a distributed list model. |
17:21.24 | [TK]D-Fender | Tuju_: And I am proteecting my system against stuff that IS happening now. |
17:21.29 | Tuju_ | that ties a person, too expensive. |
17:21.48 | [TK]D-Fender | Tuju_: From a practical standpoint, that is entirely real and the solution self-contained therefor more resilient |
17:21.56 | [TK]D-Fender | Ties a person? how so? |
17:22.16 | Tuju_ | you said "I nail them" |
17:22.34 | Tuju_ | i presumed that includes a hammer and nails, a person? |
17:22.46 | [TK]D-Fender | Tuju_: Firewall at that server directly |
17:23.43 | Tuju_ | anyway, i need to call my bookkeeper and she's out-of-reach because my config. :/ |
17:23.52 | [TK]D-Fender | Tuju_: fail2ban sees the failure frequency and firewalls that specific attacker out. Done. No user intervention, no generating and distributing lists. No extra point of failure, no extra EFFORT. Seriously what do I save by doing that extra work? |
17:24.58 | Tuju_ | if that's the cause, that my connections come in without DNS name in headers, what could cause that? |
17:25.15 | Tuju_ | i assume that there are ip addresses. :-/ |
17:25.32 | [TK]D-Fender | Tuju_: connections from where? |
17:25.41 | Tuju_ | between my two asterisk boxes. |
17:26.47 | [TK]D-Fender | Tuju_: It might if you used a FQDN as the hostname |
17:27.19 | Tuju_ | i have fqdn everywhere imo. |
17:27.30 | Tuju_ | and still ip-addresses in packets. |
17:28.56 | [TK]D-Fender | Tuju_: feel free to post up your configs for both sides & the SIP debug. |
17:29.01 | [TK]D-Fender | "sip set debug on" |
17:29.24 | Tuju_ | i know. i first try with those web pages if it's somethign small. |
17:29.42 | Tuju_ | btw, postifx has a tool called 'postconf' |
17:29.53 | Tuju_ | it dumps configuration |
17:30.16 | Tuju_ | if something like that would also strip all auth info away, it would be awsome. |
17:39.00 | [TK]D-Fender | Tuju_: it's be trickier with * as there are several places you could have auth. |
17:39.28 | [TK]D-Fender | Tuju_: You could have it integrated into your dialplan. That'd be seriously hard to parse out. (also stupid to do ... but it is possible) |
17:39.52 | [TK]D-Fender | Tuju_: other conf files "depends". |
17:40.19 | goseeped | hi , Guys has anyone try video on webrtc using pjsip sip stack on asterisk 13 ? , VP8 codec is supported over web sockets ? , i know since asterisk 12 asterisk support VP8 passthr... but not work for me on ast 13 ! |
17:40.28 | Tuju_ | i know and the same applys to manual dumps |
17:40.51 | [TK]D-Fender | Tuju_: Well for the scope of the item we're looking at... I'm sure you could hand-delete one line/value |
17:41.55 | *** join/#asterisk paulc (~paulc@unaffiliated/paulc) |
17:43.41 | *** join/#asterisk cyford (~allen@76.122.73.37) |
17:44.25 | cyford | should set work for system commands like this, or would i need use system instead |
17:44.27 | cyford | Set(location=(cat /etc/asterisk/pushuri.conf | grep -R 3003 | cut -d " " -f2)) |
17:45.15 | [TK]D-Fender | cyford: There is no automatic syntax for system calls. Dialplan != BASH |
17:45.34 | *** part/#asterisk bgmCoder (~Miranda@70.43.111.18) |
17:45.37 | [TK]D-Fender | CySo yes you obviously need to call an Application or Funtion to do a system call |
17:47.23 | beardy | Tuju_: [TK]D-Fender, is there anything incorrect in my post? (which now is quite old, so things might very well have changed) |
17:47.57 | Tuju_ | beardy: i didn't notice anything. |
17:48.21 | Tuju_ | beardy: at least you saw effort to make it clear and readable. |
17:49.18 | [TK]D-Fender | beardy: I missed your question somewhere |
17:50.04 | cyford | tk im guessing != means not equal? |
17:50.41 | beardy | [TK]D-Fender: Tuju_ referenced a page that I wrote 5 years ago, I was wondering if it had been obsoleted or if it was a good or bad referencing. |
17:51.08 | [TK]D-Fender | beardy: relink it. |
17:51.17 | [TK]D-Fender | beardy: I've just lost tracka bit. |
17:51.53 | beardy | [TK]D-Fender: Ah. :) http://www.beardy.se/how-to-set-up-a-sip-trunk-in-the-asterisk-pbx |
17:52.09 | goseeped | hi , Guys has anyone try video on webrtc using pjsip sip stack on asterisk 13 ? , VP8 codec is supported over web sockets ? , i know since asterisk 12 asterisk support VP8 passthr... but not work for me on ast 13 ! |
17:52.57 | beardy | Anyway.. I've thought about rewriting it, and some more guide/tutorial style things, any year now.. |
17:53.20 | goseeped | mjordan: Hi, has you try video on webrtc using pjsip sip stack on asterisk 13 ? , VP8 codec is supported over web sockets ? , i know since asterisk 12 asterisk support VP8 passthr... but not work for me on ast 13 ? what can you tell me about it ? |
17:53.38 | [TK]D-Fender | beadyYour syntax is deprecated a bit, and there are things it doesn't say which it could... but isn't too far off |
17:56.26 | beardy | :) |
17:57.54 | Katty | fenderbender |
17:58.07 | [TK]D-Fender | beardy: host=dynamic ; The device must always register <- this is actual innacruate |
17:58.29 | cyford | [TK]D-Fender if i cant set a vairiabe with a set application, would asterisk reconize a variable i set in the system application? |
17:59.04 | [TK]D-Fender | cyford: the entire point of Set() ... is to set variables. |
17:59.10 | [TK]D-Fender | cyford: (and functions) |
17:59.21 | [TK]D-Fender | cyford: Rethink your question.... |
18:00.06 | cyford | can i set a variable using system commands for asterisk |
18:00.30 | Katty | you mean, can you pipe bash into asterisk? |
18:00.52 | beardy | [TK]D-Fender: Do you have a suggestion how to correct it, to not to confuse people? Removing the comment? |
18:00.52 | [TK]D-Fender | cyford: Depends on what you return |
18:01.08 | [TK]D-Fender | cyford: What are the connads that let you execute such commands? |
18:01.33 | [TK]D-Fender | beardy: either change the comment to be true, or the config so the comment is true :) |
18:01.57 | beardy | [TK]D-Fender: Was it true when it was written? ;) |
18:02.00 | cyford | system lets me execute it. but set stores it |
18:02.24 | cyford | Katty i need make something like this possible Set(location=(cat /etc/asterisk/pushuri.conf | grep -R 3003 | cut -d " " -f2)) |
18:02.37 | Qwell | cyford: core show function SHELL |
18:02.51 | beardy | I guess I'll have to read some then, unless you want to help me word the comment to be true as it is now. |
18:04.22 | [TK]D-Fender | [13:01]beardy[TK]D-Fender: Was it true when it was written? ;) <- no |
18:04.42 | cyford | lovelly , thanks Qwell |
18:10.21 | *** join/#asterisk riess82 (~riessma@188-22-42-97.adsl.highway.telekom.at) |
18:21.05 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
18:21.07 | beardy | [TK]D-Fender: I'm not sure I agree with it being inaccurate. Perhaps the "always" is misleading though. |
18:34.42 | [TK]D-Fender | beardy: If it isn't want it says. Then it is inaccurate. |
18:35.47 | beardy | [TK]D-Fender: It is what it says though. For anything to be sent to the device it must register. But I'll change it. |
18:36.40 | [TK]D-Fender | beardy: TO the device, yes. From = no |
18:37.53 | Tuju_ | now i took those extensions away from register => line and get "Peer is not supposed to register" |
18:38.07 | [TK]D-Fender | not related... |
18:38.22 | Tuju_ | and "sip show registry" shows that "No Authentication" |
18:38.39 | [TK]D-Fender | Tuju_: you are getting that because you set a FIXED HOST and the other side is trying to register |
18:38.48 | Tuju_ | sip show peers shows that those trunk peers are OK |
18:38.50 | *** join/#asterisk SpeedEvil (~quassel@tor/regular/SpeedEvil) |
18:38.53 | *** join/#asterisk voxter (~voxter@irc.voxter.net) |
18:38.56 | Tuju_ | aaa, yes. |
18:38.56 | [TK]D-Fender | Tuju_: The point of registration is telling the otherside where to contact you. When that is fixed... no-go |
18:39.24 | Tuju_ | indeed. |
18:39.33 | [TK]D-Fender | colour=brown. I choose yellow. YOU'RE NOT ALLOWED TO CHOOSE! |
18:42.43 | Tuju_ | sip show channel 07....... " Original uri: sip:2221@172.16.1.1:5060" |
18:43.01 | Tuju_ | so that's the problem, ip address does not match to domain and hence don't map to context. |
19:02.48 | *** join/#asterisk areski (~areski@80.174.128.116.dyn.user.ono.com) |
19:10.00 | goseeped | mjordan: Hi, has you try video on webrtc using pjsip sip stack on asterisk 13 ? , VP8 codec is supported over web sockets ? , i know since asterisk 12 asterisk support VP8 passthr... but not work for me on ast 13 ? what can you tell me about it ? |
19:18.22 | *** join/#asterisk tzafrir (~tzafrir@bzq-218-28-58.cablep.bezeqint.net) |
19:25.44 | *** join/#asterisk SpeedEvil (~quassel@tor/regular/SpeedEvil) |
19:28.20 | mjordan | I can tell you nothing about it, but I'm not sure why you're asking me specifically either :-) |
19:29.44 | *** join/#asterisk Jacoby6000 (~jbarber@static-71-252-134-63.dllstx.fios.verizon.net) |
19:31.16 | *** join/#asterisk FreezingCold (~FreezingC@135.0.41.14) |
19:36.13 | *** join/#asterisk jasonwert (~jasonwert@71.89.137.28) |
19:39.32 | Tuju_ | [TK]D-Fender: ha, i found the problem. |
19:39.53 | Tuju_ | in receiving end, there must be "realm=<domain>" |
19:40.20 | Tuju_ | that maps the incoming call to correct configuration where correct context is given and so on. |
19:41.44 | Tuju_ | damn i've fought for this issue. days, not hours but days. |
19:42.03 | Tuju_ | persistance won again. regardless that i feel physically shit right now. |
20:09.41 | *** join/#asterisk rightonbro (~textual@76.91.195.245) |
20:17.41 | gmalsack | newtonr: Happy New Year Rusty! |
20:21.56 | *** join/#asterisk wizhippo (~wizhippo@CPEc8d719031328-CM0c473de604b0.cpe.net.cable.rogers.com) |
20:23.44 | *** part/#asterisk rightonbro (~textual@76.91.195.245) |
20:32.39 | *** join/#asterisk znf (~ibm86@unu.card-share.eu) |
20:38.45 | *** join/#asterisk brad_mssw (~brad@66.129.88.50) |
20:56.06 | *** join/#asterisk chris0x00 (~drclaw@yakko.cs.wmich.edu) |
21:01.00 | chris0x00 | I'm having an issue with no ringback tone for inbound callers to my single span PRI (ESF/B8ZS) on a TE134 card, I suspect I'm not indicating ringing to my provider correctly. Can anyone suggest a place to look? asterisk-11.6-cert4, dahdi 2.10.0, libpri-1.4.15, linux 3.13.0-32 |
21:02.41 | chris0x00 | other channels (SIP, IAX) entering the same dialplan context ringback, so I don't think it's with my extensions.conf syntax |
21:03.26 | chris0x00 | after answer() audio passes in both directions OK on the DAHDI channels |
21:05.32 | chris0x00 | I wouldn't really care, but the environment is kind of strange in that they don't want an IVR to answer until after ~30 seconds ringing |
21:06.06 | chris0x00 | so I feel compelled to indicate to the caller that something is happening (vs. silence) |
21:06.37 | *** join/#asterisk justdave (~dave@unaffiliated/justdave) |
21:07.00 | chris0x00 | I've considered creating a MoH file of a standard US ringback and answering the line while waiting for a CSR to answer |
21:07.08 | chris0x00 | but that seems wrong... :) |
21:09.08 | *** join/#asterisk drale_ (~drale@unaffiliated/drale) |
21:09.11 | cyford | should this work |
21:09.13 | cyford | exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}?120:121)}) |
21:10.35 | [TK]D-Fender | cyford: No |
21:10.50 | [TK]D-Fender | cyford: Count your backets. And stop using numbered priorities! |
21:11.01 | drale_ | How do I find out if my asterisk is running inband DTMF. I know its using G.711 ulaw, and i have to answer this question about our PBX, "Features or Featureless" "The PBX should support G.711 with in-band DTMF as a standard for featured implementations without compression. All others that do not support this are ordered featureless' |
21:11.11 | [TK]D-Fender | brackets* |
21:11.17 | drale_ | Any configs with dtmfmode are commented out |
21:11.56 | [TK]D-Fender | drale_: You should be setting your mode explicitly in your peer |
21:12.26 | drale_ | So I should check the phones themselves? |
21:12.45 | [TK]D-Fender | drale_: each side should AGREE with Asterisk |
21:13.04 | [TK]D-Fender | Asterisk will translate between them |
21:17.03 | drale_ | Ok i found in one phone "Force RFC2833 Out-of-Band DTMF" Enabled., DTMF Method: RTP |
21:17.09 | chris0x00 | seems like most of the rfc2833 out of band stuff sends at the beginning or end of the dtmf burst, I usually test for inband from near-end to far-end by holding down a touch tone and seeing if I hear it for the entire duration, I suppose that doesn't help you for ordering/provisoning though |
21:17.53 | *** join/#asterisk brad_mssw (~brad@66.129.88.50) |
21:18.23 | [TK]D-Fender | drale_: No SIP PHONE you should ever buy (or find) should even be using inband |
21:18.33 | drale_ | Ok. |
21:18.38 | [TK]D-Fender | drale_: a PROVIDER my force taht on you... but that doesn't mean you should use that for your phones |
21:19.01 | [TK]D-Fender | drale_: * just neext to agree with each leg. The legs themselves don't have to agree |
21:19.06 | [TK]D-Fender | needs* |
21:19.13 | chris0x00 | I hate out of band dtmf, ruins all the touch tone songs |
21:19.35 | chris0x00 | plus talk off, etc |
21:19.41 | drale_ | It seems like, as long as asterisk supports what they are asking of me, i should answer accordingly. wether we use it that way or not |
21:19.50 | mjordan | chris0x00: no idea why ringback wouldn't work, but you could always use PlayTones |
21:21.05 | chris0x00 | mjordan: That's a better idea than music on hold, thanks |
21:21.11 | [TK]D-Fender | drale_: If they are asking for it .... you are going to follow them. or else. |
21:25.52 | cyford | [TK]D-Fender my bracet count seems fine to me |
21:27.47 | drale_ | Yea currently using PRI and we are signing up for SIP. So this is a SIP handoff order sheet. Makes more since now asking all these things. |
21:34.50 | Johnny5_ | chris0x00: DAHDI 2.10.0.1 has a hotfix for that issue. |
21:35.10 | chris0x00 | Johnny5 is alive! Thanks mate |
21:35.25 | chris0x00 | I'll try that now |
21:35.37 | Johnny5_ | (Only for US tones) |
21:35.41 | chris0x00 | sorry, couldn't help obligatory short circuit reference |
21:35.53 | chris0x00 | yeah, this is US, sounds like a winner |
21:37.43 | [TK]D-Fender | cyford: You placed them wrong |
21:38.07 | [TK]D-Fender | cyford:exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}?120:121)}) |
21:38.38 | [TK]D-Fender | those priorities (which you shouldn't be using) belong in that OUTER ")" wiuth no } on either side |
21:39.01 | [TK]D-Fender | go fix your function calls |
21:39.08 | [TK]D-Fender | heads home |
21:47.32 | cyford | pl, this looks better right |
21:47.34 | cyford | exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}?AddCache) |
21:53.36 | chris0x00 | Johnny5_: thanks that fixed it |
21:53.37 | *** join/#asterisk t4nk909 (47b7c9e2@gateway/web/freenode/ip.71.183.201.226) |
21:53.44 | t4nk909 | Hi is anyone here |
21:54.09 | newtonr | Nope! :) |
21:54.11 | newtonr | ~ask |
21:54.11 | infobot | Questions in the channel should be specific, informative, complete, concise, and on-topic. Don't ask if you can ask a question first. Don't ask if a person is there; just ask what you intended to ask them. Better questions more frequently yield better answers. We are all here voluntarily or against our will. |
21:54.28 | t4nk909 | sorry my first time here |
21:54.43 | newtonr | t4nk909, no worries! |
21:54.47 | t4nk909 | I run asterisk 1.4.11 on ubuntu server |
21:54.55 | t4nk909 | my issue is with machine detection |
21:55.47 | t4nk909 | When my clients press a key to quick it is not detected as a human |
21:56.23 | t4nk909 | if they press after they are prompted it works, im playing with AMD() but I am a little stumped |
21:56.54 | t4nk909 | because If I put AMD() before the prompt then there is silence, if I put it after then it is too late |
21:58.44 | newtonr | Well. your version of Asterisk is ancient and unsupported for bugs or issues. see (https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions). That being said. If I could help you I would. I've never used AMD or supported it so I'm not familiar with issues there. |
21:59.14 | t4nk909 | I know it is old bro, I just need some pointer |
21:59.26 | t4nk909 | How do you manage to detect DTMF then? |
22:00.07 | WIMPy | usually uses Read() and sometimes WaitExten(). Never used AMD, either. |
22:00.32 | newtonr | Background() or WaitExten for me usually |
22:00.55 | chris0x00 | dang, I didn't even know about AMD(), I created an AGI to do that sometime ago :s |
22:01.37 | chris0x00 | t4nk909: you are asking the called party to press a button to identify that they've answered the call? I'm not sure if I'm following you correctly |
22:01.44 | newtonr | t4nk909, I supported Asterisk systems for four years and saw maybe a handful of people using AMD. So I'm not sure it is commonly used. |
22:03.15 | chris0x00 | from what I'm seeing AMD seems to be based on silence detection or lack there off, which is what I did within my AGI, how is DTMF entering in to the equation ? |
22:05.11 | *** join/#asterisk lordvadr (~lordvadr@jose-tc.ctc.biz) |
22:06.10 | t4nk909 | because I first play a sound |
22:06.16 | t4nk909 | using AGI() |
22:06.27 | t4nk909 | this sounds prompt the user to press a key |
22:07.34 | chris0x00 | Ah, OK, then yes, probably use app Background instead of Playback if you are using Playback |
22:07.54 | chris0x00 | if they press early Background will grab the digit |
22:08.07 | t4nk909 | Thats the thing I dont use Background |
22:08.16 | chris0x00 | What are you using? |
22:08.37 | t4nk909 | because I need AGI to use a php script , query my db then play the sound file |
22:08.48 | chris0x00 | You can use Background in your AGI |
22:08.50 | t4nk909 | thats why I did it like that |
22:09.01 | lordvadr | I'm having an interesting problem with t.38 passthrough. My provider sends me reinvites with a different destation IP in the SDP, but my endpoint has nat=yes set, and both of them have directmedia=no set, but asterisk (1.8.7.0) fails to rewrite the destination IP in the SDP it sends to my endpoint. |
22:09.14 | t4nk909 | right from the PHP |
22:09.17 | t4nk909 | or the dialplan |
22:09.21 | chris0x00 | right in PHP |
22:09.48 | t4nk909 | is that phpagi? |
22:10.01 | t4nk909 | I see it when browsing? |
22:10.06 | chris0x00 | I don't know, I don't use any of those because the AGI spec is so simple to begin with |
22:11.02 | *** join/#asterisk cyford (~allen@76.122.73.37) |
22:11.06 | chris0x00 | but the long and short of it is you can use EXEC BACKGROUND |
22:13.19 | t4nk909 | I can probably send the variable back to dialplan as well? |
22:13.25 | t4nk909 | then use background? |
22:14.04 | chris0x00 | t4nk909: if your script isn't too evolved already, it might be worth not using phpagi, after doing your EXEC BACKGROUND "soundfile" you just need to read stdin until the end of the waiting data, and look for 200 result and parse that for your digit |
22:14.35 | chris0x00 | you can use SET VARIABLE to make it available to the dialplan |
22:14.57 | chris0x00 | sorry, I know this isn't as helpful as it could be, I just have no experience with phpagi |
22:15.58 | t4nk909 | yes chris |
22:16.05 | t4nk909 | I dont wanna use phpagi |
22:16.19 | t4nk909 | I want to do like you say |
22:16.36 | t4nk909 | actually currently I use STREAM "soundfile" |
22:16.40 | chris0x00 | I think you'll find it easier to do than you might expect after a little bit of an initial headache |
22:17.00 | chris0x00 | you can use EXEC and then any application available to asterisk, EXEC BACKGROUND "soundfile" |
22:17.45 | chris0x00 | even third party applications, I've used it with Swift() for example |
22:18.06 | mjordan | lordvadr: that's a pretty old version of 1.8, which has received a bunch of bug fixes - including ones dealing with NAT. I'd suggest at least trying the last version of 1.8. |
22:19.54 | chris0x00 | t4nk909: that biggest caveat is just remembering to read all the data waiting on stdin, asterisk won't want to listen to your next command until you do |
22:19.58 | lordvadr | mjordan: They're in production at an ITSP. I can take them down during a maintenance window, but I hate to shoot in the dark on an upgrade. They're slated for an upgrade to 10 sometime anyway. |
22:19.58 | chris0x00 | s/that/the |
22:20.33 | WIMPy | lordvadr: To 10? Bad idea. |
22:20.34 | lordvadr | Part of the reason is all the DAHDI bugs I had to fix manually in the source code and not having a spare PRI to test new versions with. |
22:20.45 | *** join/#asterisk [TK]D-Fender (~joe@64.235.216.2) |
22:20.52 | newtonr | lordvadr, 10 is EOL https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions |
22:21.22 | lordvadr | My bad, 11 is what's on the list. |
22:21.26 | t4nk909 | chris just to confirm |
22:21.41 | WIMPy | lordvadr: How many bugs did you find? |
22:21.49 | lordvadr | WIMPy: 3 |
22:22.04 | lordvadr | One of this isn't fixed in the source. |
22:22.12 | WIMPy | Sounds managable. |
22:22.16 | t4nk909 | fwrite(STDOUT, "EXEC BACKGROUND <soundfile>); |
22:22.27 | t4nk909 | Thats all I need to change? |
22:22.40 | WIMPy | lordvadr: So you already know the current situation? What's the open one? |
22:23.29 | lordvadr | No, I personally fixed them in the code running on our boxes. I opened bug reports and all I got was "try latest version", which wasn't something I could just run around and do with them in production. |
22:24.06 | *** join/#asterisk MadHatter42 (~MadHatter@unaffiliated/madhatter42) |
22:24.33 | WIMPy | If it's something important, I don;t understand why you don't have a spare box. What if one dies? |
22:24.43 | lordvadr | One of them was pretty serious. There were certain cases depending on the timing where asterisk wouldn't think a channel was usable, our ISDN provider would send calls on that channel, asterisk would reject it. This all started when we upgrade from 1.6 to 1.8 several years ago. |
22:24.45 | newtonr | Generally "try latest version" means try the latest version in your test environment where hopefully you can reproduce the issue. |
22:24.56 | lordvadr | WIMPy: We have 2 servers, each with 4 PRI's. |
22:25.21 | chris0x00 | t4nk909: quote the soundfile name I think, not sure if it is required, but I usually do it |
22:25.23 | lordvadr | newtonr: Problem is that I don't have a testing $500/mo PRI to Windstream. |
22:25.40 | lordvadr | nor do I have a DMS500 sitting around either. |
22:25.50 | WIMPy | lordvadr: Get another card and connect two test boxes to each other. |
22:25.53 | chris0x00 | t4nk909: but yes, that is what I am saying |
22:26.00 | WIMPy | Or get a tester. |
22:26.31 | WIMPy | Although I'm not sure how many testers would be good for stress testing channel allocations. |
22:26.35 | lordvadr | WIMPy: I have a tester. None of the problems crop up until you start hitting high call volume. |
22:27.03 | cyford | should this work, |
22:27.04 | WIMPy | That's where another Asterisk would help. |
22:27.06 | cyford | exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}?AddCache) |
22:27.26 | lordvadr | And we were unsure if asterisk switching the call from PRI to PRI would fiddle with it too much. |
22:27.53 | lordvadr | a couple of them were improper implementation of q.931 |
22:28.15 | WIMPy | I know. Channel allocation has been a littel iffy. |
22:28.51 | lordvadr | Yeah, when it smacks down 4 PRI's to 3 usable channels in the middle of the day, it was a pretty big fiasco. |
22:29.11 | t4nk909 | Thanks chris this is priceless im implementing now |
22:29.14 | WIMPy | One of teh reasons I switched all but one box to mISDN. |
22:29.23 | t4nk909 | You mention "that biggest caveat is just remembering to read all the data waiting on stdin" |
22:29.33 | t4nk909 | should I do it with fgets |
22:29.52 | WIMPy | But there is hope that DAHDI got it correct by now. |
22:30.22 | chris0x00 | t4nk909: whatever you like, just make sure you read it until there is no more input waiting |
22:30.52 | chris0x00 | t4nk909: everything is terminated with a newline, so you may want to use a function to read line by line, but it is up to you |
22:31.03 | *** part/#asterisk mjordan (~mjordan@nat/digium/x-hjtkglxnrqdvusje) |
22:31.42 | chris0x00 | good luck, I'm out of here, thanks again to mjordan, Johnny5_, et al. for the assitance |
22:33.22 | lordvadr | WIMPy: I've done that. The problem we run into is that two asterisk boxes talking to each other--and I assume this is how the devs test--is going to work, but point it at a real ISDN switch and asterisk starts acting up. |
22:34.19 | WIMPy | lordvadr: Possible. Are you on DSS1 or something else? |
22:39.37 | *** join/#asterisk jhlavacek (~jirka@84.19.95.180) |
22:43.12 | *** join/#asterisk sruffell (~sruffell@asterisk/the-kernel-guy/sruffell) |
22:43.12 | *** mode/#asterisk [+o sruffell] by ChanServ |
22:48.07 | cyford | [TK]D-Fender, is this correct? exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}?AddCache) |
22:49.27 | cyford | also tryed exten => _300X,n,GotoIf($[${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}]?:AddCache) |
22:50.00 | cyford | everything returns null for some reason |
22:50.30 | [TK]D-Fender | cyford, break it down |
22:53.31 | cyford | <PROTECTED> |
22:55.41 | *** join/#asterisk ruben23 (~OpenDIAL@112.198.99.89) |
22:55.45 | [TK]D-Fender | cyford, No. As is just OUTPUT the function outside of an expression, etc |
22:55.48 | WIMPy | Is there any other hardware apart from Digium and Sangoma using DAHDI? |
22:55.54 | [TK]D-Fender | cyford, Prove your actual shell command is sane |
22:57.29 | t4nk909 | so guys I realize that AMD() is not the preferred way of detecting machines? |
22:59.45 | cyford | http://pastebin.com/AByxF8Av |
23:03.54 | cyford | better example http://pastebin.com/HZ9YY8xc |
23:04.03 | [TK]D-Fender | t4nk909, Are you questioning that that was your realization? |
23:07.48 | cyford | [TK]D-Fender , fyi - this does work here - exten => _300X,105,Set(location=${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}) |
23:08.39 | [TK]D-Fender | cyford, I never say the full function call |
23:08.47 | [TK]D-Fender | cyford, No the result of that |
23:09.54 | cyford | what do ya mean? |
23:10.44 | [TK]D-Fender | I never say to original attempt, nor the output of that last bit of code |
23:11.56 | cyford | im as lost as a little girl ion the middle of the woods |
23:12.46 | cyford | so what im doing wrong |
23:12.51 | [TK]D-Fender | <cyford> also tryed exten => _300X,n,GotoIf($[${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}]?:AddCache) |
23:12.51 | [TK]D-Fender | <cyford> everything returns null for some reason |
23:12.58 | [TK]D-Fender | You didn't SHOW the actual attempt for this |
23:13.05 | [TK]D-Fender | <cyford> [TK]D-Fender , fyi - this does work here - exten => _300X,105,Set(location=${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}) |
23:13.06 | [TK]D-Fender | Nor this |
23:13.14 | [TK]D-Fender | break it down piece by piece\ |
23:13.18 | [TK]D-Fender | and SHOW IT |
23:14.26 | cyford | oh u said see if the actual command worked an show that.. brb ill get ya the dialplan debug |
23:17.18 | cyford | http://pastebin.com/qAQwhgd7 |
23:25.30 | cyford | better one with debugging enabled http://pastebin.com/ZDFQJJgR |
23:27.17 | [TK]D-Fender | I see CLi without dialplan to match |
23:27.22 | [TK]D-Fender | and then the reverse |
23:27.24 | [TK]D-Fender | Seriously |
23:30.23 | *** join/#asterisk foulou (~foulou@tests.lagoon.nc) |
23:32.17 | cyford | what u mean |
23:32.33 | cyford | dialplan and cli is exaclty the same |
23:32.42 | cyford | but i think i found the issue |
23:33.06 | cyford | 0 = faulse 1 =true correct? |
23:33.13 | [TK]D-Fender | yes |
23:33.33 | cyford | this it should be 0 becuase it is not null lol |
23:33.38 | cyford | *Then |
23:38.28 | *** join/#asterisk frek818 (~frek818@172.56.9.20) |
23:43.11 | *** join/#asterisk Chainsaw (~chainsaw@gentoo/developer/chainsaw) |