[Asterisk-Users] How to get Referred-By header

John E. Elkin
Sun, 13 Nov 2005 17:15:07 -0000

Im still tring to figure out how to route my calls out of a secondary
termination provider when my primary fails.  I have no idea how to even
attempt this.. It seems like it would be something simple...



Regards
John

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Steve
Blair
Sent: Sunday, November 13, 2005 7:00 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion;
asterisk-dev@lists.digium.com
Subject: [Asterisk-Users] How to get Referred-By header


  I have been trying to get the value in the Referred-By header from
within the parkandannounce application without success. I first tried
getting it via ast_channel assuming the SIP driver would request a
channel for the inbound call and Referred-By could be found that way.
Maybe it can but I cannot figure out how.

  I then tried to use get_header(req,"Referred-By") assuming if I have
a
pointer to the packet get_header would be able to extract the desired
value. No good.

   Has anyone done this? I really need to get the Referred-By value for
a local application and I'm out of choices.

Thanks,Steve
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit: