Need Advice On How To Implement This …

Home » Asterisk Users » Need Advice On How To Implement This …
Asterisk Users 4 Comments

I need some advice on how to implement something in my dialplan.

Here’s the scenario. A call comes in on my [incoming] context and I answer it. The call turns out to be for my wife and she needs to answer it on a different handset somewhere else in the house.

I’ve tried call parking but the wife acceptance factor is kind of low because we don’t do it often enough for her to remember how to park and unpark.

What I’d really like to do is define an easy DTMF sequence in features.conf
(like 00) that would send the call back into my [incoming] context again, just like it was a new incoming call. Then it could be picked up anywhere in the house.

What’s the best way to go about this? I tried doing an AGI script that sets context/extension/priority to where I’d like for it to go but it doesn’t seem to work.

Am I on the right track or is there a better way to do this?

4 thoughts on - Need Advice On How To Implement This …

  • SGF2ZSB5b3UgbG9va2VkIGludG8gU0xBPyDCoEkgaGF2ZSBoYWQgZ29vZCByZXN1bHRzIHdpdGgg aXQuIMKgV2lsbCBsZXQgYXN0ZXJpc2sgYWN0IGxpa2UgYSBrZXkgc3lzdGVtLgoKClNlbnQgZnJv bSBTYW1zdW5nIHRhYmxldAoKQ2hyaXMgR2VudGxlIDxnZW50bGVjQGdtYWlsLmNvbT4gd3JvdGU6
    CgpJIG5lZWQgc29tZSBhZHZpY2Ugb24gaG93IHRvIGltcGxlbWVudCBzb21ldGhpbmcgaW4gbXkg ZGlhbHBsYW4uCgpIZXJlJ3MgdGhlIHNjZW5hcmlvLsKgIEEgY2FsbCBjb21lcyBpbiBvbiBteSBb aW5jb21pbmddIGNvbnRleHQgYW5kIEkgYW5zd2VyIGl0LsKgIFRoZSBjYWxsIHR1cm5zIG91dCB0
    byBiZSBmb3IgbXkgd2lmZSBhbmQgc2hlIG5lZWRzIHRvIGFuc3dlciBpdCBvbiBhIGRpZmZlcmVu dApoYW5kc2V0IHNvbWV3aGVyZSBlbHNlIGluIHRoZSBob3VzZS4KCkkndmUgdHJpZWQgY2FsbCBw YXJraW5nIGJ1dCB0aGUgd2lmZSBhY2NlcHRhbmNlIGZhY3RvciBpcyBraW5kIG9mIGxvdyBiZWNh dXNlIHdlIGRvbid0IGRvIGl0IG9mdGVuIGVub3VnaCBmb3IgaGVyIHRvIHJlbWVtYmVyIGhvdyB0
    byBwYXJrIGFuZCB1bnBhcmsuCgpXaGF0IEknZCByZWFsbHkgbGlrZSB0byBkbyBpcyBkZWZpbmUg YW4gZWFzeSBEVE1GIHNlcXVlbmNlIGluIGZlYXR1cmVzLmNvbmYgKGxpa2UgMDApIHRoYXQgd291
    bGQgc2VuZCB0aGUgY2FsbCBiYWNrIGludG8gbXkgW2luY29taW5nXSBjb250ZXh0IGFnYWluLApq dXN0IGxpa2UgaXQgd2FzIGEgbmV3IGluY29taW5nIGNhbGwuwqAgVGhlbiBpdCBjb3VsZCBiZSBw aWNrZWQgdXAgYW55d2hlcmUgaW4gdGhlIGhvdXNlLgoKV2hhdCdzIHRoZSBiZXN0IHdheSB0byBn byBhYm91dCB0aGlzP8KgIEkgdHJpZWQgZG9pbmcgYW4gQUdJIHNjcmlwdCB0aGF0IHNldHMgY29u dGV4dC9leHRlbnNpb24vcHJpb3JpdHkgdG8gd2hlcmUgSSdkIGxpa2UgZm9yIGl0IHRvIGdvIGJ1
    dCBpdCBkb2Vzbid0IHNlZW0gdG8gd29yay4KCkFtIEkgb24gdGhlIHJpZ2h0IHRyYWNrIG9yIGlz IHRoZXJlIGEgYmV0dGVyIHdheSB0byBkbyB0aGlzPwoKLS0gCkNocmlzCg=

  • Thanks to everyone for the suggestions. I decided to try this approach first and I think I have it working. However, I found a slight problem.

    According to the features.conf file, when a call returns to the comebackcontext, it will go to the “s” extension if the specific extension such as SIP_0004F2040001 does not exist. This does not seem to be the case. I’ve created an “s” extension in my [parkedcallstimeout] context but I can’t make the returning call go to it. It fails with a message in the
    /var/log/asterisk/messages file:

    [2012-11-19 20:46:58] WARNING[23894][C-0000003e] pbx.c: Channel
    ‘SIP/tcg-000000c9’ sent to invalid extension but no invalid handler:
    context,exten,priority=parkedcallstimeout,SIP_gigaset,1

    To work around it, I had to define a specific SIP_ extension for each of my phones that might get sent to that context.

    Am I misunderstanding how this works?

    I’m running asterisk 11.0.1, so it could be a bug I suppose. Can anyone verify?