fwiw I did manage to get this going eventually, just posting solution here for future reference. there is some magic required in the Contact header to include the tgrp parameter (generally your pilot number - 91234567 as an example)
something like this

voice class sip-profiles 100
��rule 110 request INVITE sip-header Contact modify "@" ";tgrp=91234567;trunk-context=spark.co.nz@"

cheers,
Blair


On Wed, Mar 4, 2020 at 4:56 PM Blair Harrison <nznog@jedi.school.nz> wrote:
Hi Folks,

Does anyone have a reference config for Cisco CUBE for connecting to Spark's SIP trunk service?
Assume I am missing something simple here as incoming working fine but outgoing gets 404s.

Cheers,
Blair