Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12666

Call deflection by endpoint (302) not working, probably due to Diversion Header

$
0
0

Hello community,

i am pretty new to FreePBX.
I already figured out some things but with one problem I need some help.

I try to use call forwarding enabled by a phone/endpoint (not using die Asterisk Featurecode).
Every time there is a diversion header added with my extension. Lets say my extension is 15 than the header looks like

Diversion: "Name" <sip:15@12.10.x.20;user=phone>;reason=unknown

My provider wants a real number or no diversion header at all but I could not figure out a way to change oder remove this header.

This is something else i tried:

[macro-dialout-trunk-predial-hook]
exten => s,1,NoOp(Executing custom predial hook to remove Diversion)
    same => n,Set(PJSIP_HEADER(remove,Diversion))
    same => n,Set(PJSIP_HEADER(add,Diversion)=<sip:+4xxx123456789@sipconnect.ipfonie.de>\;reason=unconditional\;screen=yes\;privacy=off)
    same => n,Return()

It just keeps the header i mentioned above.

Forwarding a call with asterisk feature Code ist working.

Any ideas?

Thank you.
NetRacer

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 12666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>