Hi, Got this working ok. I found that when using a RFC4240 URI in the format: "sip:[EMAIL PROTECTED];play=file:/full/path/to/audio.wav;repeat=2" With debug on, it was reporting file not found because the "file :" part of the URI was not being removed. It was trying to open a file called "file:/full/path/to/audio.wav".
I can update the script myself to make it work, however if I get an incorrect parameter, I need to get it to return a 400 or 404 message. 1. How do I script a response code and message as described below? 2. Because this is part of your tutorial, do you want to correct it? or do you want a copy once I have fixed it?. I may also extend the code to include "locale=" (and perhaps include defining a default locale and media path in the annc_service.conf file). Roger Leitch "If the media server supports announcements, but it cannot find the referenced URI, it MUST respond with the 404 response code and SHOULD send the reason phrase "Announcement content not found". If the media server receives an INVITE for the announcement service without a "play=" parameter, it MUST respond with the response code 400 and SHOULD send the reason phrase "Mandatory play parameter missing". If there is an error retrieving the announcement, the media server MUST respond with a 400 response code and SHOULD send the reason phrase "Announcement content could not be retrieved". In addition the media server SHOULD include a Warning header with appropriate explanatory text explaining what failed. _______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
