Benoit Panizzon
2019-Nov-19 13:24 UTC
[asterisk-users] Global number rewriting rules affecting ALL headers?
Hi Joshua I had a shot at your suggestion, bug still no success. I fear the 181 is sent before the macro is called. I want to change the Diversion Header in the 181 message sent back to the caller to put the number it contains in the correct e164 format (stripping the 0 and adding +41 for Switzerland) but just any 'dialplan set' value would do for an example :-) Could you please make an example how to do that? PS: CONNECTED_LINE_CALLER_SEND_MACRO is depreciated and should be replaced by: CONNECTED_LINE_CALLER_SEND_SUB Do I have to call my routine [sub-routine] and end with ExitSub? Mit freundlichen Grüssen -Benoît Panizzon- -- I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________ Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________
Joshua C. Colp
2019-Nov-19 13:28 UTC
[asterisk-users] Global number rewriting rules affecting ALL headers?
On Tue, Nov 19, 2019 at 9:24 AM Benoit Panizzon <benoit.panizzon at imp.ch> wrote:> Hi Joshua > > I had a shot at your suggestion, bug still no success. > > I fear the 181 is sent before the macro is called. > > I want to change the Diversion Header in the 181 message sent back to > the caller to put the number it contains in the correct e164 format > (stripping the 0 and adding +41 for Switzerland) but just any 'dialplan > set' value would do for an example :-) > > Could you please make an example how to do that? > > PS: CONNECTED_LINE_CALLER_SEND_MACRO is depreciated and should be > replaced by: CONNECTED_LINE_CALLER_SEND_SUB > > Do I have to call my routine [sub-routine] and end with ExitSub? >I don't have experience with the specific thing linked, I just remembered it from seeing it in the past. Someone else may have more insight instead. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.sangoma.com & www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191119/ba175676/attachment.html>
Benoit Panizzon
2019-Nov-19 14:06 UTC
[asterisk-users] Global number rewriting rules affecting ALL headers?
Quick update. I guessed right. I had put the call to the subrouting on the 'local' channel which is created after the call is being redirecting. If i put it on the calling channel and setting RDNIS to the correct value, the corrected phone nuber is transmitted to the calling party via Diversion header. Similar, on the Local generated call from the remote 301, I could just change CALLERID(RDNIS) to the correct value, causing this value to be sent to the destination in the Diversion header correctly indicating origin and cause of the redirection. Mit freundlichen Grüssen -Benoît Panizzon- -- I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________ Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________