Author Topic: Fallback only if SIP response 408 TIMEOUT  (Read 117 times)

bnaetsch

  • Newbie
  • *
  • Posts: 8
    • View Profile
Fallback only if SIP response 408 TIMEOUT
« on: August 29, 2017, 06:17:51 AM »
Hello

in the doku of the regexroute.conf is described a round robin example with a fallback route.
Is it possible to call the fallback route only if one defined SIP response code came back from the regular route?
For instance:
I make a call through a regular route and I get back the SIP response code 408 TIMEOUT because the destination is down.
Then it should be used the fallback route.
If I make a call through the regular route and I get back the SIP response code 487 USER BUSY, then it shall not be used the fallback route.
Is there a variable where the SIP response code can used in the regexroute dialplan ?

Thank you for help
Kind regards
Burkhard

marian

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
Re: Fallback only if SIP response 408 TIMEOUT
« Reply #1 on: September 05, 2017, 12:42:25 AM »
Take a look at call fork module
http://docs.yate.ro/wiki/Call_Forker
You may use fork.stop=timeout