<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">From looking at the code, it does not seem that 3pcc-proxy mode (enable-3pcc=“proxy”) is intended to generate a local SDP.<div class=""><br class=""></div><div class="">I am not completely sure what 3pcc-proxy mode is, but in my scenario I need a local endpoint/channel that I can manipulate.</div><div class=""><br class=""></div><div class="">Perhaps my original question about why the dialplan is not hit when enable-3pcc=“true” is set is a better question (?)</div><div class=""><br class=""></div><div class="">In general, I would appreciate clarification on which 3pcc scenarios (if any) freeswitch supports.</div><div class=""><br class=""></div><div class="">I am currently testing on&nbsp;FreeSWITCH version: 1.6.13+git~20161129T154639Z~e755b430da~64bit (git e755b43 2016-11-29 15:46:39Z 64bit)</div><div class=""><br class=""></div><div class="">which is fairly recent, but would be happy to test on the head or any other branch if directed finally.</div><div class=""><br class=""></div><div class="">Finally, is this a bug I should be entering in JIRA?</div><div class=""><br class=""><div><div class="">On Dec 13, 2016, at 9:33 AM, Dave Horton &lt;<a href="mailto:daveh@beachdognet.com" class="">daveh@beachdognet.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I turned up logging in sofia and got a better trace.<div class=""><br class=""></div><div class="">full pastebin at&nbsp;<a href="http://pastebin.com/dQdJk8HS" class="">http://pastebin.com/dQdJk8HS</a></div><div class=""><br class=""></div><div class="">It seems like there is an error in generating the offer (relevant log snippets below):</div><div class=""><br class=""></div><div class=""><div class="">EXECUTE sofia/drachtio_mrf/nobody@5070 socket(159.223.113.146:50847 async full)</div><div class=""><br class=""></div><div class="">2016-12-13 14:28:14.932540 [NOTICE] mod_event_socket.c:432 Trying host: 159.223.113.146:50847</div><div class=""><br class=""></div><div class="">nta.c:1296 agent_timer() nta: timer set next to 4892 ms</div><div class=""><br class=""></div><div class="">2016-12-13 14:28:14.992532 [DEBUG] switch_ivr.c:623 sofia/drachtio_mrf/nobody@5070 Command Execute answer()</div><div class=""><br class=""></div><div class="">EXECUTE sofia/drachtio_mrf/nobody@5070 answer()</div><div class=""><br class=""></div><div class="">nua.c:879 nua_respond() nua: nua_respond: entering</div><div class="">nua_stack.c:573 nua_stack_signal() nua(0x7f157804a690): recv signal r_respond 200 OK</div><div class="">nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering</div><div class="">soa.c:403 soa_set_params() soa_set_params(static::0x7f1578047de0, ...) called</div><div class="">nua_session.c:2320 nua_invite_server_respond() nua: nua_invite_server_respond: entering</div><div class="">soa.c:1426 soa_generate_offer() soa_generate_offer(static::0x7f1578047de0, 0) called</div><div class="">soa.c:768 soa_error_as_sip_response() soa_error_as_sip_response(static::0x7f1578047de0, ...) called</div><div class="">tport.c:3257 tport_tsend() tport_tsend(0x7f1578004640) tpn = UDP/159.223.113.146:5070</div><div class="">tport.c:4046 tport_resolve() tport_resolve addrinfo = 159.223.113.146:5070</div><div class="">tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0x7f1578004640): not found by name UDP/159.223.113.146:5070</div><div class="">nua_stack.c:529 nua_signal() nua(0x7f157804a690): sent signal r_respond</div><div class="">2016-12-13 14:28:14.992532 [DEBUG] mod_sofia.c:762 3PCC-PROXY, Sent a 200 OK, waiting for ACK</div><div class="">tport.c:3594 tport_vsend() tport_vsend(0x7f1578004640): 576 bytes of 576 to udp/159.223.113.146:5070</div><div class="">tport.c:3492 tport_send_msg() tport_vsend returned 576</div><div class=""><br class=""></div><div class="">send 576 bytes to udp/[159.223.113.146]:5070 at 14:28:15.006856:</div><div class="">&nbsp; &nbsp;------------------------------------------------------------------------</div><div class="">&nbsp; &nbsp;SIP/2.0 500 No session set by user</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">On Dec 13, 2016, at 9:04 AM, Dave Horton &lt;<a href="mailto:daveh@beachdognet.com" class="">daveh@beachdognet.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I tried that and while it did hit the dialplan, freeswitch sends a “500 No session set by user” instead of the 200 OK offering an SDP.<div class=""><br class=""></div><div class="">Here is the scenario:</div><div class="">- I send an INVITE without SDP to Freeswitch</div><div class="">- the dialplan matches an extension based on headers I have set</div><div class="">- the extension initiates an outbound socket connection to my application</div><div class="">- my application issues the ‘answer’ command</div><div class="">- freeswitch logs the following:</div><div class=""><br class=""></div><div class=""><div class="">8c2094e3-5298-44af-a759-a11932583e4c 2016-12-13 13:48:25.082197 [DEBUG] switch_ivr.c:623 sofia/drachtio_mrf/nobody@5070 Command Execute answer()</div><div class="">8c2094e3-5298-44af-a759-a11932583e4c EXECUTE sofia/drachtio_mrf/nobody@5070 answer()</div><div class="">8c2094e3-5298-44af-a759-a11932583e4c 2016-12-13 13:48:25.082197 [DEBUG] mod_sofia.c:762 3PCC-PROXY, Sent a 200 OK, waiting for ACK</div><div class=""><br class=""></div><div class="">- but then sends a 500 (and no 200 OK was ever sent).</div><div class=""><br class=""></div><div class=""><div class="">full pastebin at&nbsp;<a href="http://pastebin.com/bhFi3zY2" class="">http://pastebin.com/bhFi3zY2</a></div></div><div class=""><br class=""></div><div class="">Any ideas?</div><div class=""><br class=""></div><div class="">And for background, here is what I am trying to achieve:</div><div class=""><br class=""></div><div class="">- send an INVITE without SDP, get freeswitch to offer an SDP with all codecs</div><div class="">- establish an outbound socket to control that channel</div><div class="">- send an ACK with a blackhole SDP (per&nbsp;<a href="https://tools.ietf.org/search/rfc3725" class="">https://tools.ietf.org/search/rfc3725</a>)</div><div class="">- later re-INVITE to a far end SDP</div><div class="">- bridge this channel to another one (via event socket, uuid_bridge command)</div><div class=""><br class=""></div><div class="">If there is a specific flavor of 3pcc that freeswitch supports (e.g. the RFC above describes 4 different possibilities), I could adjust my code to accordingly.</div><div class=""><br class=""></div><div class="">Dave</div><div class=""><div class="">On Dec 12, 2016, at 10:25 PM, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" class="">anthony.minessale@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">try setting it to "proxy" instead of "true"</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Dec 12, 2016 at 8:58 PM, Dave Horton <span dir="ltr" class="">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank" class="">daveh@beachdognet.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I notice that when I set:<br class="">
<br class="">
&lt;param name="enable-3pcc" value="true”/&gt;<br class="">
<br class="">
and then send an INVITE to Freeswitch with no SDP, Freeswitch responds with 200 OK and an SDP offering all available codecs.<br class="">
<br class="">
That is good, but it also appears that it does not evaluate the dialplan at all - simply sends out the 200 OK.<br class="">
<br class="">
Is this by design?<br class="">
<br class="">
My intent was to send an INVITE with no SDP, execute answer through my event socket program and thereafter be able to issue commands.<br class="">
It seems like this is not possible?&nbsp; Or am I doing something wrong?<br class="">
<br class="">
Dave<br class="">
______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Anthony Minessale II &nbsp; &nbsp; &nbsp; ♬ @anthmfs&nbsp;&nbsp;♬ @FreeSWITCH&nbsp;&nbsp;♬<div class=""><br class=""><div class="">☞ <a href="http://freeswitch.org/" target="_blank" class="">http://freeswitch.org/</a> &nbsp;☞ <a href="http://cluecon.com/" target="_blank" class="">http://cluecon.com/</a> &nbsp;☞ <a href="http://twitter.com/FreeSWITCH" target="_blank" class="">http://twitter.com/FreeSWITCH</a></div><div class=""><div class="">☞ <a href="http://irc.freenode.net/" target="_blank" class="">irc.freenode.net</a> #freeswitch&nbsp;☞ <u class=""><a href="http://freeswitch.org/g+" target="_blank" class="">http://freeswitch.org/g+</a></u><br class=""><br class=""></div><div class="">ClueCon Weekly Development Call&nbsp;<br class=""></div><div class="">☎&nbsp;<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank" class="">sip:888@conference.freeswitch.org</a> &nbsp;☎ +19193869900&nbsp;</div><div class=""><br class=""></div></div></div><div class=""><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank" class="">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div class=""><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank" class="">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br class=""></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com/" class="">http://www.freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org" class="">http://www.freeswitch.org</a><br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></div><br class=""></div></div></div></div><br class=""></div></div></div></div><br class=""></div></body></html>