Hi Guys. in present dialplan you can see that AGI script will run for ever untill status of PJSIP endpoint becomes available. the question is, how to make AGI script run only 10 times?
It is uncommon to write an AGI in shell. Does your script actually interact with Asterisk (‘get variable,’, ‘set variable,’ etc) or would ‘system()’ be more appropriate.
Thanks Mark. I will try it, and reply. Does first line need to be same => or exten => _0XX, because extension starts with 0, so how system will understand that it must run that dialplan?
the point of the NoOP was just to be a placeholder for whatever coded he needed
not to do anything, as I was just using that to show how to use “same” after “exten”
with regards to how long to wait, well that require some testing
how long do the softphone take to registre after receiving the poke, where it be 0.1s or 5s
if you loop in the shell script you may be poking it to many time, and you still want the dialplan try to see if it has come online so you do not gain anything by looping in the script as the dialplan still have to wait and check where it is registered
I don’t think you meant that; I think you meant that you continue to hear ring back tone on the caller. My initial assumption would be that you have a NAT misconfiguration and the wrong addresses are being sent in the INVITE, but you would need to provide “pjsip set logger on” type output to be able to check that.