Destination separation by {$sip_to_uri}

Status
Not open for further replies.

Baji Zsolt

New Member
Dec 12, 2017
12
0
1
43
Helo,

I have problem with some providers (for example Telekom Serbia), who send called number in sip_to_uri string not in destination.

I wrote this rule:

Code:
<context name="public-convert">
    <extension name="destination-converter" continue="false" uuid="4b6f8ff3-df64-4b19-a0d6-b02c382d8a78">
        <condition field="${sip_to_uri}" expression="^([0-9]+)@[0-9a-z.]+">
            <action application="transfer" data="$1 XML public"/>
            <anti-action application="transfer" data="${destination_number} XML public"/>
        </condition>
    </extension>
</context>

It nedd to be inserted as very first rule in dialplan manager (for example as rule order 5). This can be used after on problematic gateways, only need to set gateway to be in context "public-convert". Very simple and functional.

But I want to be add it in default installation. I am code contributor, I can add it as merge request (if someone need it). But I don't known where to add this rule file. Do somebody know it?

Other things: in which folder can I add custom rulesets to be load - very frustrating to every time create all settings in admin web page.


Thanks, if someone know to answer to me.
 
Status
Not open for further replies.