[asterisk-users] dialplan logic questions: macro not reaching DIALSTATUS based extension (s-ANSWER)

Matt Riddell matt at venturevoip.com
Mon Mar 10 05:39:51 CDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Iedema wrote:
> On 3/10/08, Michael Iedema <michael at askozia.com> wrote:
>> Hello everyone,
>>
>>  I'm having some troubles with some dialplan logic I've written which
>>  sends missed call notifications via e-mail. It's currently sending
>>  these notifications even if the call was answered, marking them all as
>>  hung-up. What I've been able to see is that the macro never reaches
>>  the "s-ANSWER" bits which mark the call as successful.
>>
>>  I've posted my extensions.conf and a call trace to pastebin[1]. The
>>  extensions.conf may look a bit funny as it is the internally generated
>>  file from a project I'm working on. There are enough comments in there
>>  to make it human readable.
>>
>>  All feedback is appreciated.
>>
>>  Regards,
>>  -Michael
>>
>>  [1] http://pastebin.ca/936296
>>
> 
> Sorry for the noise, I've figured it out. The priorities after the
> Dial() are not executed if the call was completed. I now handle the
> ANSWER status detection in the h extension.

Or use the "g" option to the dial command:

g    - Proceed with dialplan execution at the current extension if the
       destination channel hangs up.

- --
Kind Regards,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH1Q/3DQNt8rg0Kp4RAq84AKC2uIDQmVI/Y8OyrzXbO4jqsL794wCeIPEn
P3ZdCTJeA7BPfde4EaoNrZc=
=5jey
-----END PGP SIGNATURE-----



More information about the asterisk-users mailing list