How can we help you today?
Start a new topic
Answered

Add soft key to send call to voicemail?

I'm trying to add a soft key that will be shown when a call is incoming that will allow the recipient to divert the call directly to voicemail. I started by adding a general purpose XML stanza to my configuration:

<general_purpose_xml_descriptions idx="0" perm="R">
  <general type="Voicemail" />
  <initialization>
    <state value="VM" />
  </initialization>
  <action>
    <assign when="on press">
      <source context="call" id="id"/>
      <destination context="this entity" id="call_id"/>
    </assign>
    <refer target="sip:*extension@domain" source="$(call_id)" when="on release"/>
  </action>
</general_purpose_xml_descriptions> 

and then adding GP_XML[0] to call_screen_fkeys_on_incoming so that it will be shown for incoming calls.


That actually all works fine, and pressing the button redirects the call to *extension which our PBX is setup to route to voicemail for the extension.


The problem is that is seems to make the phone unstable - typically it seems to lock up as soon as a call hangs up then after a short pause some sort of watchdog seems to kick in and reboot the phone.


Have I missed out something important in my XML that's not resetting state properly or something?


Best Answer

Tom,


I'm going to convert this topic to a help desk ticket.


Regards,


Snom Support


Which phone and what version of firmware? Do you have the Syslog from the phone, set to log level 9, capturing the behavior?

It's a D710 running 8.9.3.60 and I just tried it again with logging and these are the last few messages when I hang up:


 

Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: rtp data 172 from Udp:172.16.14.182:8002
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: Stream 3302961934 (state 3): audio -> stream 172, seq 136
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: streamToNetworkRtp len: 172
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: rtp data 172 from Udp:172.16.14.182:8002
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: Stream 3302961934 (state 3): audio -> stream 172, seq 137
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] MEDIA: streamToNetworkRtp len: 172
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [DEBUG2] PHN: gui_keys: on key event (ONHOOK, 1), from_hardware 0, is_longpressed 0, State Connected (11), time 109940
Aug 16 08:42:26 thh-snom.uk.example.com 0004137EF006 [INFO  ] PHN: Hook switch pressed in state Connected (11)
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG0] GUI: Line -1: EndCall (6)
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG1] SIP: set_rtp_state: hold state: inactive holding: 0 moh: 0
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [INFO  ] SIP: RTP: set_audible(1/1 -> 0/0): RP1 changed=1, update_req=0, adr=172.16.14.182:8002
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG0] MEDIA: MediaIpc::rtpStats: cseq: 34 ssrc: 3302961934 name: RP1 stream: 0 vqidx: 
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG0] SIP: requesting call stats: 34 in state confirmed
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [INFO  ] SIP: RTP: close stream 1, stats 1
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG0] MEDIA: MediaIpc::holdStream: prot: Udp ssrc: c4df330e rtp: RP1 rtcp: RC1 stream: 0 holdstate: 0
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG0] MEDIA: MediaIpc::rtpSymmetric: RP1 0
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG2] GUI: Line -1: state change 'connected' (0) -> 'closed' (5)
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG2] CSTA: Received event for identity sip:thh-snom@pbx.uk.example.com
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [INFO  ] SIP: Dialog -1/1/4 going to terminated
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG1] SIP: mark for deletion 1/32b3599128579713117eb52678ae6b46@pbx.uk.example.com, cbi 0, 0
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG2] SIP: SIP: delete connection -1/1 in 120 secs
Aug 16 08:42:27 thh-snom.uk.example.com 0004137EF006 [DEBUG1] PHN: Goto Best State from 'pConnected' (11), force 1

All I had done here was to define the GP XML and I hadn't even bound it to a button. As you can see media was flowing then I put the handset down and there are a few more log messages and then that's it. The UI is completely frozen and no more log messages appear until it is rebooted.

Answer

Tom,


I'm going to convert this topic to a help desk ticket.


Regards,


Snom Support

Login or Signup to post a comment