cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2179
Views
20
Helpful
26
Replies

Intercom ASP Sample

mattiep00
Level 1
Level 1

Hello,

Just wondering if anyone else out there has successfully got their Intercom ASP service to close the connections when one user presses Exit? I have been trying this for a while, and don't know how to send a remote RTPRx:Stop

All help appreciated!!

26 Replies 26

mattiep00
Level 1
Level 1

It seems that RTPRx:Stop only stops the transmit, not the service. Is there a way to send a remote Softkey:Services ?

Eg. <%RemoteIP%>:Softkey:Services?

The softkey:services does exactly what I want on the local phone...

Cheers,

A little more info on the scenario could've helped.. I don't know if you're refering to the situation on the phone that initiates the intercom, the remote phone, and what we have on screen.

I'm assuming you're refering to the remote phone that receives the RTP stream and that upon pressing some button on the phone that initiated the intercom, you want to terminate the applications on both ends. So, on the remote end, instead of sending a CiscoIPPhoneExecute with one item containing RTPRx:Stop, you add another item containing Key:Services.

You can adapt this for the scenario on the local phone.

Sorry, to be more specific, for my Exit key I want the intercom service to stop on both phones, not just the phone that presses exit. In the CiscoIPPhoneText for the Exit softkey I have:

Exit

Key:Services

4

This closes it on the local phone, but not the remote phone.

Does creating a new function (similar to phonepush in phonepush.asp) that has an CiscoIPPhoneExecute URI of the remote phone IP and Key:services sound like a reasonable idea?

And how would I get this to run when someone pressed the Exit softkey? Cheers,

Mattiep - were you ever able to get the one exit press to stop the service on both phones? Thanks!

Hi,

No I didn't, I moved on to something else and never came back to it. I'll give it another go and see how - I'm sure its not difficult (once you know how to do it!)

Cheers,

Matt

>>Does creating a new function (similar to phonepush in phonepush.asp) that has an CiscoIPPhoneExecute URI of the remote phone IP and Key:services sound like a reasonable idea?

And how would I get this to run when someone pressed the Exit softkey? Cheers,

You would rewrite the exit softkey so that it calls an url of your application, instead of SoftKey:Exit. When the call comes, you do what you described in the paragraph above (pusha CiscoIPPhoneExecute to the remote phone.. ), and then you respond with the same CiscoIPPhoneExecute so that the service will be terminated on the calling phone as well.

thanks again - finally got it to work! Also added the hands-free softkey option as a bonus.

Thats awesome - any chance of getting a snippet of your code to Matthew.Pook@PSNWorld.com?

So,

what?s the solution?.. pushing softkey:exit to the phone? that?s possible?

Does anyone have any snippets of modified intercom.asp code for multicasting?

CCM 4.1, 79xx Series IP Phones.

<%@ Language=JavaScript %>

<%

var pushuserid = "password";

var pushpassword = "password";

Response.ContentType = "text/xml";

Response.Expires = -1;

//Declaring Variables

ipAddr = Request.ServerVariables("REMOTE_HOST");

toIPAddr1 = "172.23.40.23";

toIPAddr2 = "172.23.40.11";

toIPAddr3 = "172.23.40.4";

// Starting the Transmission

phonePush(ipAddr,"RTPMTx:Stop",pushuserid,pushpassword);

//phonePush(ipAddr,"RTPMTx:239.0.0.45:20482",pushuserid,pushpassword);

// Start the Receiving on the first terminal

phonePush(toIPAddr1,"RTPMRx:Stop",pushuserid,pushpassword);

phonePush(toIPAddr1,"RTPMRx:239.0.0.45:20482",pushuserid,pushpassword);

//Start the Receiving on the second terminal

phonePush(toIPAddr2,"RTPMRx:Stop",pushuserid,pushpassword);

phonePush(toIPAddr2,"RTPMRx:239.0.0.45:20482",pushuserid,pushpassword);

//Start the Receiving on the third terminal

phonePush(toIPAddr3,"RTPMRx:Stop",pushuserid,pushpassword);

phonePush(toIPAddr3,"RTPMRx:239.0.0.45:20482",pushuserid,pushpassword);

%>

Office Intercom

Press and Hold to Talk

Intercom to A6NA

Talk

RTPMTx:Stop

RTPMTx:239.0.0.45:20482

1

Shout

RTPMTx:239.0.0.45:20482

RTPMTx:Stop

2

Mute

RTPMTx:Stop

3

Exit

SoftKey:Exit

4

%>

Where can i find

var pushuserid = "password";

var pushpassword = "password";

on my ccm ?

thanks ;-)

Create an account on you CCM

Associate the phones with the account

Create an IP service and point the url to where you intercom script resides

Subscribe the phones to this service

Replace "password" with the user/pass of the user you created in the CCM

Replace the IPs in the script with the IPs of the phones you want in the intercom group

Make a new script and IP service for each intercom group

Well ...

Many thanks ;-)

It work well :-D

best regards