<div dir="ltr">Having it on a register won't affect the CID, Can you show me the INVITE packet that Asterisk sends that works for you?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 7:24 PM, George F. Phelps <span dir="ltr"><<a href="mailto:GeorgePhelps@gfphelps.com" target="_blank">GeorgePhelps@gfphelps.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Brian West,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">I’m trying different tests to find a way to set the outgoing caller ID when using <a href="http://switch2voip.us" target="_blank">switch2voip.us</a>. I’m attempting to emulate the results of their Asterisk configuration example (with Freeswitch configuration). They told me just to set “fromuser” as shown below, in the SIP REGISTRATION message.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">[Switch2Voip]<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">username={USERNAME}<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">type=peer<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">secret={PASSWORD}<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">progressinband=never<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">port=5060<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">nat=auto<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">insecure=very<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">ignoresdpversion=yes<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">host=<a href="http://sip.switch2voip.us" target="_blank">sip.switch2voip.us</a><u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">dtmfmode=rfc2833<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">context=from-trunk<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">canreinvite=no<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">allow=g729&g711&g723<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Consolas;color:red">fromuser=+{CALLER ID}</span><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Taken from this URL:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><a href="http://switch2voip.us/index.php/customer-support/byod/asterisk-sip-trunk-configuration" target="_blank">http://switch2voip.us/index.php/customer-support/byod/asterisk-sip-trunk-configuration</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">I’m not convinced that they want to exactly see…<u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:Consolas"> <span style="color:blue">From: </span><span style="color:red">“1404XXXXXXX”</span><span style="color:blue"> <<a href="mailto:sip%3A%2B1404XXXXXXX@66.33.147.150" target="_blank">sip:+1404XXXXXXX@66.33.147.150</a>>;tag=FQag8jSNpac9c</span></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">…but I wanted to try. I can originate calls, just not override the outgoing caller ID.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">RFC 3261 does allow for an optional display-name field, along with the required URI field, in the From header. From RFC 3261:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"> From: </span><span style="font-size:11.0pt;font-family:Consolas;color:red">"Bob"</span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"> <<a href="mailto:sips%3Abob@biloxi.com" target="_blank">sips:bob@biloxi.com</a>>;tag=a48s<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"> From: sip:<a href="tel:%2B12125551212" value="+12125551212" target="_blank">+12125551212</a>@<a href="http://phone2net.com" target="_blank">phone2net.com</a>;tag=887s<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"> From: </span><span style="font-size:11.0pt;font-family:Consolas;color:red">Anonymous</span><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"> <<a href="mailto:sip%3Ac8oqz84zk7z@privacy.org" target="_blank">sip:c8oqz84zk7z@privacy.org</a>>;tag=hyh8<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d">George<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Brian West<br><b>Sent:</b> Tuesday, January 06, 2015 7:38 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Register->From->Caller ID<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">gateway->register_from = switch_core_sprintf(gateway->pool, "<<a>sip:%s@%s</a>>", from_user, !zstr(from_domain) ? from_domain : proxy); <u></u><u></u></p></div><div><p class="MsoNormal">This is how the from is built in the code. Do you have a use case that Requires it? I can't think of a reason it would matter.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Jan 6, 2015 at 4:59 PM, George F. Phelps <<a href="mailto:GeorgePhelps@gfphelps.com" target="_blank">GeorgePhelps@gfphelps.com</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">My current gateway REGISTER packet has a certain FROM header, as shown below:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> REGISTER <a>sip:66.33.147.150;transport=udp</a> SIP/2.0</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Max-Forwards: 70</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas;color:blue"> From: <<a href="mailto:sip%3A%2B1404XXXXXXX@66.33.147.150" target="_blank">sip:+1404XXXXXXX@66.33.147.150</a>>;tag=FQag8jSNpac9c</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> To: <<a href="mailto:sip%3A%2B1404XXXXXXX@66.33.147.150" target="_blank">sip:+1404XXXXXXX@66.33.147.150</a>></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> CSeq: 69955649 REGISTER</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Contact: <sip:gw+switch2voip.us@54.174.255.168:5080;transport=udp;gw=<a href="http://switch2voip.us" target="_blank">switch2voip.us</a>></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> . . .</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">What do I set/change in my gateway configuration to add a character string “1404XXXXXXX” to the FROM header? As shown in <span style="color:red">red</span> below:</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> REGISTER <a>sip:66.33.147.150;transport=udp</a> SIP/2.0</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Max-Forwards: 70</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> <span style="color:blue">From: </span><span style="color:red">“1404XXXXXXX”</span><span style="color:blue"> <<a href="mailto:sip%3A%2B1404XXXXXXX@66.33.147.150" target="_blank">sip:+1404XXXXXXX@66.33.147.150</a>>;tag=FQag8jSNpac9c</span></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> To: <<a href="mailto:sip%3A%2B1404XXXXXXX@66.33.147.150" target="_blank">sip:+1404XXXXXXX@66.33.147.150</a>></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> CSeq: 69955649 REGISTER</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> Contact: <sip:gw+switch2voip.us@54.174.255.168:5080;transport=udp;gw=<a href="http://switch2voip.us" target="_blank">switch2voip.us</a>></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> . . .</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">I am already setting the following values (in my gateway definition):</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> <param name="from-user" value="1404XXXXXXX"/></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> <param name="caller-id-in-from" value="true"/></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Thanks,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#888888"> </span><span style="color:#888888"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#888888">George</span><span style="color:#888888"><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#888888"> <u></u><u></u></span></p></div></div><p class="MsoNormal"><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><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><p><b><i><span style="font-size:13.5pt;font-family:"Courier New"">Brian West</span></i></b><span style="font-family:"Courier New""><br></span><span style="font-size:10.0pt;font-family:"Courier New""><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span><u></u><u></u></p><p><span style="font-size:7.5pt;font-family:"Courier New""><img border="0" src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"></span><u></u><u></u></p><p><b><i><span style="font-family:"Courier New"">Twitter: @FreeSWITCH , @briankwest</span></i></b><span style="font-family:"Courier New""><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></span><u></u><u></u></p><p><b><span style="font-family:"Courier New"">T:</span></b><span style="font-family:"Courier New""><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</span><u></u><u></u></p></div></div></div></div></div></div></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><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>