[asterisk-users] SendImage()

Philipp Kempgen philipp.kempgen at amooma.de
Sat Nov 22 21:22:40 CST 2008

SendImage() in 1.4:

  SendImage(filename): Sends an image on a channel.
If the channel supports image transport but the image send
fails, the channel will be hung up. Otherwise, the dialplan
continues execution.
The option string may contain the following character:
    'j' -- jump to priority n+101 if the channel doesn't support image transport
This application sets the following channel variable upon completion:
    SENDIMAGESTATUS        The status is the result of the attempt as a text string, one of
        OK | NOSUPPORT

in 1.6:

  SendImage(filename): Sends an image on a channel.
Result of transmission will be stored in SENDIMAGESTATUS
channel variable:
    SUCCESS      Transmission succeeded
    FAILURE      Transmission failed
    UNSUPPORTED  Image transmission not supported by channel

Is there any reason to break backwards compatibility?
Why is "SUCCESS" better than "OK" and "UNSUPPORTED" better than
IMHO there was no need to change anything except for adding
the "FAILURE" return status.

Might be a -dev question though.

   Philipp Kempgen

http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998

More information about the asterisk-users mailing list