Hi IronHelix,
I want to make sure that the express is working fine, so, i changed my macro to
[macro-ext]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
;exten => s,3,Dial(${ARG1},15) Commented this Line
exten => s,3,Dial($[${ARG1} + “1000”],10)
exten => s,4,Voicemail(u${ARG2})
exten => s,5,Hangup
So, when i dial 2138, the call is suppose to go 2138+1000=3138. 3138 is registered SIP Phone.
but i got below error.
-- Executing Macro("SIP/2181-b7906830", "ext|SIP/2138|2138") in new stack
-- Executing Answer("SIP/2181-b7906830", "") in new stack
-- Executing SetMusicOnHold("SIP/2181-b7906830", "default") in new stack
Sep 2 00:47:16 WARNING[4709]: ast_expr2.y:843 op_div: non-numeric argument
– Executing Dial(“SIP/2181-b7906830”, “0|10”) in new stack
Sep 2 00:47:16 WARNING[4709]: app_dial.c:1024 dial_exec_full: Dial argument takes format (technology/[device:]number1)
== Spawn extension (macro-ext, s, 3) exited non-zero on ‘SIP/2181-b7906830’ in macro ‘ext’
== Spawn extension (macro-ext, s, 3) exited non-zero on ‘SIP/2181-b7906830’
– Incoming call: Got SIP response 500 “Server Internal Error” back from 10.250.10.201
Some where i read a conditional jump satements like exten => s,BUSY then GOTO ARG2 something likes this.
But first the mathematical calcualation should work to get this.
OR, is there a better way to automatically dial on to second Line in CISCO 79XX Phones?
Your help is really appreciated.
Have a nice long weekend.