Asterisk is a B2BUA -- think of it as two calls, one inbound call from your switch to Asterisk and one for outbound call from Asterisk to the destination.
Using SIPAddHeader or similar is the proper way to copy headers from the inbound call to the outbound call in Asterisk. -----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nick Cameo Sent: Sunday, February 16, 2014 3:29 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Retaining P-Asserted Info Hello Markus, Thank you so much for your response. Our switch is already generating the needed P-Asserted header: P-Asserted-Identity: "John Doe" <sip:14167493...@toronto.location.com>; user=phone; nat=yes. I really did not want to have to rebuild it using `SIPAddHeader` however, if I have no choice, can someone please provide an extension rule that will include the exiting inbound leg line above in the outbound leg. Kind Regards, Nick. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users