<div dir="ltr">The point is that the gateway registers using a random port as the source port 52762 and then when the INVITE comes how would that be associated with the SIP profile?</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Apr 14, 2014 at 5:03 PM, Luis F Urrea <span dir="ltr"><<a href="mailto:lfurrea@gmail.com" target="_blank">lfurrea@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
</blockquote></div><br></div>