<p dir="ltr">0.0.0.0 is just a place holder. I did try ${domain} but to no avail. Curious to see if I replace loopback/1004 with sofia/default/1004%0.0.0.0 if it would not enter the dialplan. Might work, just seems odd that in flat file it works fine.</p>
<p dir="ltr">Many Thanks<br>
Ben</p>
<div class="gmail_quote">On Feb 1, 2015 8:08 AM, "Chris Tunbridge" <<a href="mailto:blasterjr@gmail.com">blasterjr@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>if you execute 'sofia_contact<span> 1004@</span><span><span>0.0.0.0' (without quotes) at the CLI what do you get, or is 0.0.0.0 just the replacement of the actual ip?<br><br></span></span></div><span><span>I recommend setting your ip or teh 0.0.0.0 in your PHP script to ${domain} so that it dynamically resolves it.<br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 30, 2015 at 1:29 PM, Benjamin Rowe <span dir="ltr"><<a href="mailto:you.kissmyarse@gmail.com" target="_blank">you.kissmyarse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've been trying to dig into this more but can't find the issue i think it must have something to do with the dial-string. Here is curl response from my PHP script for 1004's authentication.<br><br><div><pre><span><?xml</span> <span>version</span><span>=</span><span>"1.0"</span> <span>encoding</span><span>=</span><span>"utf-8"</span> <span>?></span>
<span><document</span> <span>type</span><span>=</span><span>"freeswitch/xml"</span><span>></span>
<span><section</span> <span>name</span><span>=</span><span>"directory"</span><span>></span>
<span><domain</span> <span>name</span><span>=</span><span>"</span><span><span>0.0.0.0</span>"</span><span>></span>
<span><groups></span>
<span><group</span> <span>name</span><span>=</span><span>"default"</span><span>></span>
<span><users></span>
<span><user</span> <span>id</span><span>=</span><span>"1004"</span><span>></user></span>
<span></users></span>
<span><params></span>
<span><param</span> <span>name</span><span>=</span><span>"dial-string"</span> <span>value</span><span>=</span><span>"{presence_id=<a href="mailto:1004@0.0.0.0" target="_blank">1004@0.0.0.0</a>}${sofia_contact(1004@</span><span><span>0.0.0.0</span>)}"</span><span>></param></span>
<span><param</span> <span>name</span><span>=</span><span>"a1-hash"</span> <span>value</span><span>=</span><span>"<HASH>"</span><span>></param></span>
<span></params></span>
<span><variables></span>
<span><variable</span> <span>name</span><span>=</span><span>"user_context"</span> <span>value</span><span>=</span><span>"default"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"effective_caller_id_name"</span> <span>value</span><span>=</span><span>"Test"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"effective_caller_id_number"</span> <span>value</span><span>=</span><span>"1004"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"dtmf-type"</span> <span>value</span><span>=</span><span>"info"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"toll_allow"</span> <span>value</span><span>=</span><span>"domestic,international,local"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"accountcode"</span> <span>value</span><span>=</span><span>"1004"</span><span>></variable></span>
<span><variable</span> <span>name</span><span>=</span><span>"transfer_fallback_extension"</span> <span>value</span><span>=</span><span>"operator"</span><span>></variable></span>
<span></variables></span>
<span></group></span>
<span></groups></span>
<span></domain></span>
<span></section></span>
<span></document></span></pre></div><br><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 6:20 PM, Benjamin Rowe <span dir="ltr"><<a href="mailto:you.kissmyarse@gmail.com" target="_blank">you.kissmyarse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Evening All,<div><div><br><br>I have a basic system up and running i am able to dial out via my provider on both sip endpoints. I have setup 2 users 1000 and 1004. 1000 is created from the flat file xml and 1004 is from the xml_curl request. when i attempt to originate a call from user 1000 to an external number it passes through fine however when i originate a call from user 1004 i get subscriber absent both are running the same setup to my knowledge. Any Ideas?<br clear="all"><div><br>Errors:<br>2015-01-29 18:12:17.745051 [WARNING] mod_dptools.c:3979 Can't find user [1004@<IP>]<br>2015-01-29 18:12:17.745051 [NOTICE] switch_ivr_originate.c:2735 Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]<br>2015-01-29 18:12:17.745051 [DEBUG] switch_ivr_originate.c:3723 Originate Resulted in Error Cause: 20 [SUBSCRIBER_ABSENT]<br>2015-01-29 18:12:17.745051 [INFO] mod_dptools.c:3234 Originate Failed. Cause: SUBSCRIBER_ABSENT<br>2015-01-29 18:12:17.745051 [NOTICE] switch_channel.c:4724 Hangup loopback/1004-b [CS_EXECUTE] [SUBSCRIBER_ABSENT]<br><br></div><div>Sofia Registrations:<br>=================================================================================================<br>Call-ID: ocq57n8fn23uo0s7rh2025<br>User: 1004@<IP><br>Contact: "" <sip:mp2337gf@1tfoakfdb6me.invalid;transport=ws;fs_nat=yes;fs_path=sip%3Amp2337gf%40<IP>%3A59613%3Btransport%3Dws><br>Agent: SIP.js/0.6.3-devel BB<br>Status: Registered(WS-NAT)(unknown) EXP(2015-01-29 18:24:02) EXPSECS(571)<br>Ping-Status: Reachable<br>Host: fs01-a<br>IP: <IP><br>Port: 59613<br>Auth-User: 1004<br>Auth-Realm: <IP><br>MWI-Account: 1004@<IP><br><br><br>Originate command:<br>originate {ignore_early_media=true,origination_caller_id_number=1004}loopback/1004 &bridge(sofia/gateway/test/555123456)<br><br></div><div>Many Thanks<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><div>Benjamin Rowe<br></div>
</div></font></span></div></div></div>
</blockquote></div><div><div><br><br clear="all"><div><br></div>-- <br><div>Benjamin Rowe<br><br>Lazypeople<br><br>Mobile: <a href="tel:%2B44%20%280%297904%20026869" value="+447904026869" target="_blank">+44 (0)7904 026869</a><br>Phone: +44 (0)845 86 99 892<br>Email: <a href="mailto:ben@lazypeople.co.uk" target="_blank">ben@lazypeople.co.uk</a><br>Web: <a href="http://www.lazypeople.co.uk" target="_blank">http://www.lazypeople.co.uk</a></div>
</div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div>