P
P
Pegas123452019-07-09 18:56:10
Asterisk
Pegas12345, 2019-07-09 18:56:10

Why does Asterisk call back?

Help with a problem.
When calling from Asterisk to a mobile phone, if the call is not answered from the mobile phone, but the call is dropped, then Asterisk rings again, and after that, if you reset it again from the mobile phone, then again, Asterisk calls back and so on several times. How can I make sure that if the mobile phone is dropped, then Asterisk stops its dialing?
In extensions.conf, there is Hangup() everywhere at the end of the set;
Here's how I do it in this context:

exten => _[78]XXXXXXXXXX,1,NoOP(TO RUSSIA - ${EXTEN})
same => n,Set(CALLERID(number)=7495xxxxxxx)
same => n,Dial(PJSIP/7${EXTEN:1}@7495xxxxxxx,60,tU(record-it))
same => n,Hangup()

[record-it]
exten => s,1,NoOP(Sart Recording)
same => n,Set(RecFile=${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%Y%m%d-%H%M)}-${CALLERID(num)}-${EXTEN}.wav)
same => n,Set(CDR(recordingfile)=${RecFile})
same => n,MixMonitor(/backup/records/${RecFile})
same => n,Return()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2019-07-10
@NeiroNx

I noticed this yesterday, before this it definitely didn’t happen (I’m testing the software). It's the mobile operators that have changed something, before that (on Friday) when you reset the code "Busy" (busy), and yesterday there was such crap. Today I will enable logging of the sip exchange and see what comes from the aster when resetting.
UPD:
"SIP/2.0 486 Busy here" - comes due to no answer timeout - after 3 call drops.
The behavior is observed only on mobile (outgoing via GoIP4), when the call goes through another provider, then everything is in order.
I do not believe in coincidences and I think that providers are to blame.

P
Pegas12345, 2019-07-10
@Pegas12345

Interesting. Then you need to write to the provider, maybe they will answer something.
UPD. Just from the provider. I wrote to them, they did something there, everything worked fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question