Re: [asterisk-users] Global number rewriting rules affecting ALL headers?

2019-11-19 Thread Benoit Panizzon
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

Re: [asterisk-users] Global number rewriting rules affecting ALL headers?

2019-11-19 Thread Joshua C. Colp
On Tue, Nov 19, 2019 at 9:24 AM Benoit Panizzon 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

Re: [asterisk-users] Global number rewriting rules affecting ALL headers?

2019-11-19 Thread Benoit Panizzon
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

Re: [asterisk-users] Global number rewriting rules affecting ALL headers?

2019-11-19 Thread Joshua C. Colp
On Tue, Nov 19, 2019 at 6:11 AM Benoit Panizzon wrote: > Hi List > > One more Problem I stumbled upon. > > Using Asterisk in a TSP environement. > > Incomming IC Calls are e164 and have a NPRN (Routing Number) prefixed. > > Example: +419805561599 > +41 country prefix > 98055 Routing Prefix >

[asterisk-users] Global number rewriting rules affecting ALL headers?

2019-11-19 Thread Benoit Panizzon
Hi List One more Problem I stumbled upon. Using Asterisk in a TSP environement. Incomming IC Calls are e164 and have a NPRN (Routing Number) prefixed. Example: +419805561599 +41 country prefix 98055 Routing Prefix 61599 effective phone number Calls routed to Customers need to be put