You will need to have your intercom service point to another asp page that you will develop to request the extension, etc. when that is past back to your service, you can use devicelistx api to resolve the information needed to connect the intercom. Then these variables are past to the asp page (that you will enhance to accept them) and the service continues as designed.
Many ways to enhance this further, using your imagination.