Cisco CUBE configuration requires a knowledge of setting up dial-peers that is outside the scope of this KB, but here is a sample template and documentation on how to make things mostly work. Note that anything with a preceeding dollar sign ($) indicates a variable that is specific to your environment and situation.
!! Standard voip setup !!!! outbound proxy line is MANDATORY to ensure packets get to the right host !!!! since the registrar is yourdomain name and not a valid FQDN !!!! also sets up t38, modem-passthrough, P-Asserted-Identity voice service voip fax protocol t38 ls-redundancy 5 hs-redundancy 2 fallback pass-through g711ulaw h323 call service stop modem passthrough nse codec g711ulaw redundancy sip rel1xx disable min-se 86400 outbound-proxy dns:nms1-cos.option9.net no call service stop asserted-id pai !!! Optional for FXS - register individual dial-peers; ! dial-peer voice XXXXXX pots ! port X/Y ! authentication username $EXTENSION password $PASSWORD ! !!! Optional - If using static-IP based SIP trunk, do not register dialpeers: !! dial-peer voice XXXXXX pots ! port X/Y ! no sip-register !!! Mandatory for VoIP dialpeers -- set the DTMF relay type dial-peer voice XXXXX voip dtmf-relay rtp-nte !!! SIP Trunk settings - Static !!! Sets the appropriate domain names on the trunk for outbound dial !!! also sets it to re-use port 5060 for connections for clean SIP Ladders sip-ua registrar dns:$YOURDOMAIN expires 90 sip-server dns:$YOURDOMAIN connection-reuse !!! SIP Trunk Settings - Registration based !!! also sets it to re-use port 5060 for connections for clean SIP Ladders sip-ua registrar dns:$YOURDOMAIN expires 90 sip-server dns:$YOURDOMAIN authentication username $USERNAME password $PASSWORD realm $YOURDOMAIN credentials username $USERNAME password $PASSWORD realm $YOURDOMAIN connection-reuse