Barzilai Spinak
2007-Jan-23 00:42 UTC
[asterisk-users] weird undocumented extensions such as s-BUSY
I've seen several examples that use extensions such as; s-BUSY s-NOANSWER etc... It's more or less evident what they do, but I've searched for some FORMAL documentation everywhere and have found nothing. Do they work for anything else than "s-"? (I think I've seen other examples, but can't find them now) Are they standard in any way? What are the allowed values after the dash? In which version were they introduced? etc... (please no replies explaining me how "s-BUSY" matches when the start extension is set busy or trivial explanations like that) BarZ
Anselm Martin Hoffmeister
2007-Jan-23 01:03 UTC
[asterisk-users] weird undocumented extensions such as s-BUSY
Am Dienstag, den 23.01.2007, 05:41 -0200 schrieb Barzilai Spinak:> I've seen several examples that use extensions such as; > s-BUSY > s-NOANSWER > > etc... > > It's more or less evident what they do, but I've searched for some > FORMAL documentation everywhere and have found nothing. > Do they work for anything else than "s-"? (I think I've seen other > examples, but can't find them now) > Are they standard in any way? > What are the allowed values after the dash? > In which version were they introduced? > etc...Those are not standardized extensions. They will be called _ONLY_ by a Goto() command, like in exten => s,1,Dial(SIP/user1,60,tT) exten => s,2,Goto(s-${DIALSTATUS}) so you can choose to put names as you like them before the dash, the DIALSTATUS variable values will be explained in http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial and http://www.voip-info.org/wiki/index.php?page=Asterisk+variable +DIALSTATUS I personally prefer to do that with GoTos inside the extension, or using Macros, but that is up to everyone's personal choice. BR Anselm
Trevor Peirce
2007-Jan-23 02:43 UTC
[asterisk-users] weird undocumented extensions such as s-BUSY
Barzilai Spinak wrote:> I've seen several examples that use extensions such as; > s-BUSY > s-NOANSWER > > etc... > > It's more or less evident what they do, but I've searched for some > FORMAL documentation everywhere and have found nothing. > Do they work for anything else than "s-"? (I think I've seen other > examples, but can't find them now)Yes.> Are they standard in any way?I'd say no, but it depends how you look at it.> What are the allowed values after the dash?Any potential value of ${DIALSTATUS}> In which version were they introduced?Not sure, but they are just various destinations for a jump caused by Goto(s-${DIALSTATUS}) asterisk doesn't know about and doesn't care about these extensions; there is nothing special about them and that's why you can't find any documentation. HTH, Trevor
Steven
2007-Jan-23 06:20 UTC
[asterisk-users] DIALSTATUS and HANGUPCAUSE extensions such as s-BUSY
exten => s,2,Goto(s-${DIALSTATUS}) ref: http://www.voip-info.org/wiki/view/DIALSTATUS http://www.voip-info.org/wiki-Asterisk+variable+DIALSTATUS I also use HANGUPCAUSE in some circumstances. exten => s,2,Goto(s-${HANGUPCAUSE}) ref: http://www.voip-info.org/wiki/index.php?page=Asterisk+Variable+HANGUPCAUSE -- -- Steven http://www.glimasoutheast.org "Barzilai Spinak" <barcho@creacion.com.uy> wrote in message news:45B5BC10.2030502@creacion.com.uy...> I've seen several examples that use extensions such as; > s-BUSY > s-NOANSWER > > etc... > > It's more or less evident what they do, but I've searched for some FORMAL documentation everywhere and have found nothing. > Do they work for anything else than "s-"? (I think I've seen other examples, but can't find them now) > Are they standard in any way? > What are the allowed values after the dash? > In which version were they introduced? > etc... > > (please no replies explaining me how "s-BUSY" matches when the start extension is set busy or trivial explanations like that) > > BarZ > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Eric "ManxPower" Wieling
2007-Jan-23 08:57 UTC
[asterisk-users] weird undocumented extensions such as s-BUSY
Barzilai Spinak wrote:> I've seen several examples that use extensions such as; > s-BUSY > s-NOANSWER > > etc... > > It's more or less evident what they do, but I've searched for some > FORMAL documentation everywhere and have found nothing. > Do they work for anything else than "s-"? (I think I've seen other > examples, but can't find them now) > Are they standard in any way? > What are the allowed values after the dash? > In which version were they introduced? > etc... > > (please no replies explaining me how "s-BUSY" matches when the start > extension is set busy or trivial explanations like that)Try looking in extensions.conf.sample