Hello,
I think that probably i understand something wrong or maybe im doing something wrong
here is a sample of my extensions.conf file
[incoming and outgoin calls]
exten=>_25021001,1,NoOp(Incoming call to public number 25021001)
same=> n,GoTo(outer,1001,1)
same=> n,Hangup()
exten=>_1001,1,NoOp(Transfered from public context to local extension 1001)
same=> n,Dial(PJSIP/${EXTEN},20)
;function added for voimail
same=> n,VoiceMail(1001@default,u)
same=> n,Hangup()
exten=>_2501002,1,NoOp(Incoming call to public number 25021002)
same=> n,GoTo(outer,1002,1)
same=> n,Hangup()
exten=>_1002,1,NoOp(Transfered from public context to local extension 1002)
same=> n,Dial(PJSIP/${EXTEN},180)
same=> n,Hangup()
exten=> _X.,1,Verbose(1, "Didn't match any restricted numbers, proceeding with outbound dial.")
same=> n,Set(CALLERID(num)=2502${CALLERID(num)})
same=> n,Dial(PJSIP/${EXTEN}@trunk-prime-endpoint-25021001)
same=> n,Hangup()
What i need to do now is when the extensions 1001 or 1002 they must be able to call with their extension number meaning 25021001 or 25021002 but once i create the extension 1003 i wish to display a totally different number which i already own. for example 25323211 is it possible to achieve it with my current setup or so i need to do something different? or… di i got it all wrong?
please note that the numbers which i posted are not real.