<div dir="ltr"><div>Hi all, </div><div><br></div><div>I am trying to receive a call through a gateway that is suing registration on external profile and I don't clearly understand how to configure the extension to receive the call. </div>
<div><br></div><div>I appears from the example.xml gateway configuration that the an extension name with the username used for gateway registration can be used to get the dialplan to accept the call.</div><div><br></div><div>
I assume this needs to be configured on the public context, however I see the INVITE coming in, but the dialplan never kicks in.</div><div><br></div><div>Do I have to receive the INVITE at port 5080? If that is the case, registration doesn't really make sense.</div>
<div><br></div><div>public.xml</div><div><br></div><div><div><extension name="tone_detect"></div><div> <condition field="destination_number" expression="^tone_detect$"></div>
<div> <action application="pre_answer"/></div><div> <action application="sleep" data="20000"/></div><div> <action application="answer"/></div>
<div> <action application="sleep" data="1000"/></div><div> <action application="playback" data="voicemail/vm-goodbye.wav"/></div><div> <action application="hangup"/></div>
<div> </condition></div><div> </extension></div></div><div><br></div><div><br></div><div>Gateway config</div><div><br></div><div><div><include></div><div> <gateway name="tone_detect"></div>
<div> <param name="username" value="tone_detect"/></div></div><div> <...snip...></div><div></include></div><div><br></div><div>Thanks in advance for your help.</div><div><br></div><div>
<br></div></div>