Am 31.12.2021 um 14:39 schrieb Antony Stone:

Hi Antony

>> Last very strange problem is, that the list of missed calls on the phone
>> is always empty...
> 
> Check the SIP notifications which are being sent to the telephone for these 
> calls, and whether any of them contain a "Reason" code for "Answered 
> elsewhere".

Got it...

Via: SIP/2.0/UDP 192.168.60.1:5060;branch=z9hG4bK5d77ab07;rport
Max-Forwards: 70
From: <sip:[email protected]>;tag=as7a4dc11e
To: <sip:[email protected]:3072;line=r37b8xhj>
Call-ID: [email protected]:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 16.2.1~dfsg-1+deb10u2
Reason: SIP;cause=200;text="Call completed elsewhere"
Content-Length: 0

> This "answered elsewhere" code is usually used when telephones are in a ring 
> group or agents subscribed to a queue, and nobody wants to know about the 
> calls which someone else answered, even if their telephone rang, so the phone 
> sees this code and eliminates the call from its history.

Now the very question is how to remove this header...
Can the problem be that I added a function to send an E-Mail if a call
wasn't answered?

[noanswer]
exten => s,1,NoOp(UID CALL: ${UNIQUEID} / DATE:
${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}))
exten => s,n,System(echo "Verpasster Anruf vom ${CALLERID(NUM)} um
${STRFTIME(${EPOCH},,%H:%M)}" | mail -s "Verpasster Anruf" [email protected])

....
exten => h,1,GotoIf($[“${DIALSTATUS}” = “ANSWER”]?done)
exten => h,n,Goto(noanswer,s,1)
exten => h,n(done),NoOp()

Thanks
Luca Bertoncello
([email protected])

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to