Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Luca Bertoncello
Am 31.12.2021 um 16:07 schrieb Luca Bertoncello:

> I'll try to remove it, but I can't test it today...
> 
> I'll let you know if it works.

At least a call without anser does not contain the Header anymore...

I'll ask if the number is shown in the missed calls.

Regards
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_
-- 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

Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Luca Bertoncello
Am 31.12.2021 um 16:04 schrieb Antony Stone:

Hi

> Check the Dial() command which places the call to the phone.  Does it contain 
> the "c" option?

Jup...

exten => _529874,1,Verbose(2,Call for Main - [${CALLERID(num)}])
exten => _529874,n,Set(CALLERID(num)=${IF($[ "${CALLERID(num):0:3}" =
"+49" ]?0${CALLERID(num):3}:${CALLERID(num)})})
exten => _529874,n,Set(CHANNEL(musicclass)=default)
exten => _529874,n,Dial(SIP/74,39,RcxX)
exten => _529874,n,Verbose(2,Voicemail for Main)
exten => _529874,n,Set(CALLERID(name)=)
 ; Damit in der E-Mail der AB nicht den Namen steht
exten => _529874,n,VoiceMail(74,us)
exten => _529874,n,Hangup

I'll try to remove it, but I can't test it today...

I'll let you know if it works.

Thanks
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_
-- 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

Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Antony Stone
On Friday 31 December 2021 at 15:54:01, Luca Bertoncello wrote:

> 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...

> Now the very question is how to remove this header...

Check the Dial() command which places the call to the phone.  Does it contain 
the "c" option?

https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_Dial


Antony.

-- 
In science, one tries to tell people
in such a way as to be understood by everyone
something that no-one ever knew before.

In poetry, it is the exact opposite.

 - Paul Dirac

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- 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

Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Luca Bertoncello
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: ;tag=as7a4dc11e
To: 
Call-ID: 5372968b4a66dac5051ce91e29f8b283@192.168.60.1: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" i...@xxx.de)


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

Thanks
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_
-- 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

Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Antony Stone
On Friday 31 December 2021 at 12:29:19, Luca Bertoncello wrote:

> Am 28.12.2021 um 21:21 schrieb Antony Stone:
> 
> Hi
> 
> > However, at least you've got as far as ruling out Telekom as being the
> > source of the problem, which I think is good.
> 
> So, I setted:
> 
>   sendrpid=rpid
> 
> instead of:
> 
>   sendrpid=pai
> 
> and now it seems to work. The called number does not change anymore.

Glad you found a solution to this.

> 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".

See https://datatracker.ietf.org/doc/html/rfc3326#section-2 - the first example 
at the top of page 3 shows the sort of thing I mean.

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.


Antony.

-- 
Pavlov is in the pub enjoying a pint.
The barman rings for last orders, and Pavlov jumps up exclaiming "Damn!  I 
forgot to feed the dog!"

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- 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

Re: [asterisk-users] Called number changed on SNOM 821

2021-12-31 Thread Luca Bertoncello
Am 28.12.2021 um 21:21 schrieb Antony Stone:

Hi

> However, at least you've got as far as ruling out Telekom as being the source 
> of the problem, which I think is good.

So, I setted:

sendrpid=rpid

instead of:

sendrpid=pai

and now it seems to work. The called number does not change anymore.

Last very strange problem is, that the list of missed calls on the phone
is always empty...
But it can be a problem of the phone hisself...
Maybe has someone an idea?
The phone is a Snom 821-SIP

Thanks and happy new year!
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_
-- 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