I
I
Ivan2016-12-13 11:43:39
Telephony
Ivan, 2016-12-13 11:43:39

Why doesn't the destination number change on an incoming call?

Good afternoon, you need to replace the destination number with an incoming call.
Gateway settings

<gateway name="3">
<param name="username" value="user"/>
<param name="password" value="password"/>
<param name="realm" value="sbc.megafon.ru"/>
<param name="proxy" value="sbc.megafon.ru"/>
<param name="extension" value="long_string"/>
<param name="register" value="true"/>
<param name="context" value="inc-test2"/>
<param name="from-domain" value="multifon.ru"/>
<param name="register-transport" value="udp"/>
<param name="expire-seconds" value="60"/>
<param name="ping" value="25"/>
<param name="retry-seconds" value="30"/>
</gateway>

Dialplan
<include>
<context name="inc-test2">
<extension name="inc_test2">
    <condition field="destination_number" expression="regexp">
     <action application="log" data="INFO OK"/>
    </condition>
</extension>
</context>

If you set the parameter, then it comes true for a multiphone, and for another provider in destination_number(username) , but not what is written in extension.
The configs are the same for the two providers, everything works for the multiphone, but not for the other, tell me this is the problem of the provider itself or do I need to add something else in the gateway settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-12-14
@kalashnikofff

because the prov can ignore what you have in the Contact
header, the header is just set through "extension"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question