-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This might sound strange, but is there anyway for Asterisk to set extra sip headers based on a sip phone returning a 302 in a dialplan? Example: PSTN => Asterisk => SIP-Phone, SIP-Phone returns 302 Redirect, Asterisk sets X-Something: Some_Value & X-Somethingelse: Some_Other_Value, then sends the new invite with added headers. Stu Sheldon ACT USA - -- Randomly Generated Fortune Tag: Q: How do you catch a unique rabbit? A: Unique up on it! Q: How do you catch a tame rabbit? A: The tame way! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF7KIhK69Y+xPZrWYRAgmWAJ9FvL+BqRr5YzXSYlkn9vLu4mHq2ACfaKrc LJts0IptsnzfawJzMNWibnM=Kjdf -----END PGP SIGNATURE-----
Benny Amorsen
2007-Mar-06 01:27 UTC
[asterisk-users] Re: Setting Sip Headers From Dial App?
>>>>> "SS" == Stuart Sheldon <stu@actusa.net> writes:SS> This might sound strange, but is there anyway for Asterisk to set SS> extra sip headers based on a sip phone returning a 302 in a SS> dialplan? You can detect that a redirect has occurred by looking at ${RDNIS}. You can't tell which SIP phone did the redirect though, which is rather annoying -- you can't bill the redirected call to a specific phone. If it is an unattended transfer instead (I don't know if those use 302 as well), you can check ${BLINDTRANSFER}. That way you'll even know which phone the transfer came from -- very useful for billing and other purposes. /Benny