" /> SIP AoC Feature: how to compose the XML body - Genesys CTI User Forum

Author Topic: SIP AoC Feature: how to compose the XML body  (Read 2832 times)

Offline zzglain

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
SIP AoC Feature: how to compose the XML body
« on: September 28, 2017, 04:02:55 PM »
Advertisement
Hi,

I have managed to generate a SIP INFO message starting from a RequestPrivateService for the Advice of Charge functionality, but I cannot find useful information on what to insert in the Body MIME part of the SIP message? Does anyone has experience on this?

Thanks
Regards
Giovanni

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: SIP AoC Feature: how to compose the XML body
« Reply #1 on: September 29, 2017, 11:08:33 PM »
Cannot say that have experience with that but in IRD in Macro sections there is predefined macro RequestPrivateService_AOC.
Probably some info can be taken from looking at it.

Offline genesysguru

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: 12
    • Genesys Guru Blog
Re: SIP AoC Feature: how to compose the XML body
« Reply #2 on: September 30, 2017, 04:39:32 PM »
Vague memories of this here:

http://genesysguru.com/blog/blog/2013/11/17/sending-a-sip-info-message-from-a-genesys-ird-strategy/

Offline zzglain

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: SIP AoC Feature: how to compose the XML body
« Reply #3 on: October 06, 2017, 01:10:47 PM »
Cannot find the macro pointed out by Terry in my IRD, which version are you using?

I saw the post on genesysguru (which was extremely helpful, thanks) but as Body part it sets up varData=998000000000
I tried using this but the IMS is giving me back an error "Unuspported Media Type", so I think that this body part cannot be applicable in my scenario.

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: SIP AoC Feature: how to compose the XML body
« Reply #4 on: October 07, 2017, 04:41:22 AM »
In regards of IRD - 8.1.4 (8.1.400.22)
But basically it is looks like

Parameters:
AOC_destination_DN,immediateChangeOfActuallyAppliedTariff,delayUntilStart,addOnChargePulse,networkIdentification,referenceID

Definition:
# Prepare XML body for AOC (insert parameters into XML template)
Always -> Push[StrFormat['<messageType xsi:schemaLocation="http://uri.etsi.org/ngn/params/xml/simservs/sci myxsd.xsd" xmlns="http://uri.etsi.org/ngn/params/xml/simservs/sci" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><aocrg><chargingControlIndicators><immediateChangeOfActuallyAppliedTariff>~s</immediateChangeOfActuallyAppliedTariff><delayUntilStart>~s</delayUntilStart></chargingControlIndicators><addOnCharge><addOnChargePulse>~s</addOnChargePulse></addOnCharge><originationIdentification><networkIdentification>~s</networkIdentification><referenceID>~s</referenceID></originationIdentification></aocrg></messageType>',immediateChangeOfActuallyAppliedTariff,delayUntilStart,addOnChargePulse,networkIdentification,referenceID]]
# Prepare Extension for Private Service message
AOC_destination_DN!='' -> Push[StrFormat['extensions.AOC destination DN:~s|extensions.Content-Type:application/vnd.esti.sci+xml|extensions.Content-Disposition:render ; handling=optional|extensions.Body:~s',AOC_destination_DN,Pop[]]]
AOC_destination_DN=''  -> Push[StrFormat['extensions.Content-Type:application/vnd.esti.sci+xml|extensions.Content-Disposition:render ; handling=optional|extensions.Body:~s',Pop[]]]
#Send request
Always -> SendRequest[149, StrFormat['thisdn:~s|connid:~s|105:3018|~s',Dest[],ConnID[],Pop[]]]
« Last Edit: October 07, 2017, 04:45:20 AM by terry »

Offline zzglain

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: SIP AoC Feature: how to compose the XML body
« Reply #5 on: October 11, 2017, 12:21:51 PM »
Thanks Terry,

I installed the version suggested and found the macro.

Thanks for your kind help!

Best regards
Giovanni