[asterisk-dev] feature discussion: making app_dial resources configurable for parking timeout

Caio Begotti caio at ueberalles.net
Tue Mar 13 06:44:23 MST 2007


Hi! Serge-v told me to try to discuss this directly on the list (not  
in the bug tracker): http://bugs.digium.com/view.php?id=9259

The most interesting part in returning back to the park-dial context  
after the timeout on parking slots is is to configure the aspect of  
the next Dial() command executed by Asterisk automatically. However,  
it's not possible at the moment thus making this return almost out of  
control. The Dial() options are hard-coded in the res_features.c file.

It's not that interesting to have the "t" in this dial (shown right  
below) without being able to personalize the other dial options and  
flags. It would be a really nice improvement for res_features and  
custom parking :-)

Maybe some extra option like parkingdialopts="30,TtWwKk" to let users  
and sysadmins configure the timeout and flags of Dial() in the park- 
dial context?

 From res/res_features.c:
1573 if (con) {
1574 char returnexten[AST_MAX_EXTENSION];
1575 snprintf(returnexten, sizeof(returnexten), "%s||t", peername);
1576 ast_add_extension2(con, 1, peername, 1, NULL, NULL, "Dial",  
strdup(returnexten), ast_free, registrar);
1577 }

What do you guys think about it? Is it feasible?

--
caio[1982] begotti
http://caio.ueberalles.net




More information about the asterisk-dev mailing list