[asterisk-users] Called number changed on SNOM 821

Luca Bertoncello lucabert at lucabert.de
Fri Dec 31 08:54:01 CST 2021

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;branch=z9hG4bK5d77ab07;rport
Max-Forwards: 70
From: <sip:01773218409 at>;tag=as7a4dc11e
To: <sip:74 at;line=r37b8xhj>
Call-ID: 5372968b4a66dac5051ce91e29f8b283 at
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?

exten => s,1,NoOp(UID CALL: ${UNIQUEID} / DATE:
exten => s,n,System(echo "Verpasster Anruf vom ${CALLERID(NUM)} um
${STRFTIME(${EPOCH},,%H:%M)}" | mail -s "Verpasster Anruf" info at xxx.de)

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

Luca Bertoncello
(lucabert at lucabert.de)

More information about the asterisk-users mailing list