I want to add something like this to extensions_custom.conf to add on to ‘from-internal-xfer’ :
[from-internal-custom]
exten => _.,1,Noop(Entering user defined context in extensions_custom.conf)
exten => _.,n,Verbose(0,what_cid: ${CALLERID(num)})
; add whatever other lines you need
exten => _.,n,DumpChan()
my question is, what should I put at the end ? ‘goto’ , ‘end’, ‘macroexit’ ?
I don’t want to break or overwrite from-internal-xfer, just add to it
You can’t use exten _. in context from-internal-custom without causing serious problems. What you need to do is identify a dialplan hook for your use case and use that Hooking for fun and income
very similar to many other people ( when you reference the ‘hooking for fun’ ) - I have read through that, but for some reason it’s not as easy for me to grasp as the extensions_custom - and I’m sure it’s just misunderstanding verbiage used - or the fact that I’m not a programmer.
as for my use case, I’m looking to associate inbound callerid AND the extension that transferred the call with the destination / ringing extension.
I would judge the risk of setting your own transfer context to be very low, but it’s not something I have done very often and it’s possible you might run into edge cases where that context is not used. It will be much safer than setting a _. exten in extensions_custom.conf.