Nathaniel Angelo A. Torres (247talk)
2005-May-27 00:20 UTC
[Asterisk-Users] DID - B8 Message
Any idea how I can generate a B* message on the asterisk box (out of order) message? Thank you. Cheers, nat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050527/a34bb834/attachment.htm
On May 27, 2005 03:20 am, Nathaniel Angelo A. Torres (247talk) wrote:> Any idea how I can generate a B* message on the asterisk box (out of order) > message?Easy. Do *not* have an exten => line in your PRI incoming context that matches the number you want SIT to be played for. At least for Bell Canada PRIs, * will return something along the lines of "no number here" and Bell will take care of notifying the calling party. e.g. if your DID block is 555-1000 to 555-1010 and you want 555-1001 to appear out of service: exten => 5551000,1,DoSomething() exten => 5551002,1,DoSomething() exten => 5551003,1,DoSomething() exten => 5551004,1,DoSomething() exten => 5551005,1,DoSomething() exten => 5551006,1,DoSomething() exten => 5551007,1,DoSomething() exten => 5551008,1,DoSomething() exten => 5551009,1,DoSomething() exten => 5551010,1,DoSomething() (note the total absence of 5551001) -A.
On May 27, 2005, at 6:50 AM, Andrew Kohlsmith wrote:> On May 27, 2005 03:20 am, Nathaniel Angelo A. Torres (247talk) wrote: >> Any idea how I can generate a B* message on the asterisk box (out of >> order) >> message? > > Easy. Do *not* have an exten => line in your PRI incoming context that > matches the number you want SIT to be played for. At least for Bell > Canada > PRIs, * will return something along the lines of "no number here" and > Bell > will take care of notifying the calling party. > > e.g. if your DID block is 555-1000 to 555-1010 and you want 555-1001 > to appear > out of service: > > exten => 5551000,1,DoSomething() > exten => 5551002,1,DoSomething() > exten => 5551003,1,DoSomething() > exten => 5551004,1,DoSomething() > exten => 5551005,1,DoSomething() > exten => 5551006,1,DoSomething() > exten => 5551007,1,DoSomething() > exten => 5551008,1,DoSomething() > exten => 5551009,1,DoSomething() > exten => 5551010,1,DoSomething() > > (note the total absence of 5551001) >Or you can have additional control (If your using the CVS version) with: exten => 5551001,1,SetVar(PRI_CAUSE=1) exten => 5551001,2,Hangup For more info see: http://www.voip-info.org/wiki-Asterisk+variable+PRI_CAUSE Later; Tim