0
votes

I have an Asterisk Server (13) running on my CentOS. I've created an extension on Asterisk, named 444. Also, i've connected Fritz!Box router (with VOIP) to this 444 extension to my Asterisk Server. Now, it works good, but the problem is that i want to have the real number of the caller. For example, if i have an incoming call to my Fritz!Box, it will redirect it to asterisk on 444 extension, and it will call to some another extension, lets say 555 (that my PC is connected to). Ok, it works, as i said, but the caller ID is 444. So, i need to have the real caller number. Any suggestions can help.

2
So you want the as received caller id from the calling party over the pstn to be forwarded to where-ever?user3788685
Yes, that's what i want.Godfather M
and how are you doing the forward now? (from the phone I presume) If you have a caller Id set on the trunk - remove it, it should fall back to using the received callerid. the extension caller id should be used when the extension does something, the trunk caller id should be used when the trunk does something.user3788685

2 Answers

0
votes

For completely answer you must show your dialplan.

How I understand you need trustrpid=yes for peer or global section in sip.conf. And sendrpid=yes in 555 peer section.

This option will copy Remote-Party-ID header from incoming leg to From header in destination leg.

http://www.voip-info.org/wiki/view/Asterisk+SIP+trustrpid

0
votes

You should create trunk, not extension if you want see callerid.

Create trunk something like this:

 type=friend
 host=ip_of_your_fritz
 allow=alaw&ulaw
 context=from-pstn
 username=ext_at_fritz
 secret=password_at_fritz
 insecure=port,invite;this one is ok, ip fixed

Also put register string like

 ext_at_fritz:password_at_fritz@ip_of_your_fritz