I solved it by adding '<action application="set" data="sip_h_Diversion="/>' to my generated dial plan. But why was the header added in the first place?
Hello,I got a incoming call from my provider which goes to a javascript. The javascript transfers the call to an external destination (goes back through my provider).A diversion headers is added by FreeSWITCH on the outbound call. How can I remove it (or if not possible, how do I change it)?javascript:session.setCallerData("caller_id_number", aNumber);session.setVariable("gate_caller_id_number", aNumber);session.setVariable("gate_site_id", SITE_ID);session.execute("transfer", this.dtmfBuffer + " XML internal");
send 1179 bytes to udp/[130.244.Y.YY]:5060 at 16:13:16.752200:------------------------------------------------------------------------INVITE sip:024390510@sip-corporate.provider.com SIP/2.0Via: SIP/2.0/UDP 212.247.XX.XX;rport;branch=z9hG4bKaa59XjFt2N2rSMax-Forwards: 67From: "0236661XXX" <sip:0243795362@212.247.XX.XX>;tag=BHvytKtv47r2aCall-ID: 5a022f8f-a0b9-122d-779a-dbdeced2caa5CSeq: 127654862 INVITEContact: <sip:gw+dalaconnecttele2@212.247.XX.XX:5060;transport=udp;gw=dalaconnecttele2>User-Agent: GateonAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFYSupported: timer, precondition, path, replacesAllow-Events: talk, referContent-Type: application/sdpContent-Disposition: sessionContent-Length: 273Diversion: 0 <sip:0@212.151.Y.Y;user=phone>;reason=unconditional;counter=1;privacy=offX-FS-Support: update_displayRemote-Party-ID: "0236661XXX" <sip:0243795362@212.247.XX.XX>;party=calling;screen=yes;privacy=offv=0o=FreeSWITCH 1267513684 1267513685 IN IP4 212.247.XX.XXs=FreeSWITCHc=IN IP4 212.247.XX.XXt=0 0m=audio 32712 RTP/AVP 8 3 101 13a=rtpmap:8 PCMA/8000a=rtpmap:3 GSM/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=rtpmap:13 CN/8000a=ptime:20