GotSpeech.NET

The online community for Microsoft Speech Server developers
Welcome to GotSpeech.NET Sign in | Join | Help
in Search
Gold Systems

Transfer to OCS Sip URI

Last post 05-13-2008, 11:09 AM by Anthony. 5 replies.
Sort Posts: Previous Next
  •  05-12-2008, 4:09 PM 5525

    Transfer to OCS Sip URI

    Hi,

    I have built a small speech server application which right now does some voice rec and then transfers the incoming caller.  I have 2 SIP peers setup; 1 is a direct SIP connection to my PBX, the other a SIP connection to my OCS Server.

    I have created a blindtransfer action that is supposed to redirect the call to the user in the transfer element.  In my transfer action I have the host (ocs server), port (I have tried the port of the ocs server and the port of the SIP Peer and then the address of the user to transfer to (I have tried with and without the "sip:" prefix).

    Everytime I try this I get dead air, the call just stops and hangs there, when I hangug I get the an event log error saying the caller hung up while the call was being transferred.  I have tried looking through WireShark and don't see any errors or none in the event logs or the OCS/Speech Server.

    So - any ideas what I am doing wrong?  I want the call to come in, speech server pick it up, the user go throuh the menus, then the user select who they want to speak with and then have the call transferred to that OCS user so their OCS communicator starts ringing.

    Thanks - Greg.

     

  •  05-13-2008, 6:09 AM 5529 in reply to 5525

    Re: Transfer to OCS Sip URI

    Take a look at this thread: http://forums.microsoft.com/unifiedcommunications/ShowPost.aspx?PostID=2289378&SiteID=57.  If you search on this forum or on GotSpeech you will find other questions around transfers.

    BlindTransfer sends a SIP REFER back to the PBX.  It is the PBX that does the actual transfer, so you don't need to configure OCS as a SIP Peer on Speech Server.  You need to look into whether the PBX supports REFER.


    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
  •  05-13-2008, 8:27 AM 5537 in reply to 5529

    Re: Transfer to OCS Sip URI

    Hi Anthony,

    We've been able to do that with the SIP peer I setup for our PBX and that works fine.  The transfer is completed to the user's hard phone extension no problem.

    But if I changed the Called Party to be a SIPURI should I not be able to redirect the incoming call to an OCS User?  I.e., as in that thread it said do a transfer via a PBX like so;

    SipUriTelephonyAddress sip = new SipUriTelephonyAddress();

    sip.Host = "10.10.10.10"; --> IP of PBX

    sip.Port = 5060;

    sip.User = "1335";

    Which was no problem, that was working before.  But I want to be able to transfer the call to an OCS user via their communicator (hence having a OCS SIP Peer)... so in essence...

    SipUriTelephonyAddress sip = new SipUriTelephonyAddress();

    sip.Host = "10.1.10.11"; --> IP of OCS server

    sip.Port = 5060;

    sip.User = "me@domain.com";

    I would think the PBX would not need to be contacted to make this transfer as Speech Server is now trying to talk to OCS to fulfill the transfer.

    I am new to this so perhaps I am missing some underlying layer here.

    Thank you for your input.

    Greg.

  •  05-13-2008, 8:59 AM 5538 in reply to 5537

    Re: Transfer to OCS Sip URI

    When transfering a call, Speech Server is dropping out of the call.  Once transferred the PBX will talk to OCS directly.  With a Blind transfer, Speech Server doesn't verify whether the transfer actually succeeded.  The PBX needs to be able to talk to your OCS server directly, using the SIP Uri that you supply.  You need to check how the PBX handles a SIP REFER.

    BTW your 2nd code block is incorrect.  Host/Port/User specify the parts of a SIP URI as in user@host:port.


    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
  •  05-13-2008, 10:55 AM 5542 in reply to 5538

    Re: Transfer to OCS Sip URI

    Hi Anthony,

    Isn't this contrary to the whole no-PBX solution for an OCS Implementation (granted things are not nearly there right now), i.e., we can redirect the call to their SIP/OCS user and have the call ring on the user's desktop via Speech Server?

    Having to go back to the PBX to have it then go through the OCS Mediation Server to send the call to OCS seems rather cumbersome in that we are taking an extra hop back through the switch to get to OCS.does it not?  We are taking an extra trip to get back to OCS. 

    Thank you for your input, I'm just trying to get a handle on all of this.

    Greg

     

  •  05-13-2008, 11:09 AM 5543 in reply to 5542

    Re: Transfer to OCS Sip URI

    Lets say that A is connected to B, and B redirects A to C.  The definition of a redirect is that A is then connected to C and B is disconnected.  I.e. A necessarily has to talk directly to C.  In your description, A is the PBX, B is Speech Server and C is OCS. 

    I think a missing part to your problem statement is how you are connecting Speech Server to the PBX.  What is providing the gateway between SIP and PSTN?  That is the component that will receive the REFER and is therefore in a position to connect to OCS without dropping back to the PBX.

     


    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
View as RSS news feed in XML