Hi IronHelix,
Sorry for the confusion, It is working with below script. I wanted to have macro implemented for the same. I failed to do so.
Working Configuration:
[extensions]
exten => _61XX,1,Answer
exten => _61XX,2,SetMusicOnHold(default)
exten => _61XX,3,Dial(SIP/${EXTEN}&SIP/$[${EXTEN}+1000],20)
exten => _61XX,4,Voicemail(u${EXTEN})
exten => _61XX,5,Hangup
NOT Working Configuration:
[macro-ext]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,Dial(SIP/${ARG1}&SIP/$[${ARG1:4}+1000],10)
exten => s,4,Voicemail(u${ARG2})
exten => s,5,Hangup
[extensions]
;User Extensions
exten => _61XX,1,Macro(ext,SIP/${EXTEN},${EXTEN})
Debug Out for NOT working setup:
-- Executing Macro("SIP/2190-08827648", "ext|SIP/6138|6138") in new stack
-- Executing Answer("SIP/2190-08827648", "") in new stack
-- Executing SetMusicOnHold("SIP/2190-08827648", "default") in new stack
-- Executing Dial("SIP/2190-08827648", "SIP/SIP/6138&SIP/7138|10") in new stack
Sep 19 09:42:03 WARNING[4256]: chan_sip.c:1989 create_addr: No such host: SIP
Sep 19 09:42:03 NOTICE[4256]: app_dial.c:1056 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
Sep 19 09:42:03 NOTICE[4256]: app_dial.c:1056 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (2:0/0/2)
– Executing VoiceMail(“SIP/2190-08827648”, “u6138”) in new stack
I dont want to trouble you too much in this. If passing parameters to macro with requested setup is not possible please let me know. i can live with the working setup.
thanks
sekhar.