Hello
Asterisk 1.2
My dialplan macro:
[macro-dial]
exten => s,1,Set(CALLTO=${ARG1})
exten => s,2,Set(PROTO=${ARG2})
exten => s,3,Set(OPT=${ARG3})
exten => s,4,Set(TIMEOUT=${ARG4})
exten => s,5,Dial(${PROTO}/${CALLTO},${TIMEOUT},${OPT})
;nobody available
exten => s,6,Playback(custom/check-number)
exten => s,7,Hangup()
;busy
exten => s,106,Playback(custom/number-busy)
exten => s,107,Hangup()
When i try to call using this macro to number which is busy right now,
i still receive check-number message instead of number-busy:
– Called trunk_ipfon/0xxxxxxxxx
– SIP/trunk_ipfon-081c4988 is ringing
– SIP/trunk_ipfon-081c4988 is making progress passing it to IAX2/006-4
– Got SIP response 486 “Busy here” back from 213.218.117.66
– SIP/trunk_ipfon-081c4988 is busy
== Everyone is busy/congested at this time (1:1/0/0)
– Executing Playback(“IAX2/006-4”, “custom/check-number”) in new stack
– Playing ‘custom/check-number’ (language ‘en’)
== Spawn extension (macro-dial, s, 6) exited non-zero on ‘IAX2/006-4’ in macro ‘dial’
== Spawn extension (macro-dial, s, 6) exited non-zero on ‘IAX2/006-4’
– Hungup ‘IAX2/006-4’
Why ?
Thanx
Michal