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't work.<br>
<br>you can add some debug code there and try to figure out what's wrong.<br><br><br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 10:06 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;">I tried the following in conf/dialplan/extensions/7_inbound.xml:<div class="Ih2E3d"><br>
<br>
<extension name="broadview_inbound_9325"><br>
<condition field="destination_number" expression="^12675379325|2675379325$"><br></div>
<action application="export" data="sip_use_gateway=broadview"/><div class="Ih2E3d"><br>
<action application="transfer" data="1001"/><br>
</condition><br>
</extension><br>
<br></div>
Also tried the following in conf/dialplan/public.xml:<div class="Ih2E3d"><br>
<br>
<extension name="public_did_broadview"><br>
<condition field="destination_number" expression="^(12675379324|2675379324|12675379325|2675379325)$"><br></div>
<action application="export" data="sip_use_gateway=broadview"/><div class="Ih2E3d"><br>
<action application="transfer" data="$1 XML default"/><br>
</condition><br>
</extension><br>
<br></div>
Neither helped. When you say add it to the dial string directly that calls it, I'm not sure what you mean (I know the general format of {var_name=var_value}, so that'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'd love to get it working without having to create a duplicate gateway with a non-intuitive name. It's definitely a lot better than nothing to do it that way, but I'd prefer to have it work with the sip_use_gateway scheme you mention. I'm assuming I'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 <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><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 "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>
On Fri, Oct 31, 2008 at 9:42 AM, Wellie Chao <<a href="mailto:wchao@yahoo.com" target="_blank">wchao@yahoo.com</a>> wrote:<br>
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<br>
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<br>
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>
Date: Fri, 31 Oct 2008 08:04:23 -0500<br>
From: Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><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 <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<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=<whatever> 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>