First of all, sorry for my bad english.
I was stuck in asterisk dial plan like:
I have one asterisk server.
I have 2 users 1001 and 1000
The lab request I need to configure when a user call another user with something like area code. I have to answer it and wait for users next option like press 1 for call, press 2 for voice mail.
Example: when user 1000 call user 1001 with 1231001 i need to forward the call to 1001 when 1000 presss 1
My dial plan config file look like this with opt 1, i’m not finish opt 2 yet because I stuck at option 1
exten=>_123XXXX,1,Answer()
exten=>_N123XXXX,2,Set(Mynumber=${EXTEN:3:4})
same=>n,Background(en/vm-instructions)
same=>n,WaitExten(6)
exten=>1,1,Dial(SIP/${Mynumber},20,r)
same=>n,Hangup()
it is the result form my asterisk cli:
Executing [1231000@normaluser:1] Answer("SIP/1001-00000064", "") in new stack
-- Executing [1231000@normaluser:2] Set("SIP/1001-00000064", "Mynumber=[b]1000[/b]") in new stack
-- Executing [1231000@normaluser:3] BackGround("SIP/1001-00000064", "en/vm-instructions") in new stack
-- <SIP/1001-00000064> Playing 'en/vm-instructions.gsm' (language 'en')
== Using SIP RTP CoS mark 5
-- Executing [1@normaluser:1] Dial("SIP/1001-00000065", [b]"SIP/,20,r"[/b]) in new stack
[Apr 6 16:39:02] WARNING[26684][C-0000006a]: app_dial.c:2330 dial_exec_full: Dial argument takes format (technology/resource)
== Spawn extension (normaluser, 1, 1) exited non-zero on 'SIP/1001-00000065'
My problem is why when I call with dial dont have any number, please help me
When you are submitting a problem report, you must provide the configuration files that you used when you created the debug logs. If people find that the logs were not created with the configuration you were claiming to use, they will normally stop looking and are less likely to respond when you, later, provide corrected information.
[quote] – Executing [3001000@normaluser:1] Answer(“SIP/1001-00000064”, “”) in new stack
– Executing [3001000@normaluser:2] Set(“SIP/1001-00000064”, “Mynumber=1000”) in new stack
– Executing [3001000@normaluser:3] BackGround(“SIP/1001-00000064”, “en/vm-instructions”) in new stack
– <SIP/1001-00000064> Playing ‘en/vm-instructions.gsm’ (language ‘en’)
== Using SIP RTP CoS mark 5
– Executing [1@normaluser:1] Dial(“SIP/1001-00000065”, “SIP/,20,r”) in new stack
[Apr 6 16:39:02] WARNING[26684][C-0000006a]: app_dial.c:2330 dial_exec_full: Dial argument takes format (technology/resource)
== Spawn extension (normaluser, 1, 1) exited non-zero on ‘SIP/1001-00000065’
[/quote]
the problem is i use mynumber have the number but when use dial function it dont
[quote] – Executing [3001000@normaluser:2] Set(“SIP/1001-00000064”, “Mynumber=1000”) in new stack
– Executing [1@normaluser:1] Dial(“SIP/1001-00000065”, “SIP/,20,r”) in new stack
[/quote]
The red and green channels are different channels, so you have two calls mixed up in this log.
[quote] – Executing [3001000@normaluser:1] Answer("[color=#80BF00]SIP/1001-00000064[/color]", “”) in new stack
– Executing [3001000@normaluser:2] Set("[color=#80BF00]SIP/1001-00000064[/color]", “Mynumber=1000”) in new stack
– Executing [3001000@normaluser:3] BackGround("[color=#80BF00]SIP/1001-00000064[/color]", “en/vm-instructions”) in new stack
– <SIP/1001-00000064> Playing ‘en/vm-instructions.gsm’ (language ‘en’)
== Using SIP RTP CoS mark 5
– Executing [1@normaluser:1] Dial("[color=#FF0000]SIP/1001-00000065[/color]", “SIP/,20,r”) in new stack
[Apr 6 16:39:02] WARNING[26684][C-0000006a]: app_dial.c:2330 dial_exec_full: Dial argument takes format (technology/resource)
== Spawn extension (normaluser, 1, 1) exited non-zero on ‘SIP/1001-00000065’[/quote]