IRC log for #asterisk on 20150107

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.43goseepedhi , Guys has anyone try video on webrtc using pjsip sip stack on asterisk 13 ?
00:58.17goseepedVP8 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.59cyfordwow 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.38Ionichi, 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.22ewheelerg'day all.
01:54.24ewheelerat 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.58goseepedcyford : 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.02goseepedewheeler: 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.03goseepedif you need make a playback or something like that firts you need to answer the channel !
01:59.05ewheelergoseeped, 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.57ewheelergoseeped, 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.21goseepedyes , 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.39goseepedewheeler : [longdistance] \n exten=> 200,1,Noop() \n exten=> 200,1,something() ...
02:05.58goseepedewheeler : [longdistance] \n exten=> 200,1,Noop() \n exten=> 200,n,something() ...
02:08.06ewheeleryes but what I want is [longdistance]\n exten => _.!,1,NoOp()\ninclude => whatever
02:08.26ewheelerso the noop always happens without modifying other contexts.
02:08.40ewheelerbut of course _.! always matches and takes over.
02:08.57Ionicwhy would you need to modify other contexts if you did it like this?
02:09.36ewheelerok, so I have [a]\n include => b\n include => c
02:09.55Ionichm, wait, including contexts is bad, yes
02:10.01ewheelerand I want to have [a] exten => ?,?,noop(foo) \n include => b, include =>c
02:10.04Ionicbut jumping via goto should work okay
02:10.07ewheelerb and c are already there.
02:10.15ewheelerI want to add the noop that always triggers under [a]
02:10.25ewheelerwhat are the '?' values that I should use to hook that?
02:11.22Ionicthe problem here is that include copies the content of the other contexts into the current context
02:11.55IonicI wonder if you could just *call* the other contexts instead?
02:11.58goseepedif 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.21Ionic(*call* as in use goto, like goseeped mentioned)
02:12.49Ionicthat would eliminate your problem
02:12.51ewheelerIonic, so something like _.!,1,noop() \n _.!,n,Goto(...) ?
02:13.01ewheelerand use the gotos instead of the include?
02:13.09Ionicewheeler: exactly
02:13.29ewheelerthat works.  then I don't need to worry about whatever is in the gotos.
02:13.37Ionicyeah
02:13.38ewheeler(includes, that is)
02:13.49Ionicin the other contexts, to be precise
02:13.55ewheeleryep
02:14.18Ionicbut make sure it actually works
02:14.32ewheelerindeed.  I don't want a 6am call tomorrow :)
02:15.19IonicI mean, it should work, but make sure it actually works-works :p
02:15.24Ionicyou'll get the idea
02:17.05Ionic"does something" vs. "does the correct/intended thing"
02:23.57ewheelerIt seems to work.  Whats the best (most exact) goto to replicate the state?  Goto(newcontext, ${EXTEN}, ?)
02:24.00ewheelerhow do I set the priority?
02:24.22ewheelerto keep it as it was
02:24.42ewheeler(probably 1, but how can I know for sure?  Is there a ${PRIO} ?)
02:25.31ewheelerahh, ${PRIORITY}
02:27.13ewheelerhmm, but I think I want 1.
02:27.24ewheelermy goto shows up on line 2.
02:27.35Ionicor just omit it?
02:28.50Ionicnot sure that actually works, though
02:28.55ewheelernope.  it wants it. see the goto defnintion.
02:28.59ewheelerGoto([[context|]extension|]priority)
02:29.10ewheelerfunny way of defaulting, I think its historical
02:29.42Ionic${PRIORITY} sounds good, though
02:30.02ewheeleryes, 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.05ewheelerprio was getting 2
02:30.49Ionicnote that the call will end when the next priority is not found
02:31.29Ioniclike, specifying 1, 2, 4 in order will terminate the call after executing the statement with priority 2
02:32.03ewheelerthank for your help.  I'll test tomorrow for real but it looks good.
02:32.05ewheelerIonic++
02:39.49cyfordi use something like this
02:40.29cyfordexten => _300X,29,Set(codecs=${SIPPEER(${EXTEN},codecs)})
02:40.29cyfordexten => _300X,n,GotoIf($["${codecs}" = ""]?31:100)
02:40.29cyfordexten => _300X,31,Set(codecs=${PJSIP_ENDPOINT(${EXTEN},allow)})
02:40.29cyfordexten => _300X,n,GotoIf($["${codecs}" = ""]?40:200)
02:40.29cyfordexten => _300X,40,Set(codecs=${SIPPEER(${EXTEN},codecs)})
02:40.30cyfordexten => _300X,n,GotoIf($["${codecs}" = ""]?50:300)
02:40.30cyfordexten => _300X,50,NoOp(** Unable to determin channel type ${EXTEN} not available **)
02:40.31cyfordexten => _300X,n,Goto(${EXTEN},exit)
02:47.38IonicI'd better go to bed, it's late enough
02:47.48cyfordin this example line 30 will go too line 31 if variable is null ,  otherwise it will go to line 100
02:47.56cyfordok,  gn
02:50.33*** join/#asterisk jasonwert (~jasonwert@71.89.137.28)
02:51.36Ionicbe careful with "line"
02:51.49Ionicit's really the priority, not the "line"
02:55.53Ionicewheeler: 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.56ChannelZand please use pastebins
03:00.59ChannelZ~pb
03:00.59infobotA "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.04ChannelZWell 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-Fendercyford, That's redundent, missing a bunch of priorities, and should be using labels.
04:26.04cyfordwhat ya talkin about tk
04:27.12[TK]D-Fender29 & 40 = exact same thing
04:27.26[TK]D-Fenderas well as the comparison you're doing after them
04:27.35[TK]D-FenderBy even GETTING there you already know it's blank
04:27.38[TK]D-Fenderso those are pointless
04:28.21[TK]D-FenderAnd you shouldn't be using numbered priorities like that
04:28.54[TK]D-FenderAnd we don't see what you've got in 100,200,300
04:29.10cyfordopps,  40 is suppose to be iax..  havent got tht far yet..   exten => _300X,40,Set(codecs=${IAXPEER(${EXTEN},codecs)})
04:29.12[TK]D-FenderI'm doubting half of that code is needed either
04:29.42cyfordits all relivent an working  except iax
04:30.09cyfordwell thewre is  some commeted out for testing
04:30.22[TK]D-FenderIt may get you there... but I'm betting highly redundent
04:30.24cyfordsome for dubugging
04:31.04[TK]D-FenderShould be less than half that size
04:31.07cyfordwell i asked before for the best way,,  an i took an ran with the option u gave
04:31.40cyfordand it worked,  just took alot more lines then i wanted
04:32.08[TK]D-FenderYes, I told you to use those functions... its the code you wrapped around them that's in need of a real cleanup
04:32.54cyfordwill to test sip takes 2 lines per ur example,   as any other protical right
04:33.06cyford*Well
04:33.29cyfordexten => _300X,29,Set(codecs=${SIPPEER(${EXTEN},codecs)})
04:33.29cyfordexten => _300X,n,GotoIf($["${codecs}" = ""]?31:100)
04:34.02[TK]D-Fender50% waste right there
04:34.09cyfordi was going to use IP   but PJSIP_ENDPOINT  didnt have a ip note
04:34.27[TK]D-FenderSpecifying 31  is pointless as well.
04:35.21cyfordthat is not 50% lol
04:35.27cyfordbe nice tk
04:35.39cyford<PROTECTED>
04:36.04cyford<PROTECTED>
04:36.05PenguinA lot of people who are not good at writing dialplan post things to the internet.
04:36.46cyfordin this case if not null go to 100
04:37.10cyfordi didnt know the not null sign to switch it
04:37.13PenguinThen use EXISTS() or IFNULL()
04:37.36[TK]D-FenderYou're setting a variable AT ALL.
04:37.43[TK]D-FenderThat's 3 lines of waste
04:38.09cyfordi would love to see an example  to simplify it
04:38.31[TK]D-Fendercyford, Use the function IN your GotoIf
04:38.36[TK]D-Fenderthis is the basics....
04:38.43*** join/#asterisk frek818 (~frek818@172.56.9.20)
04:38.44PenguinIt looks like you'll set the variable non-conditionally.
04:38.59PenguinSo the GotoIf() will always be false.
04:39.16cyfordno
04:39.28PenguinYour Set() is not a conditional one.
04:39.30[TK]D-FenderPenguin, goal is to check if it returns something.
04:39.43PenguinEXISTS() or IFNULL()
04:39.47*** join/#asterisk timahvo1 (~rogue@mail.cickenya.com)
04:39.47cyfordif null go next line
04:39.49[TK]D-FenderPenguin, Set then check.  Instead of checking direct and not wasting time with a set
04:40.02cyfordif not null go to pririty X
04:40.42[TK]D-Fendercyford, You still don't need the Set()'s.  check the function direct
04:40.57PenguinYour Set() is not conditional.  You don't need to check if after you explicitly set it.
04:41.23[TK]D-FenderAnd you don't need the 31,40,50
04:41.25cyfordbefore i had it easy,  but that finction only got caller channel.   so this was my first attempt to get callie tech
04:41.52PenguinIFNULL(${SIPPEER(${EXTEN},codecs)})
04:42.01cyfordit works but ofc i dont know the most optimized way
04:42.02Penguinor  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-Fendercyford, We didn't just bring up one you shouldn't be using
04:42.57cyfordno before tk
04:43.02cyfordnot now
04:43.17[TK]D-Fenderwe aren't talking about that
04:43.33[TK]D-FenderAnd 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-FenderAnd was concerning stuff you did that also didn't work :)
04:43.51cyfordbefore i was using exten => _300X,n,Set(ChannelType=${CHANNEL:0:3})
04:44.03[TK]D-FenderLet's leave the past out of this and fix your current mess :)
04:44.08[TK]D-FenderI know what you had
04:44.12[TK]D-Fenderlet's move past that.
04:44.56cyfordok,  but if u keeo  making me guess the best way it will take a while
04:45.01cyfordshow me pls
04:45.22[TK]D-Fender<[TK]D-Fender> cyford, Use the function IN your GotoIf
04:45.48cyfordgotoif is a function right
04:45.53Penguinno
04:45.56[TK]D-FenderNo, it is an APPLICATION
04:46.05cyfordur right
04:47.17cyfordur saying combine gotoif and set...    but i dont know how to do that
04:47.27[TK]D-FenderNo.
04:47.28Penguinno
04:47.31PenguinNo Set().
04:47.37[TK]D-FenderDITCH THAT
04:47.41[TK]D-FenderUse the4 function DIRECTLY
04:47.48[TK]D-FenderTEST the function DIRECTLY
04:47.50PenguinI showed you how to check if it exists and how to check if it is null.
04:47.56PenguinPut that into your GotoIf().
04:48.09[TK]D-FenderPenguin, That's minor syntax gravy and technically requires more chars :)
04:48.34[TK]D-FenderPenguin, But looks better to Boolean Nazi's :)\
04:48.35PenguinWhat you're saying is that he'll never figure it out if not fed by spoon.
04:48.53[TK]D-Fendercyford, Put the function DIRECTLY in place of your variable
04:49.17cyfordexten => _300X,n,GotoIf($["SIPPEER(${EXTEN},codecs)" = ""]?31:100)
04:49.28[TK]D-Fendercyford, Missing the REFERENCING of it
04:49.34[TK]D-Fendercyford, getting warmer though
04:49.52PenguinIf you use ISNULL() you don't have to compare it to a null value!
04:50.03[TK]D-FenderWhen you are GETTING a function it needs something extra .... something you DID on the other line before...
04:50.41Penguinhears the spoon approaching
04:51.21cyfordexten => _300X,n,GotoIf($["codecs=${SIPPEER(${EXTEN},codecs)}" = ""]?31:100)
04:51.33[TK]D-Fenderno
04:51.35cyfordlol
04:51.46[TK]D-FendersYou are not setting some stupid variable ..
04:51.54[TK]D-FenderYou are COMPARING THE FUNCTION to ""
04:51.58cyfordi didnt think so
04:52.43[TK]D-Fenderexten => _300X,n,GotoIf($["${SIPPEER(${EXTEN},codecs)}" = ""]?:100)
04:52.49PenguinYou don't need to compare it to anything.
04:52.50[TK]D-Fender\To save you the next 5 mistakes
04:53.02PenguinIf you're comparing it, you aren't using the right function.
04:53.13[TK]D-FenderPenguin, Let him at least also get an expression right! :)
04:53.37[TK]D-FenderPenguin, You mean not using one MORE function.
04:53.44[TK]D-FenderPenguin, yours is optional
04:54.04cyfordPenguin  whats your example
04:54.10Penguinscroll up
04:55.08cyfordi never used snull in my life,  ,  can i see an example pls
04:55.18[TK]D-Fenderthat IS a sample
04:55.31[TK]D-Fenderit returns 0 or 1
04:55.38*** join/#asterisk ShapeShifter499 (~Raansu@unaffiliated/shapeshifter499)
04:55.42[TK]D-FenderWhich you'd see if you read the instructions
04:56.02cyfordwhat insctructions
04:56.05[TK]D-Fender...
04:56.19[TK]D-Fender"core show function FUNCTIONNAME"
04:56.25cyford<-  confused
04:57.17PenguinSince 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.38Penguins/NU/NA/
04:57.55cyfordthats not confusing
04:58.12cyfordunleass it doesnt tell me how to use it in dial plan
04:59.04PenguinFunctions are always treated the same was as referencing a variable.
04:59.11cyfordok 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.29Penguin${ISNULL(stuff to check for goes here)}
04:59.35[TK]D-FenderSet(FUNCTION()=blah)  <- that's how you SET a function.
04:59.58[TK]D-FenderYou 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.14Hobbes`anyone know how to "reset" a huwaei dongle? ttyUSB2 shows RSSI info but ttyUSB0 doesn't respond.
05:02.13Hobbes`I've tried unbinding/binding the usb device.. it's still in the same state
05:02.56cyford${ISNULL(${SIPPEER(${EXTEN},codecs)})}
05:03.18PenguinNow put that inside your GotoIf().
05:03.55PenguinIf ${SIPPEER(${EXTEN},codecs)} is a null value, it will return TRUE.
05:04.01Penguinor 1
05:04.26cyfordexten => _300X,n,GotoIf($["${ISNULL(${SIPPEER(${EXTEN},codecs)})}" = ""]?31:100)
05:04.35Penguinno
05:04.39[TK]D-Fendercyford, No need for an expression anymore...
05:04.48PenguinNo quotes, no comparison to another string.
05:05.01PenguinThe ISNULL() does all the work.
05:05.07cyfordexten => _300X,n,GotoIf($[${ISNULL(${SIPPEER(${EXTEN},codecs)})}]?31:100)
05:05.18[TK]D-Fendercyford, NO EXPRESSION.
05:05.47cyfordok u got me,  whats an expression
05:05.50[TK]D-Fender$[] <-------------
05:06.03[TK]D-FenderYou need some serious sit-down time with the book.
05:06.10[TK]D-FenderYou don't ahve any of your basics
05:06.12PenguinWhile it won't have any adverse effect, it's probably not needed.
05:06.24cyfordexten => _300X,n,GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?31:100)
05:06.26[TK]D-FenderPenguin, Not sure what happens when there's no operator
05:06.42[TK]D-Fendercyford, Now ditch the 31
05:06.56PenguinIf the tested value inside the ISNULL function is null, it returns a 1.
05:07.29PenguinDo you want to jump to 100 if that SIPPEER thing is actually null?
05:07.42cyfordok,  but this seems like prorammin shit an not basic dial plan lol
05:07.50PenguinIt's very basic dial plan.
05:07.54cyfordprogramming*
05:08.08PenguinOddly, writing dialplan is a form of programming.
05:08.33PenguinSo do you want to go to 100 or 31 if it is null?
05:09.19cyfordif codec is null 31
05:09.29cyford<PROTECTED>
05:09.34PenguinIf it exists, you want to go to 100?
05:09.39cyfordchannels
05:09.45PenguinGotoIf(${EXISTS(${SIPPEER(${EXTEN},codecs)})}?100)
05:09.56PenguinGotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:100)
05:10.00[TK]D-Fenderthat works to in the reverse sence
05:10.33[TK]D-FenderTechnically EXISTS is the forward-logic method for this so you don't deal with an ELSE
05:10.45[TK]D-FenderAnd saves that valuable byte
05:11.02cyfordnice
05:11.31[TK]D-Fender<PROTECTED>
05:11.32cyfordi hardly think i can duplicate this.   but i can defifinitly use i
05:11.34cyfordit
05:12.06PenguinYeah, 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.10cyfordi dont get the number tk  what ya mean
05:12.26cyfordaww i see
05:12.32PenguinGotoIf(${EXISTS(${SIPPEER(${EXTEN},codecs)})}?labelIfTrue)
05:12.38PenguinGotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:labelIfFalse)
05:12.44[TK]D-Fenderthat 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-FenderYou don't HAVE to have a TRUE target if you just want to jump on FALSE.
05:13.46Penguinas seen in my two separate examples
05:14.32cyfordoic  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-Fenderyes
05:15.07[TK]D-FenderGo nowhere.  Continue
05:22.27cyfordYAT  it worked
05:25.34[TK]D-FenderThat's Round 1 of logic
05:25.56cyfordspoke to soon, next line doesnt work
05:26.17cyforddidnt go to line 31
05:26.26cyfordif faulse
05:26.30[TK]D-Fenderthe 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.34cyfordi mean if true
05:27.02[TK]D-Fendershow us
05:30.38cyfordohh nvm  it worked before,  i forgot change priority after copying line
05:35.17cyfordexten => _300X,29,GotoIf(${ISNULL(${SIPPEER(${EXTEN},codecs)})}?:100)
05:35.18cyfordexten => _300X,30,GotoIf(${ISNULL(${PJSIP_ENDPOINT(${EXTEN},allow)})}?:200)
05:35.18cyfordexten => _300X,31,GotoIf(${ISNULL(${IAXPEER(${EXTEN},codecs)})}?:300)
05:36.16cyfordyes that did cut down 50%
05:36.21cyfordthanks
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-FenderI can cut the NEXT 50% just the same
05:38.47[TK]D-FenderAnd that was a start of 8 line you had.  So the first round knocked off 5.
05:39.11[TK]D-FenderAnd that's without the supporting targets of your GotoIF's
05:43.26cyfordim 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.53cyfordohh nvm
05:44.04cyford<PROTECTED>
05:44.53cyfordexten => _300X,30,ExecIf(${ISNULL(${PJSIP_ENDPOINT(${EXTEN},allow)})}?:200)
05:45.44[TK]D-FenderHave you vaguely consindered reading the instructions for these things before inventing syntax out of thin air?
05:47.52cyfordi have read many things,.
05:47.59cyford<PROTECTED>
05:48.13cyford<PROTECTED>
05:48.42cyfordasterisk has pages,  and most sufe i read and dont know how i can use
05:48.50[TK]D-FenderBut 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.54cyfordmost stuf*
05:49.23cyfordwel it seemded logical there
05:49.40[TK]D-FenderBased on what?  What do yout think it means?
05:50.01cyford<PROTECTED>
05:50.14[TK]D-FenderHow does what you're giving it make it anything different than a Gotoif?
05:51.51cyfordif 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.29cyfordill research it now
05:52.37[TK]D-FenderYou still haven't leard to use CLI to read the INSTRUCTIONS for these applications & functions you're using.
05:53.37cyfordyeah cli always gave me info from something,  and not the actial dialplan structure or excample
05:54.29[TK]D-FenderIf gives you the exact structure
05:55.06cyfordohh i een going to https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_PJSIP_ENDPOINT
05:55.14[TK]D-FenderDo you need for gotoif to tell you "500" for the target?  How does it know you have a 500?
05:55.45cyfordbecuase i made a 500
05:56.09cyfordexten => _300X,500,Set(location=${DB(SIP/Registry/${EXTEN})})
05:56.22cyfordexample
05:56.29[TK]D-FenderBut you didn't need a sample with 500 in there
05:56.36[TK]D-FenderIt said to put a priority or label there
05:56.56[TK]D-FenderIt says what each parameter and piece yopu pass it is supposed to be
05:57.01cyfordyeah i did lables in some examples
05:57.29cyfordexten => _300X,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
05:58.27cyfordin this senerieo  i have sip  100   pjsip 200  and iax 300
05:58.32[TK]D-Fenderwell 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.15cyfordok, thanks bro for tonights lesson
05:59.34cyfordtommorow,  i will have something that would surprise ya
05:59.39cyford:)
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.27jacobkiersHi, 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.35jacobkiersDoes anyone know how I can debug this?
09:14.32jacobkiersAsterisk 13.1.0 / Linux asterisk06 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 GNU/Linux
09:17.49ChannelZAre you using PJSIP?
09:19.31WIMPyUgh. 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.36jacobkiersChannelZ: yes
09:19.46ChannelZWhat version did you build?
09:20.01jacobkiers13.1.0
09:20.15ChannelZno, of pjsip
09:20.25jacobkiersOh. Where can I find that?
09:20.27*** join/#asterisk CeBe (~CeBe@port-92-200-116-216.dynamic.qsc.de)
09:20.39jacobkiersI’m not completely sure.
09:20.50ChannelZI guess you installed an asterisk package then
09:21.11jacobkiersNo, I compiled Asterisk on Debian Wheezy (with some backports).
09:21.34ChannelZok.. then you had to have built pjsip at some point if you're using it
09:21.40jacobkiersI think pjsip came from the backports. Let me check.
09:22.11jacobkiersVersion 2.1.0.0
09:23.07ChannelZhmm
09:24.13ChannelZOnly thing I can suggest is something goofy with that version or particular build of pjsip
09:24.34ChannelZI'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.45jacobkiersOk.
09:25.00jacobkiersWe could try rebuilding against another version of pjsip.
09:25.39ChannelZI 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.55ChannelZDoes it segfault immediately when you start asterisk or is it happening after a time?
09:33.01jacobkiersAfter 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.22Kattyfenderbender.
14:13.43*** join/#asterisk sparetire_ (~sparetire@unaffiliated/sparetire)
14:18.23goseepedhi , 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.00Tuju_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.47newtonrTuju_, what do you mean mixed?
15:16.37*** join/#asterisk nicknam1232 (5f96cb66@gateway/web/freenode/ip.95.150.203.102)
15:17.00Tuju_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.47Tuju_that wrong trunk in host B was visible with sip show channel..... command in host B end.
15:18.26Tuju_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.56Tuju_maybe this is the problem:   Received Address:       172.16.1.1:5060
15:26.11Tuju_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.00newtonrI don't understand what you are saying.
15:28.48newtonrIf a call is going to the wrong *system* then a port conflict is likely not an issue.
15:29.33Tuju_there are only two hosts and hence "systems".
15:30.00Tuju_somehow the incoming call ends up into wrong context.
15:30.22Tuju_i tried to find asterisk docs but those haven't been written yet, as i see. :-(
15:30.35Tuju_mysql had the same situation for years.
15:30.54Tuju_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.10newtonrTuju_, 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.37Tuju_newtonr: yep, i checked that. there is no docs about sip.conf syntax.
15:35.44[TK]D-FenderTuju_: The incoming call is matching the first of the 2 peers you've created and thus going to that peer's context
15:36.17Tuju_[TK]D-Fender: hmmm....
15:37.00newtonrTuju_, the sip.conf.sample file is the sip.conf documentation.  There are docs about general config file syntax on wiki.asterisk.org
15:37.20Tuju_newtonr: that's what i was saying, there is no documentation.
15:37.54[TK]D-FenderYes there is
15:38.01newtonrTuju_, the sip.conf file syntax follows pretty much the same syntax as all of the other config files
15:38.02[TK]D-FenderThere are multiple WIKIS, books, etc
15:38.15Tuju_[TK]D-Fender: i thought that the particular peer would have been mapped from register => line's last argument.
15:38.26Tuju_[TK]D-Fender: i haven't found that then.
15:38.33[TK]D-FendertuNo, there is NO relationship between a peer & a register statement
15:38.48Tuju_[TK]D-Fender: a common practise that docs are found from project's domain. :)
15:38.54[TK]D-FenderTuju_: Call comes in and gets matched against your peers in order
15:39.05*** join/#asterisk cyford (~allen@76.122.73.37)
15:39.18Tuju_[TK]D-Fender: if so, then it matches to second peer.
15:39.21mjordaner, wiki.asterisk.org? Which is linked from asterisk.org?
15:39.27[TK]D-FenderTuju_: Your calls happen to match the same peer based on how you defined them
15:39.29mjordanConfig file syntax: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Configuration+Files
15:39.31Tuju_mjordan: show me the url.
15:39.42mjordanthere you go.
15:40.02mjordanwhich is linked from asterisk.org: http://www.asterisk.org/community
15:40.20Tuju_mjordan: in that given url there is no sip.conf syntax described.
15:40.34[TK]D-FenderTuju_: it's in the sample config
15:40.48[TK]D-FenderTuju_: Which comes with * itself
15:40.56Tuju_sample is a sample, it is not documentation.
15:41.00mjordanoh good lord
15:41.10mjordanif you want an argument, I'll pass
15:41.12mjordangood luck
15:41.19[TK]D-FenderTuju_: Samples can be documentation
15:41.32newtonrTuju_, I just told you that the sip.conf syntax is the same as the other files.   :)
15:41.38Tuju_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-FenderTuju_: If you need a 3 paragraph story for each little parameter well... then that's a different story.
15:41.49[TK]D-FenderTuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/
15:42.04Tuju_[TK]D-Fender: in your opinion samples can be docs, a lot of people disagree.
15:42.22[TK]D-FenderTuju_: Well in here .... it's just you.
15:42.31Tuju_a documentation covers systematic descriptions of all possible syntaxes.
15:42.36Tuju_those samples do not.
15:42.38[TK]D-FenderTuju_: We'll cite you as a reference for the next guy who asks the same...
15:42.51newtonrYup I'm out on this one! Time to make tea.
15:42.54[TK]D-FenderTuju_: Really?  What is the sample missing?
15:43.15[TK]D-FenderTuju_: What syntax does it skip?
15:43.18Qwell[TK]D-Fender: The exact config he needs for his particular scenario.
15:43.33Tuju_[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-FenderQwell: Nope.  that isn't "syntax.
15:44.04[TK]D-FenderTuju_: maybe there isn't as much to say about Asterisk's configs
15:44.22Tuju_you're just laying if you claim that asterisk has documentation.  it doesn't.
15:45.01[TK]D-FenderTuju_: 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.13Tuju_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.33Tuju_special case is exactly what i'm not after.
15:45.38[TK]D-FenderTuju_: You said there is missing samples/explanation for syntax.  Tell us specifically what piece you were missing.
15:45.47Tuju_docs cover _all_possbile_syntaxes_systematically_
15:46.00Tuju_i did not say so.
15:46.00[TK]D-FenderTuju_: You don't get to say "you're missing stuff" and not show us a solid example.
15:46.18[TK]D-FenderTuju_: What specifi syntax was exluded?
15:46.19Tuju_you're putting words to my mouth.
15:46.33Tuju_[17:45] <Tuju_> docs cover _all_possbile_syntaxes_systematically_
15:46.47Tuju_how hard is that to understand?
15:47.11Tuju_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.32infobotAsterisk: 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-FenderHere's a free book.  It's been avaiable in multiple releases over the years
15:47.46Tuju_that's another topic.
15:48.10[TK]D-FenderIt's written by several Asterisk dev's and other digium employees.
15:48.11Tuju_I still keep my opinion, that Asterisk does not have docs. It has examples and a book.
15:48.18[TK]D-FenderMight as well be considered "official"
15:48.24[TK]D-FenderBook = doc
15:48.30[TK]D-FenderAnd it's HTML on-line
15:48.34Tuju_And it's probably a real good book about topic.
15:48.37KattyTuju_: may i make a suggestion?
15:48.44*** join/#asterisk superscrat (~asanders@nat/digium/x-yopbsceqnmxxrbnk)
15:48.46Tuju_Katty: go ahead. :)
15:48.51QwellKatty: is it "go away"?
15:49.07KattyTuju_: if you don't like what's currently available, then take charge, make it your own. you write a book on it (=
15:49.18KattyTuju_: help others in the community and make the project better.
15:49.23KattyTuju_: that's what this is all about!!
15:49.24[TK]D-FenderTuju_: So we've got the book (the more definitive one), and complete samples with descriptions.
15:49.30Tuju_Katty: if you didn't notice, I'm just doing it.
15:49.36KattyTuju_: that's great!!!
15:49.53KattyTuju_: i look forward to reading it, too!
15:49.53Tuju_part of the process is admitting that we have a problem.
15:50.08Tuju_and we haven't solved that first part yet.
15:50.14KattyQwell: no it's not go away :P
15:50.37Qwell"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.38KattyTuju_: and that's the beauty of the community. we can each do something to make it a little better!
15:51.24Tuju_you could admit, that majority of other projects have tackled that given topic in a way i've just described.
15:51.49Tuju_instead you suggest me going away. :)
15:52.17Tuju_if they did it so - maybe I'm not that wrong after all?
15:53.00Tuju_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.58Tuju_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-Fenderhttp://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup
15:57.38[TK]D-FenderLine 767 starts a paragraph conrning your question about registration vs matching callsdescribes t
15:58.40[TK]D-FenderLine 767 starts a paragraph concerning your question about registration vs matching calls
15:58.44[TK]D-Fendercan't type today
16:01.56*** join/#asterisk sommarnatt (~sommarnat@c83-248-211-40.bredband.comhem.se)
16:02.16Tuju_hmmm...
16:02.53Tuju_i think my problem is that call comes in with ip address in sip headers - instead of domain.
16:03.02Tuju_and hence it doesn't get mapped into those two first lines.
16:05.10[TK]D-FenderTuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup
16:05.14[TK]D-FenderTuju_: 1091
16:05.19Tuju_[TK]D-Fender: yep, you're right on that 767.
16:05.39Tuju_i got that impression from some other web page.
16:05.59Tuju_i think i have the url somewhere safe "because it was so good instructions."
16:06.00[TK]D-FenderTuju_: What is this "some other web page"?
16:06.54Tuju_[TK]D-Fender: yep, i have those 1091 row domains defined.
16:07.02Tuju_I look if i can find that url
16:07.22*** part/#asterisk bulkorok (~Benjamin@85.183.61.47)
16:16.55Tuju_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-FenderTuju_: Didn't bother to actually bookmark it?
16:17.44[TK]D-FenderTuju_: And no browser history?
16:17.44Tuju_i typically use .txt files
16:18.03Tuju_for example firefox hoses all its bookmarks if disk gets full.
16:18.16Tuju_i don't save there anything.
16:18.31[TK]D-FenderTuju_: If your system run out of disk space and seize up like that... you've got real issues
16:18.46Tuju_what 'size up' ?
16:19.10[TK]D-Fenderseize = freeze / lock / fail
16:19.12[TK]D-Fendernot "size"
16:19.16[TK]D-Fenderthat was not a typo
16:19.30Tuju_if you have firefox in your computer, you've the same "real issues".
16:20.29[TK]D-FenderTuju_: Of running out of space?
16:20.47Tuju_it's a feature. in firefox.
16:20.56[TK]D-FenderTuju_: 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-FenderTuju_: What feature in Firefox makes me run out of disk space?
16:21.17Tuju_yes, disks are not indefinite.
16:22.27[TK]D-FenderTuju_: Well if you ignore the "low gas" warning on your car you'll deserve what's coming there too.
16:23.18Tuju_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-FenderTuju_: either is a sign of a bad driver
16:24.22Tuju_i kind of start understanding why asterisk doesn't have docs.
16:24.33[TK]D-FenderTuju_: So let us know when you find whatever link it was that gave you the impression you walked in here with.
16:24.44Tuju_i'm googlin it atm.
16:24.51[TK]D-FenderTuju_: Again, a very full & verbose book is a doc.
16:26.03[TK]D-Fender2" thick dead-tree publication with free on-line browsing = incontrovertible documentation.
16:26.30[TK]D-FenderBig story and big background in general.
16:27.13[TK]D-FenderTuju_: 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.18gmalsackmjordan: I've acquired the valgrind output and created a bug tracker report.
16:35.24gmalsackhere'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.46mjordanit'll be slow as mollases
16:38.09gmalsackthey 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.31mjordanto be frank, I'm not sure how you're getting those errors. Which codec modules are you loading?
16:39.58mjordanyou mentioned codec_g729. Which one from the Digium download site are you using?
16:42.50gmalsackjust 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.12mjordansome of those line numbers don't match up either. Is it an unmodified version of 13.1?
16:43.34gmalsackyes, I downloaded fresh source.
16:46.30Tuju_[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-FenderTuju_: that is at least an old revision of the book I've been linking you to.
16:47.07Tuju_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.25Tuju_[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.23Tuju_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-FenderTuju_: Copyright © 2007, 2005 O’Reilly Media
16:48.57Tuju_i makes perfectly sense that you said, as my config doesn't work atm.
16:49.14Tuju_[TK]D-Fender: so it's different source/author
16:49.26[TK]D-FenderTuju_: What you based your judgement on was a singular book published 8 years ago.
16:49.37[TK]D-FenderTuju_: No, same authors (more or less)
16:49.38Tuju_anyway, docs look good - it's just wrong, apparently.
16:49.48[TK]D-FenderTuju_: Which is wrong?
16:49.54Tuju_that mapping.
16:50.02Tuju_or then it's wrong version.
16:50.04[TK]D-FenderTuju_: And don't forget you just stated that an assumption you made was wrong.  Not something it said.
16:50.33[TK]D-FenderTuju_: Don't put words in its pages! :)
16:50.48Tuju_it would have been perfectly logical that there would have been a connection between register line and peers.
16:51.12[TK]D-FenderTuju_: If the doc doesn't say it then nothing green-lights your assumption.
16:51.23Tuju_in meantime, i did find something else interesting while looking that.
16:51.43[TK]D-FenderTuju_: Sure.  What now?
16:51.48Tuju_like this http://ronnybull.com/2014/02/01/asterisk-sip-trunk-settings-obivoice/ didn't delve into it yet.
16:52.31Tuju_this http://www.layerfour.net/portal/knowledgebase.php?action=displayarticle&id=43 seemed to repeat that same /osaka error.
16:52.46Tuju_partially, not eaxctly.
16:53.05Tuju_http://www.beardy.se/how-to-set-up-a-sip-trunk-in-the-asterisk-pbx related
16:53.31[TK]D-FenderTuju_: http://svnview.digium.com/svn/asterisk/branches/13/configs/samples/sip.conf.sample?revision=423069&view=markup <- 744
16:53.37[TK]D-FenderTuju_: Expressly tells you otherwise
16:55.31Tuju_indeed - peer is not the same as 'extension'.
16:56.10[TK]D-FenderTuju_: 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-FenderTuju_: 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.20Tuju_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-FenderTuju_: 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.14Tuju_yes, that struck into my eye too.
17:02.28[TK]D-FenderTuju_: 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-FenderTuju_: When I hear "On the user forums", I automatically think "firing squad".
17:02.59Tuju_apparently that's the case.
17:03.49Tuju_and those forks don't make it any easier.
17:03.53[TK]D-FenderTuju_: What else can wel help you with?
17:04.00Tuju_:)
17:04.05[TK]D-FenderTuju_: was "forks" a typo?
17:04.29Tuju_a fork?
17:04.49Tuju_i thought there were many.
17:05.49Tuju_btw, i had an idea, why not create a DNS-BL service that has DNSserver and asterisk.
17:06.09Tuju_and then we all route these pisher phone numbers into that asterisk.
17:06.30Tuju_and whenever a pishing attempt happens, that service gets all pisher's information.
17:06.39Tuju_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.18Tuju_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-FenderTuju_: I think I have heard of such a collection group before.
17:08.24Tuju_[TK]D-Fender: i'm not sure, i guess got the feeling while googling.
17:08.39[TK]D-FenderTuju_: There are also full-country lists so you can firewall against zones you know you don't care about.
17:08.59[TK]D-FenderTuju_[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.49Tuju_let's keep LoTR out still, shall we? SW will do.
17:09.53[TK]D-FenderThere was maybe 2 Asterisk forks ever and they have been long dead and with virtually no mention
17:10.09[TK]D-FenderTuju_: plenty of SW to go around...
17:10.51Tuju_that i just suggested, would be a distributed response to a distributed pishing attempt.
17:12.15[TK]D-FenderTuju_: Depends how trustworthy you consider the contributors.
17:12.19Tuju_the part that i didn't figure out yet, was that how to distinguish those pishing numbers.
17:12.40Tuju_[TK]D-Fender: here we have eID's. That's pretty solid stuff.
17:13.07Tuju_you need to die to get rid of your fuckups. hence it doesn't happen.
17:13.11[TK]D-FenderTuju_: 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.45bgmCoderHello all!  Anyone know where I can find a list of all the number commands in the Asterisk Menus?
17:13.51Tuju_i was thinking an iptables filtering.
17:15.25[TK]D-FenderTuju_: fail2ban + iptables is the current paradigm
17:15.43[TK]D-FenderbgmCoder: What "menus"?
17:15.46Tuju_fail2ban fails being single-host implementation.
17:16.09*** join/#asterisk afournier (~admin@46.255.181.29)
17:16.12[TK]D-FenderTuju_: You could also create your own distribution method for what it generates.
17:16.14Tuju_i need distributed, firewall is own system in close network.
17:16.30Tuju_[TK]D-Fender: i know, I already talked with fail2ban folks about that.
17:16.34bgmCoderHi, 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-FenderTuju_: 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-FenderTuju_: And could be faulty.
17:17.08Tuju_with enough reports you could distinguish those.
17:17.14[TK]D-FenderTuju_: 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-FenderTuju_: 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.35Tuju_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-FenderTuju_: I've used both methodologies in the past so .... there's your "practical".
17:21.06[TK]D-FenderTuju_: 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-FenderTuju_: And I am proteecting my system against stuff that IS happening now.
17:21.29Tuju_that ties a person, too expensive.
17:21.48[TK]D-FenderTuju_: From a practical standpoint, that is entirely real and the solution self-contained therefor more resilient
17:21.56[TK]D-FenderTies a person?  how so?
17:22.16Tuju_you said "I nail them"
17:22.34Tuju_i presumed that includes a hammer and nails, a person?
17:22.46[TK]D-FenderTuju_: Firewall at that server directly
17:23.43Tuju_anyway, i need to call my bookkeeper and she's out-of-reach because my config. :/
17:23.52[TK]D-FenderTuju_: 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.58Tuju_if that's the cause, that my connections come in without DNS name in headers, what could cause that?
17:25.15Tuju_i assume that there are ip addresses. :-/
17:25.32[TK]D-FenderTuju_: connections from where?
17:25.41Tuju_between my two asterisk boxes.
17:26.47[TK]D-FenderTuju_: It might if you used a FQDN as the hostname
17:27.19Tuju_i have fqdn everywhere imo.
17:27.30Tuju_and still ip-addresses in packets.
17:28.56[TK]D-FenderTuju_: 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.24Tuju_i know. i first try with those web pages if it's somethign small.
17:29.42Tuju_btw, postifx has a tool called 'postconf'
17:29.53Tuju_it dumps configuration
17:30.16Tuju_if something like that would also strip all auth info away, it would be awsome.
17:39.00[TK]D-FenderTuju_: it's be trickier with * as there are several places you could have auth.
17:39.28[TK]D-FenderTuju_: 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-FenderTuju_: other conf files "depends".
17:40.19goseepedhi , 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.28Tuju_i know and the same applys to manual dumps
17:40.51[TK]D-FenderTuju_: 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.25cyfordshould set work  for system commands like this,  or would i need use system instead
17:44.27cyfordSet(location=(cat /etc/asterisk/pushuri.conf | grep -R 3003  | cut -d " " -f2))
17:45.15[TK]D-Fendercyford: 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-FenderCySo yes you obviously need to call an Application or Funtion to do a system call
17:47.23beardyTuju_: [TK]D-Fender, is there anything incorrect in my post? (which now is quite old, so things might very well have changed)
17:47.57Tuju_beardy: i didn't notice anything.
17:48.21Tuju_beardy: at least you saw effort to make it clear and readable.
17:49.18[TK]D-Fenderbeardy: I missed your question somewhere
17:50.04cyfordtk  im guessing !=  means not equal?
17:50.41beardy[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-Fenderbeardy: relink it.
17:51.17[TK]D-Fenderbeardy: I've just lost tracka bit.
17:51.53beardy[TK]D-Fender: Ah. :) http://www.beardy.se/how-to-set-up-a-sip-trunk-in-the-asterisk-pbx
17:52.09goseepedhi , 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.57beardyAnyway.. I've thought about rewriting it, and some more guide/tutorial style things, any year now..
17:53.20goseepedmjordan: 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-FenderbeadyYour syntax is deprecated a bit, and there are things it doesn't say which it could... but isn't too far off
17:56.26beardy:)
17:57.54Kattyfenderbender
17:58.07[TK]D-Fenderbeardy: host=dynamic        ; The device must always register <- this is actual innacruate
17:58.29cyford[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-Fendercyford: the entire point of Set() ... is to set variables.
17:59.10[TK]D-Fendercyford: (and functions)
17:59.21[TK]D-Fendercyford: Rethink your question....
18:00.06cyfordcan i set a variable using system commands for asterisk
18:00.30Kattyyou mean, can you pipe bash into asterisk?
18:00.52beardy[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-Fendercyford: Depends on what you return
18:01.08[TK]D-Fendercyford: What are the connads that let you execute such commands?
18:01.33[TK]D-Fenderbeardy: either change the comment to be true, or the config so the comment is true :)
18:01.57beardy[TK]D-Fender: Was it true when it was written? ;)
18:02.00cyfordsystem lets me execute it.  but set stores it
18:02.24cyfordKatty  i need make something like this possible Set(location=(cat /etc/asterisk/pushuri.conf | grep -R 3003  | cut -d " " -f2))
18:02.37Qwellcyford: core show function SHELL
18:02.51beardyI 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.42cyfordlovelly  ,  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.07beardy[TK]D-Fender: I'm not sure I agree with it being inaccurate. Perhaps the "always" is misleading though.
18:34.42[TK]D-Fenderbeardy: If it isn't want it says.  Then it is inaccurate.
18:35.47beardy[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-Fenderbeardy: TO the device, yes.  From = no
18:37.53Tuju_now i took those extensions away from register => line and get "Peer is not supposed to register"
18:38.07[TK]D-Fendernot related...
18:38.22Tuju_and "sip show registry"  shows that "No Authentication"
18:38.39[TK]D-FenderTuju_: you are getting that because you set a FIXED HOST and the other side is trying to register
18:38.48Tuju_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.56Tuju_aaa, yes.
18:38.56[TK]D-FenderTuju_: The point of registration is telling the otherside where to contact you.  When that is fixed... no-go
18:39.24Tuju_indeed.
18:39.33[TK]D-Fendercolour=brown.  I choose yellow.  YOU'RE NOT ALLOWED TO CHOOSE!
18:42.43Tuju_sip show channel 07.......    "  Original uri:           sip:2221@172.16.1.1:5060"
18:43.01Tuju_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.00goseepedmjordan: 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.20mjordanI 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.32Tuju_[TK]D-Fender: ha, i found the problem.
19:39.53Tuju_in receiving end, there must be "realm=<domain>"
19:40.20Tuju_that maps the incoming call to correct configuration where correct context is given and so on.
19:41.44Tuju_damn i've fought for this issue. days, not hours but days.
19:42.03Tuju_persistance won again. regardless that i feel physically shit right now.
20:09.41*** join/#asterisk rightonbro (~textual@76.91.195.245)
20:17.41gmalsacknewtonr: 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.00chris0x00I'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.41chris0x00other channels (SIP, IAX) entering the same dialplan context ringback, so I don't think it's with my extensions.conf syntax
21:03.26chris0x00after answer() audio passes in both directions OK on the DAHDI channels
21:05.32chris0x00I 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.06chris0x00so 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.00chris0x00I've considered creating a MoH file of a standard US ringback and answering the line while waiting for a CSR to answer
21:07.08chris0x00but that seems wrong... :)
21:09.08*** join/#asterisk drale_ (~drale@unaffiliated/drale)
21:09.11cyfordshould this work
21:09.13cyfordexten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}?120:121)})
21:10.35[TK]D-Fendercyford: No
21:10.50[TK]D-Fendercyford: Count your backets.  And stop using numbered priorities!
21:11.01drale_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-Fenderbrackets*
21:11.17drale_Any configs with dtmfmode are commented out
21:11.56[TK]D-Fenderdrale_: You should be setting your mode explicitly in your peer
21:12.26drale_So I should check the phones themselves?
21:12.45[TK]D-Fenderdrale_: each side should AGREE with Asterisk
21:13.04[TK]D-FenderAsterisk will translate between them
21:17.03drale_Ok i found in one phone "Force RFC2833 Out-of-Band DTMF" Enabled., DTMF Method: RTP
21:17.09chris0x00seems 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-Fenderdrale_: No SIP PHONE you should ever buy (or find) should even be using inband
21:18.33drale_Ok.
21:18.38[TK]D-Fenderdrale_: a PROVIDER my force taht on you... but that doesn't mean you should use that for your phones
21:19.01[TK]D-Fenderdrale_: * just neext to agree with each leg.  The legs themselves don't have to agree
21:19.06[TK]D-Fenderneeds*
21:19.13chris0x00I hate out of band dtmf, ruins all the touch tone songs
21:19.35chris0x00plus talk off, etc
21:19.41drale_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.50mjordanchris0x00: no idea why ringback wouldn't work, but you could always use PlayTones
21:21.05chris0x00mjordan: That's a better idea than music on hold, thanks
21:21.11[TK]D-Fenderdrale_: If they are asking for it .... you are going to follow them.  or else.
21:25.52cyford[TK]D-Fender   my bracet count seems fine to me
21:27.47drale_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.50Johnny5_chris0x00: DAHDI 2.10.0.1 has a hotfix for that issue.
21:35.10chris0x00Johnny5 is alive! Thanks mate
21:35.25chris0x00I'll try that now
21:35.37Johnny5_(Only for US tones)
21:35.41chris0x00sorry, couldn't help obligatory short circuit reference
21:35.53chris0x00yeah, this is US, sounds like a winner
21:37.43[TK]D-Fendercyford: You placed them wrong
21:38.07[TK]D-Fendercyford:exten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)}?120:121)})
21:38.38[TK]D-Fenderthose priorities (which you shouldn't be using) belong in that OUTER ")" wiuth no } on either side
21:39.01[TK]D-Fendergo fix your function calls
21:39.08[TK]D-Fenderheads home
21:47.32cyfordpl,  this looks better right
21:47.34cyfordexten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}?AddCache)
21:53.36chris0x00Johnny5_: thanks that fixed it
21:53.37*** join/#asterisk t4nk909 (47b7c9e2@gateway/web/freenode/ip.71.183.201.226)
21:53.44t4nk909Hi is anyone here
21:54.09newtonrNope! :)
21:54.11newtonr~ask
21:54.11infobotQuestions 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.28t4nk909sorry my first time here
21:54.43newtonrt4nk909, no worries!
21:54.47t4nk909I run asterisk 1.4.11 on ubuntu server
21:54.55t4nk909my issue is with machine detection
21:55.47t4nk909When my clients press a key to quick  it is not detected as a human
21:56.23t4nk909if they press after they are prompted it works, im playing with AMD() but I am a little stumped
21:56.54t4nk909because If I put AMD() before the prompt then there is silence, if I put it after then it is too late
21:58.44newtonrWell. 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.14t4nk909I know it is old bro, I just need some pointer
21:59.26t4nk909How do you manage to detect DTMF then?
22:00.07WIMPyusually uses Read() and sometimes WaitExten(). Never used AMD, either.
22:00.32newtonrBackground() or WaitExten for me usually
22:00.55chris0x00dang, I didn't even know about AMD(), I created an AGI to do that sometime ago :s
22:01.37chris0x00t4nk909: 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.44newtonrt4nk909, 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.15chris0x00from 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.10t4nk909because I first play a sound
22:06.16t4nk909using AGI()
22:06.27t4nk909this sounds prompt the user to press a key
22:07.34chris0x00Ah, OK, then yes, probably use app Background instead of Playback if you are using Playback
22:07.54chris0x00if they press early Background will grab the digit
22:08.07t4nk909Thats the thing I dont use Background
22:08.16chris0x00What are you using?
22:08.37t4nk909because I need AGI to use a php script , query my db then play the sound file
22:08.48chris0x00You can use Background in your AGI
22:08.50t4nk909thats why I did it like that
22:09.01lordvadrI'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.14t4nk909right from the PHP
22:09.17t4nk909or the dialplan
22:09.21chris0x00right in PHP
22:09.48t4nk909is that phpagi?
22:10.01t4nk909I see it when browsing?
22:10.06chris0x00I 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.06chris0x00but the long and short of it is you can use EXEC BACKGROUND
22:13.19t4nk909I can probably send the variable back to dialplan as well?
22:13.25t4nk909then use background?
22:14.04chris0x00t4nk909: 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.35chris0x00you can use SET VARIABLE to make it available to the dialplan
22:14.57chris0x00sorry, I know this isn't as helpful as it could be, I just have no experience with phpagi
22:15.58t4nk909yes chris
22:16.05t4nk909I dont wanna use phpagi
22:16.19t4nk909I want to do like you say
22:16.36t4nk909actually currently I use STREAM "soundfile"
22:16.40chris0x00I think you'll find it easier to do than you might expect after a little bit of an initial headache
22:17.00chris0x00you can use EXEC and then any application available to asterisk, EXEC BACKGROUND "soundfile"
22:17.45chris0x00even third party applications, I've used it with Swift() for example
22:18.06mjordanlordvadr: 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.54chris0x00t4nk909: 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.58lordvadrmjordan: 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.58chris0x00s/that/the
22:20.33WIMPylordvadr: To 10? Bad idea.
22:20.34lordvadrPart 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.52newtonrlordvadr, 10 is EOL  https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
22:21.22lordvadrMy bad, 11 is what's on the list.
22:21.26t4nk909chris just to confirm
22:21.41WIMPylordvadr: How many bugs did you find?
22:21.49lordvadrWIMPy: 3
22:22.04lordvadrOne of this isn't fixed in the source.
22:22.12WIMPySounds managable.
22:22.16t4nk909fwrite(STDOUT, "EXEC BACKGROUND <soundfile>);
22:22.27t4nk909Thats all I need to change?
22:22.40WIMPylordvadr: So you already know the current situation? What's the open one?
22:23.29lordvadrNo, 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.33WIMPyIf it's something important, I don;t understand why you don't have a spare box. What if one dies?
22:24.43lordvadrOne 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.45newtonrGenerally "try latest version" means try the latest version in your test environment where hopefully you can reproduce the issue.
22:24.56lordvadrWIMPy: We have 2 servers, each with 4 PRI's.
22:25.21chris0x00t4nk909: quote the soundfile name I think, not sure if it is required, but I usually do it
22:25.23lordvadrnewtonr: Problem is that I don't have a testing $500/mo PRI to Windstream.
22:25.40lordvadrnor do I have a DMS500 sitting around either.
22:25.50WIMPylordvadr: Get another card and connect two test boxes to each other.
22:25.53chris0x00t4nk909: but yes, that is what I am saying
22:26.00WIMPyOr get a tester.
22:26.31WIMPyAlthough I'm not sure how many testers would be good for stress testing channel allocations.
22:26.35lordvadrWIMPy: I have a tester.  None of the problems crop up until you start hitting high call volume.
22:27.03cyfordshould this work,
22:27.04WIMPyThat's where another Asterisk would help.
22:27.06cyfordexten => _300X,n,GotoIf(${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}?AddCache)
22:27.26lordvadrAnd we were unsure if asterisk switching the call from PRI to PRI would fiddle with it too much.
22:27.53lordvadra couple of them were improper implementation of q.931
22:28.15WIMPyI know. Channel allocation has been a littel iffy.
22:28.51lordvadrYeah, 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.11t4nk909Thanks chris this is priceless im implementing now
22:29.14WIMPyOne of teh reasons I switched all but one box to mISDN.
22:29.23t4nk909You mention "that biggest caveat is just remembering to read all the data waiting on stdin"
22:29.33t4nk909should I do it with fgets
22:29.52WIMPyBut there is hope that DAHDI got it correct by now.
22:30.22chris0x00t4nk909: whatever you like, just make sure you read it until there is no more input waiting
22:30.52chris0x00t4nk909: 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.42chris0x00good luck, I'm out of here, thanks again to mjordan, Johnny5_, et al. for the assitance
22:33.22lordvadrWIMPy: 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.19WIMPylordvadr: 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.07cyford[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.27cyfordalso tryed exten => _300X,n,GotoIf($[${ISNULL(${SHELL(cat /etc/asterisk/pushuri.conf | grep -R "${EXTEN}" | cut -d " " -f2)})}]?:AddCache)
22:50.00cyfordeverything returns null for some reason
22:50.30[TK]D-Fendercyford, break it down
22:53.31cyford<PROTECTED>
22:55.41*** join/#asterisk ruben23 (~OpenDIAL@112.198.99.89)
22:55.45[TK]D-Fendercyford, No. As is just OUTPUT the function outside of an expression, etc
22:55.48WIMPyIs there any other hardware apart from Digium and Sangoma using DAHDI?
22:55.54[TK]D-Fendercyford, Prove your actual shell command is sane
22:57.29t4nk909so guys I realize that AMD() is not the preferred way of detecting machines?
22:59.45cyfordhttp://pastebin.com/AByxF8Av
23:03.54cyfordbetter example http://pastebin.com/HZ9YY8xc
23:04.03[TK]D-Fendert4nk909, Are you questioning that that was your realization?
23:07.48cyford[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-Fendercyford, I never say the full function call
23:08.47[TK]D-Fendercyford, No the result of that
23:09.54cyfordwhat do ya mean?
23:10.44[TK]D-FenderI never say to original attempt, nor the output of that last bit of code
23:11.56cyfordim as lost as a little girl ion the middle of the woods
23:12.46cyfordso 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-FenderYou 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-FenderNor this
23:13.14[TK]D-Fenderbreak it down piece by piece\
23:13.18[TK]D-Fenderand SHOW IT
23:14.26cyfordoh u said see if the  actual command  worked an show that..   brb ill get ya the dialplan debug
23:17.18cyfordhttp://pastebin.com/qAQwhgd7
23:25.30cyfordbetter one with debugging enabled  http://pastebin.com/ZDFQJJgR
23:27.17[TK]D-FenderI see CLi without dialplan to match
23:27.22[TK]D-Fenderand then the reverse
23:27.24[TK]D-FenderSeriously
23:30.23*** join/#asterisk foulou (~foulou@tests.lagoon.nc)
23:32.17cyfordwhat u mean
23:32.33cyforddialplan and cli is exaclty the same
23:32.42cyfordbut i think i found the issue
23:33.06cyford0 = faulse 1 =true     correct?
23:33.13[TK]D-Fenderyes
23:33.33cyfordthis it should be 0  becuase it is not null lol
23:33.38cyford*Then
23:38.28*** join/#asterisk frek818 (~frek818@172.56.9.20)
23:43.11*** join/#asterisk Chainsaw (~chainsaw@gentoo/developer/chainsaw)

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