Multicasting text or audio to phones

Version 1
    This document was generated from CDN thread

    Created by: Mayank Sharma on 02-03-2009 03:49:26 PM
    I have seen some applications that do a multicast or broadcast of canned text and/or audio messages to phones without any phone authentication. How is that done?
     
    Thanks,
    Max 

    Subject: RE: Multicasting text or audio to phones
    Replied by: David Staudt on 02-03-2009 07:25:54 PM
    The IP Phone Services SDK includes some samples which demonstrates this.  However, if  you 'push' a command to the phone by POSTing a CiscoIPPhoneExecute, then the phone does have to authenticate back to the configured authentication URL.
     
    A unicast/multicast streaming URI can be assigned to a custom Softkey, however, so the user could press the key and start the streaming and this wouldn't require an authorization check.  The mconference sample in the SDK demonstrates this, where RTP transmit is set for Softkey 'down' and RTP stop is set for Softkey 'up'.

    Subject: RE: Multicasting text or audio to phones
    Replied by: Mayank Sharma on 03-03-2009 09:27:45 PM
    Thanks David. I will have a look at it.

    Subject: RE: Multicasting text or audio to phones
    Replied by: Stephan Steiner on 25-03-2009 12:28:50 PM
    And in the netpro developer forum you'll find sample java code for a multicast streaming application that takes a wav file (cd quality) as input - or your computer's microphone port. I don't have it bookmarked since I'm the one who posted it..

    Subject: RE: Multicasting text or audio to phones
    Replied by: Voiceops SSC on 04-04-2009 12:43:25 PM
    I developed a small utility at my previous employer that allowed us to text the phones in case of an emergency. 
    The way I handled the authentication was to modfy the authentication asp page and added a user that if called it replied "Authenticate" immediatley without checking anything else (which is what the phones expect; we were running CM 4.3.). Then I used that user to "push" the commands to the phones.
    I ended up doing all my script in vbscript and used an Outlook Form as user interface/deployment method.
    It worked really well!!
     
     

    Subject: RE: Multicasting text or audio to phones
    Replied by: Mayank Sharma on 17-04-2009 12:50:18 PM
    Stephan - Thank you. I will try to find it.
                   Update: I could not find your post. Can you please tell me what I should be searching?
     
    Voiceops - Your solution looks good but unfortunately, I am on CUCM 6.1. It does not give access to these files.

    Subject: RE: Multicasting text or audio to phones
    Replied by: David Staudt on 17-04-2009 01:24:13 PM
    The authentication URL - used when the phones need to confirm authentication for an Execute - is configurable in Enterprise Parameters or in individual phone config.  In this way  you can configure the phone to check a different authentication URL not on the UCM box.
     
    This technique should be used even in CM4, as modifying the .asp pages on the box is not supported.

    Subject: RE: Multicasting text or audio to phones
    Replied by: Mayank Sharma on 17-04-2009 01:44:37 PM
    David-
     
    How would this authentication page look like?
     
    Thanks,
    Max

    Subject: RE: Multicasting text or audio to phones
    Replied by: David Staudt on 17-04-2009 02:35:58 PM
    The IP Phone Services SDK has a sample app called 'pushauthenticate' that has a basic template for this.

    Subject: RE: Multicasting text or audio to phones
    Replied by: Mayank Sharma on 17-04-2009 02:51:29 PM
    I will look into that.
     
    Meanwhile, I used the old authentication.asp and stripped down the code to basically authenticate any user. I put this authentication file on my web server, directed only one specific phone's Authentication Server property to this file.
     
    Now when I try to push something on the phone, it still pops up with the User Name and Password box (though it is authenticating no matter what I put in there since it is going to that authenticate all file).
     
    My question is, how to turn off that UserName and Password popup?
     
    Thanks again David, I am getting there
    Max
     
     

    Subject: RE: Multicasting text or audio to phones
    Replied by: David Staudt on 17-04-2009 03:14:21 PM
    Sounds like you need to include the Basic authentication HTTP header in the POST to the phone: http://en.wikipedia.org/wiki/Basic_access_authentication
     
     

    Subject: RE: Multicasting text or audio to phones
    Replied by: Mayank Sharma on 17-04-2009 03:19:12 PM
    Got it.
     
    Thanks,
    Max