[Freeswitch-users] Register->From->Caller ID

George F. Phelps GeorgePhelps at gfphelps.com
Wed Jan 7 04:24:22 MSK 2015


Brian West,

 

I’m trying different tests to find a way to set the outgoing caller ID when using switch2voip.us.  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.

 

[Switch2Voip]

username={USERNAME}

type=peer

secret={PASSWORD}

progressinband=never

port=5060

nat=auto

insecure=very

ignoresdpversion=yes

host=sip.switch2voip.us

dtmfmode=rfc2833

context=from-trunk

canreinvite=no

allow=g729&g711&g723

fromuser=+{CALLER ID}

 

Taken from this URL:

 

http://switch2voip.us/index.php/customer-support/byod/asterisk-sip-trunk-configuration

 

I’m not convinced that they want to exactly see…

 

   From: “1404XXXXXXX” <sip:+1404XXXXXXX at 66.33.147.150 <mailto:sip%3A%2B1404XXXXXXX at 66.33.147.150> >;tag=FQag8jSNpac9c

 

…but I wanted to try.  I can originate calls, just not override the outgoing caller ID.

 

RFC 3261 does allow for an optional display-name field, along with the required URI field, in the From header.  From RFC 3261:

 

      From: "Bob" <sips:bob at biloxi.com>;tag=a48s

      From: sip:+12125551212 at phone2net.com;tag=887s

      From: Anonymous <sip:c8oqz84zk7z at privacy.org>;tag=hyh8

 

Thanks,

 

George

 

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: Tuesday, January 06, 2015 7:38 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Register->From->Caller ID

 

 

gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s <sip:%25s@%25s> >", from_user, !zstr(from_domain) ? from_domain : proxy); 

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.

 

 

 

On Tue, Jan 6, 2015 at 4:59 PM, George F. Phelps <GeorgePhelps at gfphelps.com> wrote:

My current gateway REGISTER packet has a certain FROM header, as shown below:

 

   REGISTER sip:66.33.147.150;transport=udp SIP/2.0

   Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp

   Max-Forwards: 70

   From: <sip:+1404XXXXXXX at 66.33.147.150 <mailto:sip%3A%2B1404XXXXXXX at 66.33.147.150> >;tag=FQag8jSNpac9c

   To: <sip:+1404XXXXXXX at 66.33.147.150 <mailto:sip%3A%2B1404XXXXXXX at 66.33.147.150> >

   Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce

   CSeq: 69955649 REGISTER

   Contact: <sip:gw+switch2voip.us at 54.174.255.168:5080;transport=udp;gw=switch2voip.us>

   . . .

 

What do I set/change in my gateway configuration to add a character string “1404XXXXXXX” to the FROM header?  As shown in red below:

 

   REGISTER sip:66.33.147.150;transport=udp SIP/2.0

   Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp

   Max-Forwards: 70

   From: “1404XXXXXXX” <sip:+1404XXXXXXX at 66.33.147.150 <mailto:sip%3A%2B1404XXXXXXX at 66.33.147.150> >;tag=FQag8jSNpac9c

   To: <sip:+1404XXXXXXX at 66.33.147.150 <mailto:sip%3A%2B1404XXXXXXX at 66.33.147.150> >

   Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce

   CSeq: 69955649 REGISTER

   Contact: <sip:gw+switch2voip.us at 54.174.255.168:5080;transport=udp;gw=switch2voip.us>

   . . .

 

I am already setting the following values (in my gateway definition):

 

   <param name="from-user" value="1404XXXXXXX"/>

   <param name="caller-id-in-from" value="true"/>

 

Thanks,

 

George

 


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





 

-- 

Brian West
brian at freeswitch.org

  <http://billing.freeswitch.org/templates/default/img/whmcslogo.png> 

Twitter: @FreeSWITCH , @briankwest
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150106/c29a3f3f/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list