Hi
Steve is right. Better not replace the from header for accounting purpose but add a remote-party_id. The main issue is : not all the GW are understanding the rpid stuff but even cisco Gw are understanding it. Again, from header field is required in various situations and alter it could lead to problems.
Christian Thomas Diretor Executivo
Canal West Fone : +55 (48) 2107 2728 Fax : +55 (48) 3333 3745 MSN / Email : cthomas@canalwest.com VoIP : cthomas@sip.canalwest.com
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of lawrence k.y. lin Sent: terça-feira, 24 de outubro de 2006 21:40 To: blairs@isc.upenn.edu Cc: serusers@lists.iptel.org Subject: Re: [Serusers] Re: How to change Caller ID in FROM field ?
Steve,
Thanks for your email and your solutions.
I tried the first method as follws:
replace ("^From:(.*)<", "From: "XXXXXXXXXX" <")
before I sent it to another SIP device and PSTN gateway. I did see the new Caller ID XXXXXXXXXX in another SIP device but the Caller ID to Verison Mobile phone showed "Unavailable No". I will check with Telco carrier to see
if we did send the Caller ID to them or not. Also I will try your second method and update to the list later.
Thanks again.
Larry
From: Steve Blair blairs@isc.upenn.edu To: "lawrence k.y. lin" lawlin888@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Re: How to change Caller ID in FROM field ? Date: Tue, 24 Oct 2006 18:57:42 -0400
You can do this several ways. I use to just completely replace the From header but this screwed up call accounting (for callers with caller ID blocking enabled) which we do in our Cisco gateways. Now I append an Remote-Party-ID header leaving the Fromheader intact for accounting purposes. Try one of the following:
- replace("^From:(.*)>" , "From: "Anonymous"
sip:anonymous@invalid.nowhere");
Where the second string contains whatever you want the caller ID info to
be. This example is for caller ID blocking.
if (append_rpid_hf("Anonymous sip:","@upenn.edu;party=calling;id-type=subscriber;screen=yes")) { } else { log(1, "RPID not found\n"); };
Of course this requires other configuration items. You may also want to add
the following:
modparam("auth", "rpid_prefix", "<sip:") modparam("auth", "rpid_suffix", "@upenn.edu;user=phone>;party=calling;screen=no;id-type=subscriber;privacy=
off")
#
-Steve
lawrence k.y. lin wrote:
Hi all,
Appreciate if someone can give me a suggestion or even an answer. Since the call from SIP device to PSTN phone did not have Caller ID and our Telco carriers request for the Caller ID, we have to set a number before the calls are routed to PSTN gateway. I did it in Asterisk before with the function calls SetCallerID(CLID) or Set(CALLERID(number)=CLID) (depends on the Asterisk version) and these function calls worked. But because of the scalabliity issue, I changed to SER and would like to do the similar thing as in Asterisk. I read the SER document and awared SIP_HF_FROM has the data for the entired FROM field. Is there any other variables for Caller ID only ? I searched the mailing list for SER and did not find any related topic
(only found one with title: caller-id with raius using sip-rpid, but it is
irrelevant).
Thanks in advance.
Larry
Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&sour...
=hmtagline
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa ces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers