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.56 | dbrotman | anyone awake? |
06:46.10 | dbrotman | :) |
06:46.29 | dbrotman | I'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.32 | Alric | leifmadsen: Ping? |
17:15.34 | leifmadsen | Alric: pong? |
18:04.07 | Alric | leifmadsen: You prefer Gosub to Macro, right? |
18:04.17 | leifmadsen | yes |
18:04.29 | leifmadsen | next question you ask is, "why?" I imagine :) |
18:04.39 | Alric | Pretty much. |
18:05.01 | Alric | They seem cudgy to me. |
18:05.30 | leifmadsen | because 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.40 | leifmadsen | Macro(...Macro(...func_odbc())) |
18:05.43 | leifmadsen | crashy |
18:06.18 | leifmadsen | GoSub(...(GoSub...(GoSub...(func_odbc()))) <-- no crashy |
18:09.29 | Alric | alright |
18:14.47 | Alric | writing something like Gosub(stdexten,100,stdexten(SIP/100)) just seems more repetitive than using macros. |
18:20.16 | leifmadsen | I agree the syntax isn't awesome |
18:20.39 | leifmadsen | depends 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.47 | Alric | It doesn't really matter in the end. PHP is writing my extensions. |
18:22.03 | Alric | I just have to understand the initial syntax. I haven't really messed with dialplan login in depth since 1.2 |
18:22.11 | Alric | So lots of these things are "new fangled" to me. |
18:27.19 | leifmadsen | GoSub(context,extension,priority(arg1,arg2,...)) |
18:27.36 | leifmadsen | then don't forget about Return() |
18:27.58 | Alric | I think I forgot about Return. Why is that important? |
18:28.38 | Alric | Or not. I guess it is in there. |
18:28.54 | leifmadsen | Return() tells GoSub() to return "from whence it came" |
18:29.10 | Alric | Well that much seems clear. Why is it important? :) |
18:29.46 | leifmadsen | because Macro() return automatically? |
18:29.51 | Alric | ah |
18:30.03 | Alric | so more control over flow and stuff. |
18:30.23 | leifmadsen | yes |
18:30.33 | Alric | I haven't seen a Return execute yet. I suppose hangup ends the call before then. |
18:30.43 | leifmadsen | aye |