[asterisk-users] Re: some simple newbie help with dialplan needed...
Evert
evert at poboxes.info
Mon Nov 6 01:06:36 MST 2006
I just tried:
exten => 998,1,Answer
exten => 998,2,Background(agent-newlocation)
exten => 998,3,Set(TIMEOUT(digit)=5)
exten => 998,4,ResponseTime,10
exten => _XXXX,1,Dial(SIP/${EXTEN}@{SERADDRESS},60,tr)
exten => i,1,Playback(pbx-invalid)
exten => i,2,hangup
This gives me:
-- Executing Answer("SIP/998-b6600ea0", "") in new stack
-- Executing BackGround("SIP/998-b6600ea0", "agent-newlocation") in
new stack
-- Playing 'agent-newlocation' (language 'en')
-- Executing Set("SIP/998-b6600ea0", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5
Nov 6 07:54:17 WARNING[5503]: pbx.c:1700 pbx_extension_helper: No
application 'ResponseTime' for extension (context, 998, 4)
== Spawn extension (context, 69697602, 4) exited non-zero on
'SIP/998-b6600ea0'
Looks like 'ResponseTime' is giving problems...
Regards,
Evert
William Piper wrote:
> You're on the right track.
> Try the following:
>
> [whatever]
> exten => 988,1,Answer
> exten => 998,2,Background(agent-newlocation)
> exten => 998,3,DigitTimeout,5
> exten => 998,4,ResponseTime,10
>
> exten => _XXXX,1,Dial(SIP/${EXTEN}@{SERADDRESS},60,tr
> <mailto:SIP/${EXTEN}@{SERADDRESS},60,tr>)
>
> exten => i,1,Playback(pbx-invalid)
> exten => i,2,goto(whatever,988,2)
>
> Good luck,
>
> bp
>
> On 11/3/06, *Evert* <evert at poboxes.info <mailto:evert at poboxes.info>> wrote:
>
> Hi all!
>
> I need a simple plan for the following:
>
>
> *answer call
> *wait for 4 digit extension
> *send call to 4-digit extension entered.
>
> I tried the following, but that doesn't work...
>
> exten => 998,1,Answer()
> exten => 998,2,Background(agent-newlocation)
> exten => 998,n,WaitExten(20)
> exten => 998,n,Dial(SIP/${EXTEN}@${SERADDRESS},60,tr)
>
>
> WaitExten obviously does not fill EXTEN with its value...
>
>
>
> Anyone any suggestions?
>
>
> Regards,
> Evert
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com
> <http://Easynews.com> --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list