Hello to all I had Asterisk dialing the PSTN through a defined trunk. But when I enabled the SIP URI calls.... Asterisk stopped contacting the PSTN trunk.... The SIP URI dial code (who created the problem) is this: exten => _.,1,NoOp(Incoming Call from from-internal-custom extension ${CALLERID} for ${EXTEN}@${SIPDOMAIN}) exten => _.,2,GotoIf($[${LEN(${SIPDOMAIN})} = 0]?10) exten => _.,3,GotoIf($[${SIPDOMAIN} = ${MYDOMAIN}]?10) exten => _.,4,GotoIf($[${SIPDOMAIN} = ${MYFQDN}]?10) exten => _.,5,GotoIf($[${SIPDOMAIN} = ${MYFQDN}:5060]?10) exten => _.,6,NoOp(@${SIPDOMAIN} is remote, forwarding...) exten => _.,7,Macro(uridial,${EXTEN}@${SIPDOMAIN}) exten => _.,8,HangUp() exten => _.,10,Goto(custom-noturi,${EXTEN},1) exten => h,1,HangUp() How can I say that this code is just for calls to foreign domains? Something like: if (SIPDOMAIN != fccn.pt) Regards Joao Pereira