Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: zzglain on September 28, 2017, 04:02:55 PM

Title: SIP AoC Feature: how to compose the XML body
Post by: zzglain on September 28, 2017, 04:02:55 PM
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
Title: Re: SIP AoC Feature: how to compose the XML body
Post by: terry 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.
Title: Re: SIP AoC Feature: how to compose the XML body
Post by: genesysguru 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/
Title: Re: SIP AoC Feature: how to compose the XML body
Post by: zzglain 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.
Title: Re: SIP AoC Feature: how to compose the XML body
Post by: terry 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[]]]
Title: Re: SIP AoC Feature: how to compose the XML body
Post by: zzglain 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