hi

i want to add line (written below) (may be hard coded) in mappingrules xml.

<userMatch>
      <description>Default voicemail dialing plan</description>
      <userPattern>~~vm_busy~.</userPattern>
      <permissionMatch>
        <permission>SipXVoicemailServer</permission>
        <transform>
          <url>&lt;sip:{vdigits}@
{mediaserver};voicexml={voicemail}%2Fcgi-bin%2Fvoicemail%2Fmediaserver.cgi%3Faction%3Ddeposit%26mailbox%3D{vdigits-escaped}%26lang%3Den&gt;;q=0.1</url>
        </transform>
      </permissionMatch>
    </userMatch>
<userMatch>
      <description>Default voicemail dialing plan</description>
      <userPattern>~~vm_nr~.</userPattern>
      <permissionMatch>
        <permission>SipXVoicemailServer</permission>
        <transform>
          <url>&lt;sip:{vdigits}@
{mediaserver};voicexml={voicemail}%2Fcgi-bin%2Fvoicemail%2Fmediaserver.cgi%3Faction%3Dnr%26mailbox%3D{vdigits-escaped}%26lang%3Den&gt;;q=0.1</url>
        </transform>
      </permissionMatch>
    </userMatch>


I want this because when a phone is busy, url used would be of ~~vm_busy~
, similarly if there is no response then url is of ~~vm_nr~. This helps me
in playing a file which says 'phone is busy or try later no response'
instead of 'phone is unavailabe'.

When I write those lines in mappingrules.xml it works as i want. Then on
adding a dial plan, or on activating etc. mappingrules.xml get changed.
As mappingrules.xml is created from mappingrules.xml.in. If i add lined in
mappingrules.xml.in it is also changing.
Finally i need these lines to added permanently (may be hard coded).


can it be possible? am i going right?
can is there any other solution?
So where i write those lines to get them permanently?
Which java or c++ files writing/activating mappingrules.xml/
mappingrules.xml.in?
>From should i start to do so?


plz reply.. and help..


Thanx for any help.

-- 
vikas sharma
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to