All pastes #266638 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-04 08:23 UTC
rendered paste body
[ Context 'macro-ringback-custom' created by 'pbx_config' ]
  's' =>            1. NoOp(macro-ringback-custom)                [pbx_config]
                    2. NoOp(Findme)                               [pbx_config]
                    3. Macro(dumpvars)                            [pbx_config]
                    4. Set(RINGBACKSTATUS=${ARG1})                [pbx_config]
                    5. Set(ORIGEXT=${ARG2})                       [pbx_config]
                    6. Set(EXTCIDNAME=${DB(AMPUSER/${ORIGEXT}/cidname)}) [pbx_config]
                    7. NoOp(Extension ${ORIGEXT} is reporting ${RINGBACKSTATUS}) [pbx_config]
                    8. GotoIf($["${BLINDTRANSFER}" = ""]?50)      [pbx_config]
                    9. NoOp(Going to ringback to ${BLINDTRANSFER:4:4}) [pbx_config]
                    10. GotoIf($["${RINGBACKSTATUS}" = "CONGESTION"]?30) [pbx_config]
                    11. Ringing()                                 [pbx_config]
                    12. Wait(20)                                  [pbx_config]
                    30. Set(CALLERID(name)=RB:${EXTCIDNAME})      [pbx_config]
                    31. Goto(r-${BLINDTRANSFER:4:4}|1)            [pbx_config]
                    50. Busy()                                    [pbx_config]
                    51. Wait(60)                                  [pbx_config]
                    52. Hangup()                                  [pbx_config]
  '_r-1[0123456789]XX' => 1. Goto(from-pstn|1000|1)                     [pbx_config]