Genesys Cloud - Main

 View Only

Sign Up

Expand all | Collapse all

Extract SIP Header details from inbound call.

  Thread closed by the administrator, not accepting new replies.
  • 1.  Extract SIP Header details from inbound call.

    Posted 04-03-2023 12:44
    No replies, thread closed.

    Hi Team,

    Currently, we are in development to migrate a project to Genesys Cloud and we will be using Cisco BYOC Trunk to achieve the inbound calling.
    We have achieved the call forwarding from Cisco to Genesys Cloud but we are unable to pull the SIP header details listed below in-order to use them in the call flow for routing and data to be displayed to the agent.
    Is there anyone in the community who can help in figuring out a way to pull the below details from the SIP Header?
    P.S. I have already tried using UUIData and it doesn't work.


    #SIP/VolP

    ------------------------------
    Jindeep KS
    Accenture LLP
    ------------------------------


  • 2.  RE: Extract SIP Header details from inbound call.

    Posted 04-03-2023 15:57
    No replies, thread closed.

    When you say you tried UUIData and it didn't work, what part didn't work?  Did you see the user to user data header come through to Cloud when checking pcap info?  



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 3.  RE: Extract SIP Header details from inbound call.

    Posted 04-09-2023 22:08
    No replies, thread closed.

    AFAIK, right now you can only extract UUI field. As long as you have configured your trunk to enable it and set the protocol (04 usually) and the encoding type.
    That works with our own BYOC.
    I thought I had read that extracting sip headers was a feature coming, but I can't locate that post anymore.



    ------------------------------
    Simon Brown
    Maintel Europe Limited
    ------------------------------



  • 4.  RE: Extract SIP Header details from inbound call.

    Posted 04-10-2023 10:58
    No replies, thread closed.

    Here are the docs in the Genesys Cloud Resource Center talking about how to use SIP UUI: https://help.mypurecloud.com/articles/about-user-to-user-information-uui/



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 5.  RE: Extract SIP Header details from inbound call.

    Posted 10-20-2023 02:04
    No replies, thread closed.

    Looks like the ability to get additional SIP headers is coming up in the next release.  Does anybody have any details on what it can/can't do?



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 6.  RE: Extract SIP Header details from inbound call.

    Posted 10-24-2023 09:30
    No replies, thread closed.

    Vaun,

    You are correct.  Access to SIP headers should be released tomorrow (Oct 25).

    There are two APIs, one to get the "raw" headers and one to get "parsed" headers:

    https://developer.genesys.cloud/platform/preview-apis#get-api-v2-telephony-sipmessages-conversations--conversationId-

    https://developer.genesys.cloud/platform/preview-apis#get-api-v2-telephony-sipmessages-conversations--conversationId--headers

    There will also be corresponding blocks for each of those in Architect.  The one that returns the "raw" headers will return all of the headers as a collection and you'll have to use Architect functions to find and get the header value you want.  The one that returns "parsed" headers will return one or more specifically requested header values.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 7.  RE: Extract SIP Header details from inbound call.

    Posted 10-26-2023 18:39
    No replies, thread closed.

    Hi Jim

    Did this get released?  I see the APIs are still only in the preview, and I just get no content when actually trying to get them out.



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 8.  RE: Extract SIP Header details from inbound call.

    Posted 10-27-2023 10:04
    No replies, thread closed.

    Apparently it was: https://help.mypurecloud.com/releasenote/october-25-2023/

    I'll play around with it today and reply back if I find anything strange about how to use it.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 9.  RE: Extract SIP Header details from inbound call.

    Posted 10-27-2023 11:03
    No replies, thread closed.

    @Vaun McCarthy, I wonder if you did what I did and tried to get the SIP headers of a Genesys Cloud Voice call.  It appears that SIP headers are only available for calls that come over a BYOC trunk.  The first paragraph in the docs say specifically "BYOC Cloud":

    Use the Get Raw SIP Headers action in inbound, in-queue, and secure call flows to get existing BYOC Cloud SIP headers in a string-type variable. From the Architect Toolbox, drag a Get Raw SIP Headers Data action into the appropriate location in the task editor.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 10.  RE: Extract SIP Header details from inbound call.

    Posted 10-27-2023 14:06
    No replies, thread closed.
    I tried using the endpoints in API explorer first.


    Sensitivity Label: General






  • 11.  RE: Extract SIP Header details from inbound call.

    Posted 10-29-2023 15:46
    Edited by Vaun McCarthy 10-29-2023 15:51
    No replies, thread closed.

    Okay I can use them but something odd is happening in that the variables I've assigned the output to I can't start to type and have them dynamically picked up, I have to go into the editor and select them from the variables list.

    I also still can't get the API endpoints to return anything.


    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 12.  RE: Extract SIP Header details from inbound call.

    Posted 10-31-2023 09:43
    No replies, thread closed.

    Hello Vaun,

    A few things to verify...

    1. This is a BYOC Cloud call, not GCV or prem Edge.
    2. The user invoking the API has the proper permissions:
    3. The conversation ID supplied in the API call matches a recent conversation in the Org as the user invoking the API call.

    Can you verify all of those are true and repeat an API request?



    ------------------------------
    Alan Lanteigne
    Genesys - Employees
    ------------------------------



  • 13.  RE: Extract SIP Header details from inbound call.

    Posted 10-31-2023 15:39
    No replies, thread closed.

    Hi Alan

    I can run this now fine.  I do note the endpoint is still listed in the preview Swagger UI not in GA.  I also had the impression there were going to be two endpoints but I only see one related to this in API explorer.



    ------------------------------
    Vaun McCarthy
    ------------------------------



  • 14.  RE: Extract SIP Header details from inbound call.

    Posted 10-31-2023 16:06
    No replies, thread closed.

    Vaun, you are correct that those APIs are still listed under Preview. However I can see both in API Explorer



    ------------------------------
    Cheers
    Zubair
    ------------------------------



  • 15.  RE: Extract SIP Header details from inbound call.

    Posted 10-31-2023 16:49
    No replies, thread closed.

    thanks Zubair I do see them both now



    ------------------------------
    Vaun McCarthy
    ------------------------------