Hello to all,
my first post here on API and also giving my first steps building some.
Have been some issues getting this work and I will try to explain better I can.
Im testing the commands trought telnet and I cannot put this working
1st - telnet serverip 5038
2ng:
Action: Login
Username: testuser
Secret: testsecret
3rd:
Action: Originate
Channel: sip/12345
Exten: 1234
Context: default
But now in my default context I have a macro that is:
[macro-dial]
exten => s,1,Wait(1)
exten => s,2,Dial(sip/${ARG1}@server1)
exten => s,3,Dial(sip/${ARG1}@server2)
[default]
exten=> 1234,1,Macro(dial,${EXTEN})
However it doesnt assume the ARG1 and connects to the server1 and 2 without any Number.
– Called @server1
– SIP/server1-00004f41 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dial:3] Dial(“SIP/0001-00004f40”, “SIP/s@server2|60”) in new stack
– Called @server2
it doesnt pass the ARG to the macro. But if I change to:
[default]
exten=> 1234,1,Dial(SIP/${EXTEN}))
it works
Anyone know how to work arroung this?
many thanks