Hello everyone,
I have Asterisk server with PRI line and need to transfer calls going to particular DID to external phone number. Here is dial plan part I have:
exten => did,1,Answer()
exten => did,n,System(/bin/echo ${CALLERID(name)}" | "${CALLERID(num)}" | "${CDR(start)}" | "${CDR(dst)}" | "${CDR(uniqueid)} >> /var/log/asterisk/custom/incoming-calls-forward.txt)
exten => did,n,Dial(DAHDI/g1/external_number)
exten => did,n,Hangup()
Eventually I'm creating second channel and bridging them together. And the problem is that I'm sending default caller ID name and number to "external_number". I could set callers ID's on outbound channel but some carriers don't like that.
Can someone please hint me how to do call transferring on Asterisk instead of what I'm currently doing.
Thanks a lot!