Hi,

I have a problem when configuring Asteriskand SER,
using SER as a simple SIP gateway. SER connects to
another third party SIP server. I want to call a user
that is registered in the third party SIP server, from
asterisk. In order to achieve this, I defined a peer
in "sip.conf", as follows:


[sip4_out]
type=peer          
secret=asterisk1
username=asterisk1              
fromuser=asterisk1              
insecure=no
context=home
host=10.2.250.151
fromdomain=antero.ssf.pt
port=5070

Then, I defined an outbound rule in "extensions.conf":

exten => _77.,1,Dial(SIP/${EXTEN:[EMAIL PROTECTED],30,r)


At this point, I am able to dial out SIP addresses,
using my SER and a SIP client. My problem is that ALL
the addresses that I dial are formatted in the SIP
INVITE message with the IP address and port of my SIP
peer (sip4_out), in the TO: field.
For example, if I dial [EMAIL PROTECTED] from my SIP
client, Asterisk will format the TO: field as:
        To: <sip:[EMAIL PROTECTED]:5070>

Is there anything we can do in the configuration files
to make Asterisk format that field with the actual SIP
address that was dialed? That is:
        To: <sip:[EMAIL PROTECTED]>

Many thanks for your help,
Paulo
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to