[macro-dialout-trunk-predial-hook] for one trunk

Hi

One of my SIP providers has a requirement that as part of there authentication that I either use a tgrp, or set the PAI of each outbound call to the number i am registered as.

I ‘assume’ I could use [macro-dialout-trunk-predial-hook] to set the PAI to the required value - however I only want to set this for calls on this particular trunk; and the macro-dialout is applied to all outbound calls.

Cheers

I’ve taken a shot at this, and thought I would be able to do it based on the ${OUT_${DIAL_TRUNK}} variable

This works for chan_sip - where it returns SIP/{TrunkName as per GUI}

However for PJSIP it returns PJSIP.

Is there a list of variables that are available to be used - and to get me moving forward, anyone know what I should be using for PJSIP for the above?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.