Hi,
I am trying to configure a remote access to my asterisk over the PSTN, but when I dial the number the I want to call with the remote access the Background application only takes 4 numbers.
exten => 650,1,Answer()
exten => 650,n,Wait(2)
exten => 650,n,Playback(please-enter-the)
exten => 650,n,Background(number)
exten => 650,n,Waitexten(5000)
exten => 650,n,NOOP(${EXTEN})
exten => 650,n,DIAL(SIP/RemoteGateway/${EXTEN})
exten => 650,n,HANGUP
//////////////////////////////////
Executing Answer(“SIP/XX.XX.XX.XX-8511ad50”, “”) in new stack
– Executing Wait(“SIP/XX.XX.XX.XX-8511ad50”, “2”) in new stack
– Executing Playback(“SIP/10.2.1.19-8511ad50”, “please-enter-the”) in new stack
– Playing ‘please-enter-the’ (language ‘en’)
– Executing BackGround(“SIP/XX.XX.XX.XX-8511ad50”, “number”) in new stack
– Playing ‘number’ (language ‘en’)
– Executing WaitExten(“SIP/XX.XX.XX.XX-8511ad50”, “5000”) in new stack
== CDR updated on SIP/XX.XX.XX.XX-8511ad50
– Executing Dial(“SIP/XX.XX.XX.XX-8511ad50”, “SIP/RemoteGateway/8838|30”) in new stack
– Called RemoteGateway/8838
///////////////////////////////////////////////////////////////
As you can see the aplication send only 4 digits(8838) and I am dialing 88383889, only takes the first 4 digits.
Any idea???