Invalid Options

Home » Asterisk Users » Invalid Options
Asterisk Users 4 Comments

SGVsbG8sDQpXaGlsZSBjb25uZWN0aW5nIHRvIG15IHZvaWNlbWFpbCwgSSBub3RpY2VkIHRoYXQg QXN0ZXJpc2sgbWF5IHBlcmZvcm0gc29tZSB0YXNrcyBpc24ndCBpbmNsdWRlZCBpbiB0aGUgb3B0
aW9ucyBsZXZlbHMgdGhhdCBjdXJyZW50bHkgcGxheWVkIQ0KRm9yIGV4OiBJIGFtIGxpc3Rlbmlu ZyB0byB0aGUgbWFpbiBtZW51IHdoaWNoIGFza2luZyBtZSB0byBwcmVzcyAxIGZvciBuZXcgbWVz c2FnZXMsIDIgY2hhbmdlIGZvbGRlcnMsIDAgbWFpbGJveCBvcHRpb25zIHdoaWNoIGlzIE9LIGZv ciB0aGVzZSBudW1iZXJzLCBidXQgaWYgSSBwcmVzc2VkIDcgYnkgbWlzdGFrZSBmb3IgZXhhbXBs ZSBpdCB3aWxsIHRlbGwgbWUgIk1lc3NhZ2UgZGVsZXRlZCIgd2hpY2ggaXQgZG9lc24ndCBtYWtl IHNlbnNlIUlzIHRoZXJlIGEgd2F5IHRvIHN0b3AgdGhpcyBiZWhhdmlvciwgbGV0J3Mgc2F5IHRv IHJ1biAiaW52YWxpZCBvcHRpb24iIGlmIGFueSBvdGhlciBudW1iZXIgd2FzIHByZXNzZWQgZG9l c24ndCBiZWxvbmcgdG8gdGhlIGN1cnJlbnQgbWVudSBsZXZlbD8NCg0KVGhhbmtzLiAgCQkgCSAg IAkJICA

4 thoughts on - Invalid Options

  • –=-6nfwYrLi0x+eIiR4U38K
    Content-Type: text/plain; charset=”UTF-8″
    Content-Transfer-Encoding: 7bit

    Hi Ahmed,

    Seems to be that you have a problem recognizing DTMF digits. Do you have RFC2833 as DTMF protocol in both Asterisk and soft/hard-phone ?

    Rgds,

    Hello,

    While connecting to my voicemail, I noticed that Asterisk may perform some tasks isn’t included in the options levels that currently played!
    For ex: I am listening to the main menu which asking me to press 1 for new messages, 2 change folders, 0 mailbox options which is OK for these numbers, but if I pressed 7 by mistake for example it will tell me "Message deleted" which it doesn’t make sense!

    Is there a way to stop this behavior, let’s say to run "invalid option" if any other number was pressed doesn’t belong to the current menu level?

    Thanks. 


    Rodrigo Montiel
    Ing. en Telecomunicaciones
    GNU/Linux & VoIP System Support
    Cel: +549 351 2581376

    Freetech Solutions
    http://www.freetechsolutions.com.ar
    Tel/Fax: +54 351 6387585

    –=-6nfwYrLi0x+eIiR4U38K

  • –_ff4e1a83-831a-4537-a878-59c6be2ccc80_
    Content-Type: text/plain; charset=”windows-1256″
    Content-Transfer-Encoding: base64

    SGVsbG8sDQpJIGRvbid0IGhhdmUgYSBwcm9ibGVtIGluIHJlY29nbml6aW5nIERUTUYgZGlnaXRz LiBNeSBwcm9ibGVtIGlzIGJyZWFraW5nIHRoZSBoaWVyYXJjaHkgbGV2ZWwuTGV0J3Mgc2F5IEkg YW0gaW4gdGhlIG1haW4gbWVudSBhbmQgSSBoYXZlIHRocmVlIG9wdGlvbnMgKCAxIGZvciBuZXcg bWVzc2FnZXMsIDIgY2hhbmdlIGZvbGRlcnMsIDAgbWFpbGJveCBvcHRpb25zICkgYWxsIG9mIHRo ZW0gYXJlIGZpbmUgSSBjYW4gZ28gdGhyb3VnaCB0aGVtIGJ5IHByZXNzaW5nIHRoZSBtZW50aW9u ZWQgbnVtYmVycywgYnV0IGlmIEkgcHJlc3NlZCBhbm90aGVyIG51bWJlciBsaWtlIDUsIDYsLi4u IHdpbGwgaGVhciBzb21ldGhpbmcgb3V0IG9mIHRoZSB0aHJlZSBvcHRpb25zIEkgaGF2ZSwgc29t ZXRoaW5nIGluIGRpZmZlcmVudCBsZXZlbC4NCmlmIEkgcHJlc3NlZCA3IGZvciBleGFtcGxlLCB3
    aWxsIGhlYXIgc29tZXRoaW5nIGxpa2UgKG1lc3NhZ2UgZGVsZXRlZCkgd2hpY2ggc2hvdWxkIGJl IE9LIG9ubHkgaWYgSSBhbSBpbnNpZGUgb3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BodHRwOi8vd3d3LmFwaS1kaWdpdGFsLmNv bSAtLQpOZXcgdG8gQXN0ZXJpc2s/IEpvaW4gdXMgZm9yIGEgbGl2ZSBpbnRyb2R1Y3Rvcnkgd2Vi aW5hciBldmVyeSBUaHVyczoKICAgICAgICAgICAgICAgaHR0cDovL3d3dy5hc3Rlcmlzay5vcmcv aGVsbG8KCmFzdGVyaXNrLXVzZXJzIG1haWxpbmcgbGlzdApUbyBVTlNVQlNDUklCRSBvciB1cGRh dGUgb3B0aW9ucyB2aXNpdDoKICAgaHR0cDovL2xpc3RzLmRpZ2l1bS5jb20vbWFpbG1hbi9saXN0
    aW5mby9hc3Rlcmlzay11c2VycyAJCSAJICAgCQkgIA=
    –_ff4e1a83-831a-4537-a878-59c6be2ccc80_
    Content-Type: text/html; charset=”windows-1256″
    Content-Transfer-Encoding: base64

    PGh0bWw+DQo8aGVhZD4NCjxzdHlsZT48IS0tDQouaG1tZXNzYWdlIFANCnsNCm1hcmdpbjowcHg7
    DQpwYWRkaW5nOjBweA0KfQ0KYm9keS5obW1lc3NhZ2UNCnsNCmZvbnQtc2l6ZTogMTJwdDsNCmZv bnQtZmFtaWx5OkNhbGlicmkNCn0NCi0tPjwvc3R5bGU+PC9oZWFkPg0KPGJvZHkgY2xhc3M9J2ht bWVzc2FnZSc+PGRpdiBkaXI9J2x0cic+SGVsbG8sPGRpdj48YnI+PC9kaXY+PGRpdj5JIGRvbid0
    IGhhdmUgYSBwcm9ibGVtIGluJm5ic3A7cmVjb2duaXppbmcgRFRNRiBkaWdpdHMuIE15IHByb2Js ZW0gaXMgYnJlYWtpbmcgdGhlIGhpZXJhcmNoeSBsZXZlbC48L2Rpdj48ZGl2PkxldCdzIHNheSBJ
    IGFtIGluIHRoZSBtYWluIG1lbnUgYW5kIEkgaGF2ZSB0aHJlZSBvcHRpb25zICgmbmJzcDsxIGZv ciBuZXcgbWVzc2FnZXMsIDIgY2hhbmdlIGZvbGRlcnMsIDAgbWFpbGJveCBvcHRpb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oxMzgwNzE5NzI0LjIzODku MS5jYW1lbEBjb25kb3IiIGFsaWduPSJib3R0b20iIGJvcmRlcj0iMCI+CjwvdGQ+CjwvdHI+Cjwv dGJvZHk+PC90YWJsZT4KCgo8YnI+LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwotLSBCYW5kd2lkdGggYW5kIENv bG9jYXRpb24gUHJvdmlkZWQgYnkgaHR0cDovL3d3dy5hcGktZGlnaXRhbC5jb20gLS0KTmV3IHRv IEFzdGVyaXNrPyBKb2luIHVzIGZvciBhIGxpdmUgaW50cm9kdWN0b3J5IHdlYmluYXIgZXZlcnkg VGh1cnM6CiAgICAgICAgICAgICAgIGh0dHA6Ly93d3cuYXN0ZXJpc2sub3JnL2hlbGxvCgphc3Rl cmlzay11c2VycyBtYWlsaW5nIGxpc3QKVG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMg dmlzaXQ6CiAgIGh0dHA6Ly9saXN0cy5kaWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJp c2stdXNlcnM8L2Rpdj48L2Rpdj4gCQkgCSAgIAkJICA8L2Rpdj48L2JvZHk+DQo8L2h0bWw+

    –_ff4e1a83-831a-4537-a878-59c6be2ccc80_

  • My bad. I re-read your initial post and see you’re using the voicemail()
    application, not some dialplan you cobbled up. I guess a better subject might have enticed me to read the original 🙂

    I have nothing to offer. I think that’s just the way voicemail() works.

  • I think what Asmaa is indicating here is that inside app_voicemail (s)he’s able to select options that are not relevant to the current menu (s)he is playing.

    That wouldn’t be a dialplan problem or a DTMF issue, It would be inside the app_voicemail.c source.

    It looks like there is a big switch statement starting at line 10180 in my app_voicemail.c source that deals with what option the user is pressing.

    It looks like at line 10458 there is logic for if delete is not a valid option at the moment, You could try inserting a playback there stating so.