Yes i mean add it to the dial string inside the {}<br>it only will work if the channel with the variable set is tied to the FS session obj.<br><br>sofia_reg.c 1122 is where it all happens <br>so if session is null there the var code won&#39;t work.<br>
<br>you can add some debug code there and try to figure out what&#39;s wrong.<br><br><br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 10:06 AM, Wellie Chao <span dir="ltr">&lt;<a href="mailto:wchao@yahoo.com">wchao@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I tried the following in conf/dialplan/extensions/7_inbound.xml:<div class="Ih2E3d"><br>
<br>
 &nbsp;&lt;extension name=&quot;broadview_inbound_9325&quot;&gt;<br>
 &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^12675379325|2675379325$&quot;&gt;<br></div>
 &nbsp; &nbsp; &nbsp;&lt;action application=&quot;export&quot; data=&quot;sip_use_gateway=broadview&quot;/&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;1001&quot;/&gt;<br>
 &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp;&lt;/extension&gt;<br>
<br></div>
Also tried the following in conf/dialplan/public.xml:<div class="Ih2E3d"><br>
<br>
 &nbsp; &nbsp;&lt;extension name=&quot;public_did_broadview&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(12675379324|2675379324|12675379325|2675379325)$&quot;&gt;<br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;export&quot; data=&quot;sip_use_gateway=broadview&quot;/&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp;&lt;/extension&gt;<br>
<br></div>
Neither helped. When you say add it to the dial string directly that calls it, I&#39;m not sure what you mean (I know the general format of {var_name=var_value}, so that&#39;s not my question). Do you mean add it in front of the 1001 as the target of the transfer?<br>

<br>
By the way, hangup DOES work properly if I create another gateway and name it <a href="http://64.115.128.6" target="_blank">64.115.128.6</a>. However, I&#39;d love to get it working without having to create a duplicate gateway with a non-intuitive name. It&#39;s definitely a lot better than nothing to do it that way, but I&#39;d prefer to have it work with the sip_use_gateway scheme you mention. I&#39;m assuming I&#39;m just doing something wrong with how sip_use_gateway should be specified in the XML configuration files. Can you tell what I am doing wrong?<div class="Ih2E3d">
<br>
<br>
On Fri, 31 Oct 2008, Anthony Minessale wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Date: Fri, 31 Oct 2008 09:49:18 -0500<div><div></div><div class="Wj3C7c"><br>
From: Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;<br>
Reply-To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Hangup problem/SIP BYE lacking authentication<br>
<br>
try using &quot;export&quot; instead of &quot;set&quot; or add it to the dial string directly that calls it<br>
<br>
{sip_use_gateway=broadview}sofia/.......<br>
<br>
<br>
On Fri, Oct 31, 2008 at 9:42 AM, Wellie Chao &lt;<a href="mailto:wchao@yahoo.com" target="_blank">wchao@yahoo.com</a>&gt; wrote:<br>
 &nbsp; &nbsp; &nbsp;Where do you recommend I put the sip_use_gateway=broadview action?<br>
<br>
 &nbsp; &nbsp; &nbsp;I have tried in the conf/dialplan/public.xml like so:<br>
<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;extension name=&quot;public_did_broadview&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(12675379324|2675379324|12675379325|2675379325)$&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;sip_use_gateway=broadview&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;$1 XML default&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;/extension&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp;I&#39;ve also tried in conf/dialplan/extensions/7_inbound.xml (a file I created that is pulled in via an include<br>
 &nbsp; &nbsp; &nbsp;pre-processor directive):<br>
<br>
 &nbsp; &nbsp; &nbsp;&nbsp;&lt;extension name=&quot;broadview_inbound_9325&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^12675379325|2675379325$&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&lt;action application=&quot;set&quot; data=&quot;sip_use_gateway=broadview&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&lt;action application=&quot;transfer&quot; data=&quot;1001&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;/condition&gt;<br>
 &nbsp; &nbsp; &nbsp;&nbsp;&lt;/extension&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp;I have a gateway named broadview in conf/sip_profiles/external. In both cases, I still get the following error on<br>
 &nbsp; &nbsp; &nbsp;the Freeswitch console:<br>
<br>
 &nbsp; &nbsp; &nbsp;2008-10-31 10:37:28 [ERR] sofia_reg.c:1089 sofia_reg_handle_sip_r_challenge() No Matching gateway found<br>
<br>
 &nbsp; &nbsp; &nbsp;On Fri, 31 Oct 2008, Anthony Minessale wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Date: Fri, 31 Oct 2008 08:04:23 -0500<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;From: Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;<br>
Reply-To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Hangup problem/SIP BYE lacking authentication<br>
<br>
See what they said in the challenge?<br>
<br>
WWW-Authenticate: Digest&nbsp;<br>
realm=&quot;SipLocal&quot;,nonce=&quot;3e952db60fb8&quot;,stale=false,algorithm=MD5,qop=&quot;auth&quot;<br>
<br>
Since this is a spontaneous challenge (which i think is somewhat silly since it lets you talk on the phone for 40<br>
minutes then makes you authenticate to hangup but *shrug*) FS does not know which gateway to use for credentials.<br>
<br>
The realm they sent was SipLocal so FS is looking in its configuration for a gateway with that name.<br>
The 2nd thing it tries is the host from the To: header (<a href="http://64.115.128.6" target="_blank">64.115.128.6</a>).&nbsp; if there was a gateway with either of those<br>
names,<br>
it would find it.<br>
<br>
So try naming your gateway SipLocal or <a href="http://64.115.128.6" target="_blank">64.115.128.6</a><br>
or you can try setting the variable sip_use_gateway=&lt;whatever&gt; on the channel which can give it a hint which<br>
gateway to use.<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
<br>
</div></div></blockquote>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>