V3 DID elaboration


If you are using a multi-number trunk, please note most of the VOIP providers use to send the called number into the SIP header, so the called number in the EXTEN or CALLERID(dnid) variable is always thetrunk main number.

To get the real called number you need to extract the DID from the call SIP header. 

Example:

we have a multi-number trunk like 011198865XX with the main number 01119886500.

We can manage the DID elaboration directly through a Cally Square IVR with the following structure:


In the custom APP we SET a variable called DID by extracting the SIP header

Option is: DID={CUT(CUT(SIP_HEADER(To),@,1),:,2)}


In the GOTOIF block we check if the called number is the main DID.

If it's true, we proceed in the CallySquare project with the related applications (queues, playback, menu, etc)

If it's false, we use a GOTO block to jump to the INBOUND DIALPLAN number related to the called DID


Related pages