Can anyone tell me why this doesnt works :
[macro-softphone]
exten => s,1,Dial(${ARG1})
exten => s,2,Voicemail,u${MACRO_EXTEN}
exten => s,4,Hangup
exten => s,102,Voicemail,b${MACRO_EXTEN}
exten => s,103,Hangup
[default]
exten => 1334,1,Macro(softphone, IAX2/idefisk)
exten => 1335,1,Macro(softphone, SIP/kphone)
exten => 1336,1,Macro(softphone, SIP/xlite)
BUT THIS DOES WORK :
[default]
exten => 1334,1,Dial(IAX2/idefisk)
exten => 1335,1,Dial(SIP/kphone)
exten => 1336,1,Dial(SIP/xlite)
When I use the second [default] secton, Im able to dial from one softphone to another. If I use the macros, I always go to mailbox (for the right extension
) but without dialing !!!
This is what I get in the console :
– Executing Macro(“SIP/xlite-5e2b”, “softphone| IAX2/idefisk”) in new stack
– Executing Dial(“SIP/xlite-5e2b”, " IAX2/idefisk|5") in new stack
Oct 23 02:24:18 WARNING[10050]: channel.c:2206 ast_request: No channel type registered for ’ IAX2’
Oct 23 02:24:18 NOTICE[10050]: app_dial.c:1091 dial_exec_full: Unable to create channel of type ’ IAX2’ (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing VoiceMail(“SIP/xlite-5e2b”, “u1334”) in new stack
Are there some restrictions about the macros usage that I should know
Am I doing something bad ??
Any help is welcome