IRC log for #asterisk-doc on 20100318

05:55.36*** join/#asterisk-doc hluesea (~hulusikah@88.247.127.66)
06:45.51*** join/#asterisk-doc dbrotman (~nonet@static-209-195-165-34.consolidated.net)
06:45.56dbrotmananyone awake?
06:46.10dbrotman:)
06:46.29dbrotmanI'm at my wits end with a 407 error
07:14.14*** join/#asterisk-doc snuff-home (~snuffy@203-219-29-182.tpgi.com.au)
07:14.14*** join/#asterisk-doc file (~file@asterisk/developer-and-muffin-lover/file)
07:14.14*** join/#asterisk-doc ChanServ (ChanServ@services.)
07:14.14*** mode/#asterisk-doc [+o ChanServ] by farmer.freenode.net
08:04.51*** join/#asterisk-doc hluesea (~hulusikah@88.247.127.66)
11:23.40*** join/#asterisk-doc leifmadsen (~Leif@asterisk/documenteur-extraordinaire/blitzrage)
11:23.40*** mode/#asterisk-doc [+o leifmadsen] by ChanServ
13:11.41*** join/#asterisk-doc Alric (~nbowyer@anvault.com)
14:11.51*** join/#asterisk-doc RobH (~robh@2620:0:860:2:21e:c2ff:fe03:2465)
14:13.03*** join/#asterisk-doc leifmadsen (~Leif@asterisk/documenteur-extraordinaire/blitzrage)
14:13.03*** mode/#asterisk-doc [+o leifmadsen] by ChanServ
15:53.40*** join/#asterisk-doc RobH (~robh@cpe-173-169-30-118.tampabay.res.rr.com)
16:46.32Alricleifmadsen: Ping?
17:15.34leifmadsenAlric: pong?
18:04.07Alricleifmadsen: You prefer Gosub to Macro, right?
18:04.17leifmadsenyes
18:04.29leifmadsennext question you ask is, "why?" I imagine :)
18:04.39AlricPretty much.
18:05.01AlricThey seem cudgy to me.
18:05.30leifmadsenbecause Macro() uses are large amount of stack space (memory) and when you next multiple Macro()'s, or use other dialplan applications or functions that use large amounts of memory in a nested Macro(), asterisk will crash, GoSub() does not have this issue.
18:05.40leifmadsenMacro(...Macro(...func_odbc()))
18:05.43leifmadsencrashy
18:06.18leifmadsenGoSub(...(GoSub...(GoSub...(func_odbc()))) <-- no crashy
18:09.29Alricalright
18:14.47Alricwriting something like Gosub(stdexten,100,stdexten(SIP/100)) just seems more repetitive than using macros.
18:20.16leifmadsenI agree the syntax isn't awesome
18:20.39leifmadsendepends on what you're doing though -- if you know when and why something might crash, then use a Macro() if you feel you're not going to nest or do something complex
18:21.47AlricIt doesn't really matter in the end.  PHP is writing my extensions.
18:22.03AlricI just have to understand the initial syntax.  I haven't really messed with dialplan login in depth since 1.2
18:22.11AlricSo lots of these things are "new fangled" to me.
18:27.19leifmadsenGoSub(context,extension,priority(arg1,arg2,...))
18:27.36leifmadsenthen don't forget about Return()
18:27.58AlricI think I forgot about Return.  Why is that important?
18:28.38AlricOr not.  I guess it is in there.
18:28.54leifmadsenReturn() tells GoSub() to return "from whence it came"
18:29.10AlricWell that much seems clear.  Why is it important? :)
18:29.46leifmadsenbecause Macro() return automatically?
18:29.51Alricah
18:30.03Alricso more control over flow and stuff.
18:30.23leifmadsenyes
18:30.33AlricI haven't seen a Return execute yet.  I suppose hangup ends the call before then.
18:30.43leifmadsenaye

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