Louis-David Mitterrand
2005-Jul-28 06:58 UTC
[Asterisk-Users] probing a SIP device for redirection information?
Hello, I'd like to find a way to probe a SIP phone for forwarding information before I actually Dial() it. For instance, if an absent user entered a forwarding number in his (Cisco or Polycom) phone, it will anwser a Dial() with a REDIRECT and asterisk will comply if the context allows. However I'd like to intercept that REDIRECT, get the number and use the telco's call deflection service to deflect the call without answering it. That way, once the deflection is done, no telco lines are used. Whereas with asterisk's default behavior, two lines would be used: one for the incoming call and one for the forwarded call. I've looked in the docs without finding, for a way to get a SIP device's status: will it forward the call? if so to what number? Thanks for your insights, -- Brains x Beauty x Availability = Constant.
Kevin P. Fleming
2005-Jul-29 07:24 UTC
[Asterisk-Users] probing a SIP device for redirection information?
Louis-David Mitterrand wrote:> I've looked in the docs without finding, for a way to get a SIP device's > status: will it forward the call? if so to what number?I don't believe there is any method to do this other than sending an INVITE to the phone and learning what it does with it. However, even that will not be reliable, since some SIP phones support 'call-forward-all', 'call-forward-busy' and 'call-forward-dont-answer', so you can't predict when the phone will send a redirect.