<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Here it is:<br>
<br>
freeswitch@internal> sofia_contact */400<br>
sofia/internalvpn/sip:gw+sip1.mydomain.com
@10.8.0.42:5080;transport=udp;gw=sip1.mydomain.com <br>
<br>
What can we read from this?<br>
<br>
<br>
On 09/27/12 23:47, Michael Collins wrote:
<blockquote
cite="mid:CAKzWOxV9xr+N2=Yxf5cZvTvjcDuUYSX9sptUc_9NWq1yA79b1A@mail.gmail.com"
type="cite">Just for kicks, try this:<br>
<br>
sofia_contact */400<br>
<br>
I'm curious about something.<br>
-MC<br>
<br>
<div class="gmail_quote">On Thu, Sep 27, 2012 at 2:24 PM, Peter
Steinbach <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:lists@telefaks.de" target="_blank">lists@telefaks.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have 2 Freeswitch boxes.<br>
Box 2 is registering as number 400 via VPN to box 1 (like a
regular<br>
phone). I can see in the sip_registrations database that the
phone is<br>
registered. And Box2 shows "<br>
vpn::<a moz-do-not-send="true"
href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>
gateway<br>
<a moz-do-not-send="true" href="http://sip:400@10.8.0.1:5075"
target="_blank">sip:400@10.8.0.1:5075</a> REGED<br>
So at the first glance everything seems ok.<br>
<br>
However in my vpn profile<br>
sofia status profile internalvpn<br>
the Freeswitch box2 is not shown as a registration entry.<br>
<br>
I think this is the reason why we receive the following when
we try to<br>
call the box 2 (number 400):<br>
EXECUTE sofia/internal/<a moz-do-not-send="true"
href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a><br>
bridge({sip_invite_domain=<a moz-do-not-send="true"
href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>}user/<a
moz-do-not-send="true" href="mailto:400@sip1.mydomain.com">400@sip1.mydomain.com</a>)<br>
2012-09-27 23:09:58.149196 [DEBUG] switch_channel.c:1062<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a>
EXPORTING[export_vars]<br>
[dialed_ext]=[400] to event<br>
2012-09-27 23:09:58.149196 [DEBUG] switch_ivr_originate.c:1961
Parsing<br>
global variables<br>
2012-09-27 23:09:58.149196 [DEBUG] switch_event.c:1478 Parsing
variable<br>
[sip_invite_domain]=[<a moz-do-not-send="true"
href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>]<br>
2012-09-27 23:09:58.169252 [DEBUG] switch_core_session.c:924
Send signal<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a>
[BREAK]<br>
2012-09-27 23:09:58.269299 [DEBUG] switch_channel.c:1062<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a>
EXPORTING[export_vars]<br>
[dialed_ext]=[400] to event<br>
2012-09-27 23:09:58.269299 [DEBUG] switch_ivr_originate.c:1961
Parsing<br>
global variables<br>
2012-09-27 23:09:58.269299 [DEBUG] switch_event.c:1478 Parsing
variable<br>
[presence_id]=[<a moz-do-not-send="true"
href="mailto:400@sip1.mydomain.com">400@sip1.mydomain.com</a>]<br>
2012-09-27 23:09:58.269299 [DEBUG] switch_event.c:1478 Parsing
variable<br>
[transfer_fallback_extension]=[400]<br>
2012-09-27 23:09:58.269299 [DEBUG] sofia.c:6040 Channel<br>
sofia/internal/<a moz-do-not-send="true"
href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a>
entering state [early][180]<br>
2012-09-27 23:09:58.269299 [NOTICE]
switch_ivr_originate.c:2544 Cannot<br>
create outgoing channel of type [error] cause:
[USER_NOT_REGISTERED]<br>
<br>
<br>
freeswitch@internal> sofia_contact 400<br>
error/user_not_registered<br>
freeswitch@internal> sofia_contact 200<br>
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/sip:200@192.168.178.105:2048;line=1vz0u23u;fs_nat=yes;fs_path=sip%3A200%40217.24.xx.xxx%3A20393%3Bline%3D1vz0u23u">sofia/internal/sip:200@192.168.178.105:2048;line=1vz0u23u;fs_nat=yes;fs_path=sip%3A200%40217.24.xx.xxx%3A20393%3Bline%3D1vz0u23u</a><br>
So 200 seems ok, 400 not.<br>
<br>
When I look at the contact field in the sip_registrations
table, I see<br>
"user"<<a class="moz-txt-link-abbreviated" href="mailto:sip:gw+sip1.mydomain.com@10.8.0.42:5080;transport=udp;gw=">sip:gw+sip1.mydomain.com@10.8.0.42:5080;transport=udp;gw=</a><a
moz-do-not-send="true" href="http://sip1.mydomain.com"
target="_blank">sip1.mydomain.com</a>><br>
so this does not reflect the number 400.<br>
<br>
Here is my gateway config from box2 which registers at box1<br>
(<a moz-do-not-send="true" href="http://sip1.mydomain.com"
target="_blank">sip1.mydomain.com</a>)<br>
# cat sip1.xml<br>
<include><br>
<gateway name="<a moz-do-not-send="true"
href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>"><br>
<param name="from-domain" value="<a
moz-do-not-send="true" href="http://sip1.mydomain.com"
target="_blank">sip1.mydomain.com</a>"/><br>
<param name="username" value="400"/><br>
<param name="from-user" value="400"/><br>
<param name="extension" value="400"/><br>
<param name="realm" value="<a moz-do-not-send="true"
href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>"/><br>
<!-- 5075 registers to the internal VPN profile --><br>
<param name="proxy" value="<a moz-do-not-send="true"
href="http://10.8.0.1:5075" target="_blank">10.8.0.1:5075</a>"/><br>
<param name="password" value="xxxxxxxx"/><br>
<param name="expire-seconds" value="3600"/><br>
<param name="register" value="true"/><br>
<param name="register-transport" value="udp"/><br>
<param name="retry-seconds" value="20"/><br>
<param name="caller-id-in-from" value="true"/><br>
</gateway><br>
</include><br>
<br>
<br>
My question is: How can I change the gateway definition, so
that box2<br>
shows up as a regular registration with number 400? Or am I
missing<br>
something different?<br>
<br>
--<br>
With kind regards<br>
Peter Steinbach<br>
<br>
Telefaks Services GmbH<br>
mailto:<a moz-do-not-send="true" href="mailto:lists">lists</a>
(att) <a moz-do-not-send="true" href="http://telefaks.de"
target="_blank">telefaks.de</a><br>
Internet: <a moz-do-not-send="true"
href="http://www.telefaks.de" target="_blank">www.telefaks.de</a><br>
<br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
With kind regards
Peter Steinbach
Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>
</pre>
</body>
</html>