Editing HP iPAQ Voice Messenger 514 Dialplan

| | Comments (2) | TrackBacks (0)

iPAQ 514I bought iPAQ 514 Voice Messenger phone recently. It successfully connected to our corporate IP PBX on CommuniGate Pro after a little SIP configuration, but I didn't like the default dial plan.

Most numbers in my phone book recorded in an international format with some Russian-style dashes and brackets, like +7 (495) 246-24-73. To dial such numbers standard dial plan has to be modified.

Windows Mobile uses regular expressions to describe Calling Rules. Every Rule may has, besides Pattern, following attributes: Dial, Transfer, Display and Restrict, which restricts using this number in cellular network, VoIP or for SMS sending.

"IP address rules", "SIP URI rules" and "Only digits" may be left unchanged, they should work fine with any IP PBX.

"11-digits rules" and "10-digits rules" sections describe national calling rules. By default—USA. It's why they should be replaced according to a local standard (in Russia we use 8 prefix for long-distance dialing and 8-10 for international calls):

    <!-- 11-digits rules -->
    <rule pattern='7\s*-?\s*(\d{3})\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />
    <rule pattern='7\s*-?\s*\((\d{3})\)\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />
    <rule pattern='\+\s*7\s*-?\s*(\d{3})\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />
    <rule pattern='\+\s*7\s*-?\s*\((\d{3})\)\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />
    <!-- 10-digits rules -->
    <rule pattern='(\d{3})\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />
    <rule pattern='\((\d{3})\)\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
        dial='sip:8\1\2\3\4@$host$'
        display='(\1) \2-\3-\4'
        transfer='sip:8\1\2\3\4@$host$'
        />

The "7-digits rules" section contains local calling rules:

    <rule pattern='(\d{3})\s*-?\s*(\d{4})'
        dial='sip:\1\2@$host$'
        display='\1-\2'
        transfer='sip:\1\2@$host$'
        />
    <rule pattern='(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})'
        dial='sip:\1\2\3@$host$'
        display='\1-\2-\3'
        transfer='sip:\1\2\3@$host$'
        />

It's worth to add cellular-only rules (like network and emergency services) between "SIP URI" and "Only digits".

    <!-- BeeLine Services -->
    <rule pattern='(06\d+)'
        display='\1'
        restrict='VoIP'
        />

As a last rule I added universal rule for dialing international numbers with any delimiters (for ex. +44 552435657), they're prefixed with 8-10.

    <!-- Universal Intl. pattern -->
    <rule pattern='\+(\d+)\D*(\d*)\D*(\d*)\D*(\d*)\D*(\d*)\D*(\d*)'
        dial='sip:810\1\2\3\4\5\6@$host$'
        display='+\1 \2\3\4\5\6'
        transfer='sip:810\1\2\3\4\5\6@$host$'
        />

Actually it could be the only dialplan change, but I wanted a nice format for local numbers ("like (ABC) XXX-XX-XX").

Dial plan can be copied to a phone in any way documented in the application notes (file can't be just copied), I used CAB provisioning format. Dial plan placed into _setup.xml file, which archived into CAB, copied onto phone and ran. To create CAB archive type cabarc n dialplan.cab _setup.xml. Here's my dial plan version.

There is strange problem with it installation. With .cpf extension (as it should be according to MS website) phone throws access restriction error. You need to rename file to .cab, install it, then rename to .cpf and run again—everything works.

0 TrackBacks

Listed below are links to blogs that reference this entry: Editing HP iPAQ Voice Messenger 514 Dialplan.

TrackBack URL for this entry: http://www.ptitov.net/mt/mt-tb.cgi/2

2 Comments

gluek.info Author Profile Page said:

Павел, а не подскажете, какое правило нужно, чтобы убрать из номера +7 (495) 246-24-73 знак + вначале, скобки и тире, чтобы получилось 74952462473? Именно так номера воспринимает SIPNET.

denyamsk.ru Author Profile Page said:

Вместо четырех правил 11-digits, хватит двух. Вопросик-то можно сделать опциональным! :) А больше в них и нету никакой разницы половой

<rule pattern='\+?\s*7\s*-?\s*(\d{3})\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
dial='sip:8\1\2\3\4@$host$'
display='(\1) \2-\3-\4'
transfer='sip:8\1\2\3\4@$host$'
/>
<rule pattern='\+?\s*7\s*-?\s*\((\d{3})\)\s*-?\s*(\d{3})\s*-?\s*(\d{2})\s*-?\s*(\d{2})(\s*[Xx]\s*\d+)?'
dial='sip:8\1\2\3\4@$host$'
display='(\1) \2-\3-\4'
transfer='sip:8\1\2\3\4@$host$'
/>


Где все эти правила редактировать?
\Windows\ipdialplan.xml
Там.
И потом софт-ресет телефону.

Leave a comment

About this Entry

This page contains a single entry by Pavel Titov published on March 23, 2008 1:12 AM.

Xen on amd64 was the previous entry in this blog.

Scandinavian Calligraphy is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.01