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 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 href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a> gateway<br>
<a 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 href="mailto:200@sip1.mydomain.com">200@sip1.mydomain.com</a><br>
bridge({sip_invite_domain=<a href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>}user/<a 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 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 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 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 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 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 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>
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<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"<sip:gw+sip1.mydomain.com@10.8.0.42:5080;transport=udp;gw=<a 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 href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>)<br>
# cat sip1.xml<br>
<include><br>
<gateway name="<a href="http://sip1.mydomain.com" target="_blank">sip1.mydomain.com</a>"><br>
<param name="from-domain" value="<a 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 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 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 href="mailto:lists">lists</a> (att) <a href="http://telefaks.de" target="_blank">telefaks.de</a><br>
Internet: <a href="http://www.telefaks.de" target="_blank">www.telefaks.de</a><br>
<br>
<br>
</blockquote></div><br>