Hello,
I need to do such a simple thing:
1. Dial SIP/123
2. If I get for example 503 - jump to Dial SIP/789
3. If I get for example 403 - jump to Playback(...)
The real question is:
how can I get SIP Responses and use it in dialplan?
Regards,
Jarek
--
If you're using below 1.8, there isn't a way. The DIALSTATUS channel
variable can give you a little, but not with those response codes.
However, if you're using 1.8, there's some hope: you can use
${HASH(SIP_CAUSE,channel)} (where channel is the destination channel,
not source) to read the SIP