Displaying 1 result from an estimated 1 matches for "odbc_getblackphon".
Did you mean:
odbc_getblackphone
2020 Jun 12
0
How to change SIP header TO: ?
...e
when the number can make the call, my dialplan is as follows:
[from-external]
exten => _AX.,1,Verbose(=======> ${CALLERID(num)} to ${EXTEN})
same => n,Set(MYDESTINY=${REPLACE(${EXTEN},A,)})
same => n,Set(MYORIGIN=${CALLERID(num)})
same => n,Set(ITEXISTS=${ODBC_GETBLACKPHONE(${MYORIGIN})})
same => n,GotoIf($[${ITEXISTS}>0]?black)
; I will try to change header TO:
same => n,Set(MYHEADER=${PJSIP_HEADER(read,To)})
same => n,Set(MYnewHEADER=${REPLACE(MYHEADER,A,)})
same => n,Set(PJSIP_HEADER(update,To)=${MYnewHEADER})
;...