PROB_REG_CallFile_Using_LOCAL_CHANNEL

Hello All,

I would like to address my problem here…

Following is the code for my call file:

Channel: LOCAL/amar@newamar/n
CallerID: 3054963480
MaxRetries: 0
RetryTime: 9
WaitTime: 12
Context: newamar
Extension: amar
Priority: 1
Setvar: SOUND=/var/www/push/sound/CallMeBackUS
Setvar: DESTINATION=7865210317
Setvar: OPERATOR=vitel-outbound

and my code for the extension.conf file is

exten => amar,1,Dial(SIP/${DESTINATION}@${OPERATOR}/)
exten => amar,n,NoOp(${EXTEN}:DIALSTATUS=${DIALSTATUS};HANGUPCAUSE=${HANGUPCAUSE})

So, When callfile gets copied, call is established to the destination number, Now I have two cases:

Case I: When the callee answers the call one more call is established to the same destination number and if I lift the call again, one more call is getting established (like an infinite loop)
Case II: When I cut the call or do not receive the call, I am getting nothing in the console.

Can anyone suggest me what could be the problem.

Looking forward to hear from you.

Thanks,
Amaresh Manthena.