Sharon a écrit :

my setup is

client--registers--> ser-----redirect--->client---- ---invite------> asterisk ------> pstn

when this happens

i configured the ser.cfg with the rewriteuri and redirect logic and i am seeing 300 redirect being passed to the client registerd to ser but when it sends a invite to asterisk, asterisk looks for the same ip address of the client to send reply to and i receive a error on the asterisk server realtime_peer: Cannot Determine peer name ip=xxx.xxx.xxx.xxx

I would appreciate if someone can help me figure this out.

I have the same setup and here is what I do:


In ser.cfg:

 # -----------------------------------------------------------------
 # Pass on stuff going to PSTN to Asterisk
 # -----------------------------------------------------------------
 if (uri=~"^sip:[EMAIL PROTECTED]") {
     rewritehostport ("*<your_asterisk_box_ip>*:5060");
     if (!t_relay()) {
         # sl_send_reply ("403", "prout");
         sl_reply_error();
     };
     break;
 };

In sip.conf: (asterisk)

[ser-stuff]
type=friend
context=world
host=<my_ser_host>
canreinvite=no


Also be careful. If <someuser>@yourserbox.ip calls not to have any [someuser] sections in sip.conf, because it broke stuff for me.

Good luck!
Jean-Michel.

--
Jean-Michel Hiver - http://ykoz.net/
Découvrez la Réunion des Technologies IP & Telecom
TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to