Set call loop to one

I’m running a Java implemented using Asterisk-Java. However, when I reject the call on my mobilephone, it calls again with UNKNOWN number and calls again till the timeout was reached. Any idea? Thanks

using only my psychic powers, i predict that there is a problem with either the dialplan or the java code.

if you would like to provide something useful i could probably extend this answer past my psychic abilities. a snippet of dialplan, a snippet of java code, and perhaps some console output when the issue is occuring.

Hello, I just used the Asterisk-Java tutorial on HelloManager application.

OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/639152195485@pynkglobal-sip"); originateAction.setContext("numberplan-custom-2"); originateAction.setExten("6000"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Long(50000));
My dial plan consist of a call rule and voice message:

[code][numberplan-custom-2]
include=default
plancomment=MobiPlan
include=parkedcalls
exten=_639X!,1,Macro(trunkdial,${trunk_1}/${EXTEN:0},${trunk_1_cid})
comment=_639X!,1,PynkRule,standard

[voicemenu-custom-2]
comment=Mobivoice
alias_exten=6000
include=default
exten=s,1,Answer()
exten=s,2,Playback(mobiclear-welcome)
exten=s,n,Read(test,4,skip,1,15)
exten=s,4,Playback(mobiclear-goodbye)
exten=s,5,Hangup()[/code]