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...
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:
1) 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.
2)
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...
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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...
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...
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
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 Christian Thomas Sent: terça-feira, 24 de outubro de 2006 22:02 To: 'lawrence k.y. lin'; blairs@isc.upenn.edu Cc: serusers@lists.iptel.org Subject: RE: [Serusers] Re: How to change Caller ID in FROM field ?
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
Christian Thomas writes:
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.
yes, there is very little to do apart from using a b2bua if gw does not understand rpid or pai headers.
-- juha
Juha,
I'm interesting in this very little to do. I suppose Asterisk as a B2BUA.?
Christian Thomas
-----Original Message----- From: Juha Heinanen [mailto:jh@tutpro.com] Sent: quarta-feira, 25 de outubro de 2006 03:31 To: cthomas@canalwest.com Cc: 'lawrence k.y. lin'; blairs@isc.upenn.edu; serusers@lists.iptel.org Subject: RE: [Serusers] Re: How to change Caller ID in FROM field ?
Christian Thomas writes:
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.
yes, there is very little to do apart from using a b2bua if gw does not understand rpid or pai headers.
-- juha
Steve,
Thanks for your help regardin the Caller ID in FROM field in your previous email. It was working with the your suggestion for 'replace' to hard-code the FROM field. I would like to extend it to any users which has a Caller ID (normal phone number) mapping to SIP account and stored in Postgres database. When someone calls from SIP device, I use exec_msg to call the external C program which retrieves the Caller ID related to this SIP account. The problem is how to pass this data back to SER and put into FROM field ? Please advise,
Thanks and Regards,
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...
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________ Get FREE Web site and company branded e-mail from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
Again try the append_hf header or append_rpid. It could works, depending on the VoIP Carrier you are using and their config.
regards
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 19:45 To: serusers@lists.iptel.org Subject: [Serusers] Re: How to change Caller ID in FROM field ?
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... mtagline
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
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 Christian Thomas Sent: terça-feira, 24 de outubro de 2006 22:05 To: 'lawrence k.y. lin'; serusers@lists.iptel.org Subject: RE: [Serusers] Re: How to change Caller ID in FROM field ?
Again try the append_hf header or append_rpid. It could works, depending on the VoIP Carrier you are using and their config.
regards
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 19:45 To: serusers@lists.iptel.org Subject: [Serusers] Re: How to change Caller ID in FROM field ?
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... mtagline
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
http://www.iptel.org/FAQ_To_From_change
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...
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On Tue, Oct 24, 2006 at 03:45:01PM -0700, 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).
There is a function called uac_replace_from which can replace values in the From header, however I would need some help with it myself. For example, towards one of my SIP "peers", I need to prefix a "0" on all From headers which is no problem, just do a uac_replace_from("0$fU","sip:0$fU@$fd"); $fU is the from user part and $fd is the from domain... But how do I do if I first want to strip a few characters of from $fU and then add a few others?
Regards, Kristian.