Hi Anthony,

I'm using verson FreeSWITCH Version 1.0.head (git-54e5011 2011-04-12 13-35-39 -0500), but I haven't been able to make it work. This is my bridge application line:
<action application="bridge" data="{sip_copy_custom_headers=true}sofia/internal/${destination_number}@79.170.68.217"

This the the failed response I'm getting from the provider:
 SIP/2.0 503 Service Unavailable..Via: SIP/2.0/UDP 79.170.68.154;rport;branch=z9hG4bKN48DavB78KjBm..From: "34917019888" <sip:34917019888@79.170.68.154>;tag=atFFtate53HcH..To: 
  <sip:34661574758@79.170.68.217>;tag=1..Call-ID: 64911780-e04d-122e-ca81-001b7873d3a2..CSeq: 11006136 INVITE..Reason: Q.850 ;cause=34 ;text="Unknown"..X-Release-Source: Provider..Content-Length: 0....     
  
And this is the message sent by FS to the A_leg:

SIP/2.0 503 Service Unavailable..Via: SIP/2.0/UDP 79.170.68.144;branch=z9hG4bK805.e2f3bfa1.0..Via: SIP/2.0/UDP 79.170.64.151:5060;branch=z9hG4bK14faa4097ll7d213fINV26d034814d
  a55dbf..From: <sip:34917019888@79.170.64.151;noa=international>;tag=26d03481-co7455-INS001..To: <sip:34661574758@79.170.68.144;noa=international>;tag=5cHKH35vKQ2eQ..Call-ID: 
  4da55dbf000000050000001372519733@ens.com..CSeq: 745501 INVITE..User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-54e5011 2011-04-12 13-35-39 -0500..Accept: application/sdp..Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE..Supported: timer, precondition, path, replaces..Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer..Reason: Q.850;cause=41;text="NORMAL_TEMPORARY_FAILURE"..Content-Length: 0..Remote-Party-ID: "34661574758" <sip:34661574758@79.170.68.154>;party=calling;privacy=off;screen=no.... 

Any idea of what am I doing wrong?

Regards

Javi

---------- Forwarded message ----------
From: Anthony Minessale <anthony.minessale@gmail.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Date: Tue, 12 Apr 2011 10:36:04 -0500
Subject: 
assuming you are on a more modern release:

add {sip_copy_custom_headers=true} to the dial string of the b leg.




On Tue, Apr 12, 2011 at 6:02 AM, Javier Gallart <jgallartm@gmail.com> wrote:
> Hi all
> I'm trying to pass some custom X-headers in final failed responses (>400)
>  from B-leg to A-leg...is there a way to accomplish this?
> Thanks in advance
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
googletalk:conf+888@conference.freeswitch.or
pstn:+19193869900