Usually dialed number is known for subscriber, because each DID corresponds unique extension.
It is not a case for transfered calls, because information about DID will be lost. To inform far side about original dialed number the SIP protocol provides the Diversion header.
To set the Diversion field you have to set rdnis variable in dialplan. E.g.
;catch all extension exten=>_.,n,Set(CALLERID(rdnis)=${EXTEN}) ;in the macro exten=>s,n,Set(CALLERID(rdnis)=${MACRO_EXTEN}) ; or hardcoded exten=>_.,n,Set(CALLERID(rdnis)=123456789)
Enjoy!
No comments:
Post a Comment