bucasia wrote:
Actually that link was for removing it from the caller ID. You want something like this -
http://www.freepbx.org/support/document ... alled-numb - for stripping it from EXTEN (the number called)
It worked! I am providing below the working custom context for others to refer in the future.
[FROM-PROVIDER-CUSTOM]
exten => _1234567#X!,1,Noop(Stripping 1234567# from start of DID number received)
exten => _1234567#X!,n,Goto(from-trunk,${EXTEN:8},1)
exten => _[*0-9]!,1,Goto(from-trunk,${EXTEN},1)
exten => h,1,Hangup()
I have however another task now which is to playback a certain audio file to outside callers that reached a DID which is not –yet- assigned to a user. I have created the following extension which works fine if I call it directly however I am not sure how to combine it with the above context, when the DID received is not in use. Any ideas?
[custom-unassigned-number]
; This extension plays a message to the caller, notifying them that the number is not currently assigned to a user.
exten => 1244,1,Progress()
exten => 1244,n,Wait(1)
exten => 1244,n,Set(VOLUME(TX)=0)
exten => 1244,n,Playback(unassigned-number,noanswer)
exten => 1244,n,Hangup()