[Spce-user] network.yml editing question

William Fulton wfulton at thirdhatch.com
Fri May 10 12:48:56 EDT 2019


Alex,

Thanks for the tip, but I am still having trouble getting this to work. Here is my config.yml for the same section. But my resulting email just has the "Hello," in it and nothing more.

  unavail_custom_greeting: /home/user/file_no_extension
      unavail_overwrite_default: no
      unavail_overwrite_subscriber: no
    mailbody: |
     Hello,
     You have a new voicemail in mailbox ${VM_MAILBOX}:
        From: ${VM_CIDNAME} (${VM_CIDNUM})
        Length: ${VM_DUR} seconds
        Date: ${VM_DATE}
     We have attached the message in WAV format.
    mailsubject: 'Voicemail Notification'
    max_msg_length: '180'
    maxgreet: '60'

-----Original Message-----
From: Spce-user <spce-user-bounces at lists.sipwise.com> On Behalf Of Alex Lutay
Sent: Friday, May 10, 2019 4:06 AM
To: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] network.yml editing question

Hi,

Can you please try this way:

> root at spce:~# vim /etc/ngcp-config/config.yml

> root at spce:~# ngcpcfg check
> 2019-05-10 13:03:04 spce: yml configs were validated successfully
> 2019-05-10 13:03:04 spce: configs were checked successfully

> root at spce:~# ngcpcfg diff
> diff --git a/config.yml b/config.yml
> index eca78c9..f3661a6 100644
> --- a/config.yml
> +++ b/config.yml
> @@ -40,8 +40,10 @@ asterisk:
>        unavail_custom_greeting: /home/user/file_no_extension
>        unavail_overwrite_default: no
>        unavail_overwrite_subscriber: no
> -    mailbody: You have received a new message from ${VM_CALLERID} in voicebox ${VM_MAILBOX}
> -      on ${VM_DATE}.
> +    mailbody: |
> +      You have received a new message from ${VM_CALLERID} in voicebox ${VM_MAILBOX} on ${VM_DATE}.
> +      line 2
> +      line 3
>      mailsubject: '[Voicebox] New message ${VM_MSGNUM} in voicebox ${VM_MAILBOX}'
>      max_msg_length: '180'
>      maxgreet: '60'

> root at spce:~# cat /etc/sipwise_ngcp_version System installed. NGCP 
> version mr7.3.1 on 2019-05-10 01:18:20 System configured. NGCP version 
> mr7.3.1 on 2019-05-10 01:31:08 root at spce:~#

P.S. pay attention on pipe in "mailbody: |"!
Have fun!


On 5/9/19 9:44 PM, William Fulton wrote:
> I am trying to customize the voicemail email body, but I am running in 
> to issues with using carriage returns in the network.yml file. It 
> doesn’t access <cr> or /r/n. Is there another thing I can use to make 
> this do a carriage return? Additionally, if it is possible to make it 
> add an indent that would be useful as well.

--
Alex Lutay
_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
https://lists.sipwise.com/listinfo/spce-user


More information about the Spce-user mailing list