try using "export" instead of "set" or add it to the dial string directly that calls it<br><br>{sip_use_gateway=broadview}sofia/.......<br><br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 9:42 AM, Wellie Chao <span dir="ltr"><<a href="mailto:wchao@yahoo.com">wchao@yahoo.com</a>></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;">Where do you recommend I put the sip_use_gateway=broadview action?<br>
<br>
I have tried in the conf/dialplan/public.xml like so:<br>
<br>
<extension name="public_did_broadview"><br>
<condition field="destination_number" expression="^(12675379324|2675379324|12675379325|2675379325)$"><br>
<action application="set" data="sip_use_gateway=broadview"/><br>
<action application="transfer" data="$1 XML default"/><br>
</condition><br>
</extension><br>
<br>
I've also tried in conf/dialplan/extensions/7_inbound.xml (a file I created that is pulled in via an include pre-processor directive):<br>
<br>
<extension name="broadview_inbound_9325"><br>
<condition field="destination_number" expression="^12675379325|2675379325$"><br>
<action application="set" data="sip_use_gateway=broadview"/><br>
<action application="transfer" data="1001"/><br>
</condition><br>
</extension><br>
<br>
I have a gateway named broadview in conf/sip_profiles/external. In both cases, I still get the following error on the Freeswitch console:<br>
<br>
2008-10-31 10:37:28 [ERR] sofia_reg.c:1089 sofia_reg_handle_sip_r_challenge() No Matching gateway found<br>
<br>
On Fri, 31 Oct 2008, Anthony Minessale wrote:<br>
<br>
<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 08:04:23 -0500<div class="Ih2E3d"><br>
From: Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><br></div><div class="Ih2E3d">
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></div><div class="Ih2E3d">
See what they said in the challenge?<br>
<br>
WWW-Authenticate: Digest <br>
realm="SipLocal",nonce="3e952db60fb8",stale=false,algorithm=MD5,qop="auth"<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>). if there was a gateway with either of those 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=<whatever> on the channel which can give it a hint which<br>
gateway to use.</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>