i have ser and asterisk on 2 different boxes.<br>
<br>
my ser.cfg<br>
<br>
if (method=="REGISTER") {<br>
<br>
if(!www_authorize("ser domain name", "subscriber")){<br>
www_challenge("ser domain name", "0");<br>
break;<br>
}<br>
sl_send_reply("200", "ok");<br>
break;<br>
};<br>
<br>
<br>
rewritehostport ("ip addr of asterisk box:5060"); <br>
sl_send_reply ("300", "redirect");<br>
<br>
}<br>
<br>
asterisk setting in sip.conf:<br>
<br>
i am not adding ser as a peer neither am i adding the peer registered with ser in the sip.conf<br>
<br>
i wanted ser to pass a redirect to the client registered with ser (this part works)<br>
<br>
then ser is out of the call and the client and asterisk talk but on my asterisk box i'm seeing the following error<br>
<br>
Using INVITE request as basis request - <a href="mailto:a00f4ba8fc3b881d@xx.xx.xxx.xxx">a00f4ba8fc3b881d@xx.xx.xxx.xxx</a><br>
Sending to xxx.xxx.xx.xx : 5060 (NAT)<br>
chan_sip.c:realtime_peer: Cannot Determine peer name ip=xx.xxx.xxx.xxx<br>
Found no matching peer or user for 'xx.xx.xx.xx:5060"<br>
<br>
its looking for same ip of the ser client to send back the reply.<br>
<br>
<br>
<br>
<br><br><div><span class="gmail_quote">On 1/31/06, <b class="gmail_sendername">Jean-Michel Hiver</b> <<a href="mailto:jhiver@ykoz.net">jhiver@ykoz.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sharon a écrit :<br><br>> my setup is<br>><br>> client--registers--> ser-----redirect--->client---- ---invite------><br>> asterisk ------> pstn<br>><br>> when this happens<br>><br>> i configured the
ser.cfg with the rewriteuri and redirect logic and i<br>> am seeing 300 redirect being passed to the client registerd to ser but<br>> when it sends a invite to asterisk, asterisk looks for the same ip<br>> address of the client to send reply to and i receive a error on the
<br>> asterisk server<br>><br>> realtime_peer: Cannot Determine peer name ip=xxx.xxx.xxx.xxx<br>><br>> I would appreciate if someone can help me figure this out.<br><br>I have the same setup and here is what I do:
<br><br><br>In ser.cfg:<br><br> # -----------------------------------------------------------------<br> # Pass on stuff going to PSTN to Asterisk<br> # -----------------------------------------------------------------<br>
if (uri=~"^sip:0[0-9]*@.*") {<br> rewritehostport ("*<your_asterisk_box_ip>*:5060");<br> if (!t_relay()) {<br> # sl_send_reply ("403", "prout");<br> sl_reply_error();
<br> };<br> break;<br> };<br><br>In sip.conf: (asterisk)<br><br>[ser-stuff]<br>type=friend<br>context=world<br>host=<my_ser_host><br>canreinvite=no<br><br><br>Also be careful. If <someuser>@yourserbox.ip
calls not to have any<br>[someuser] sections in sip.conf, because it broke stuff for me.<br><br>Good luck!<br>Jean-Michel.<br><br>--<br>Jean-Michel Hiver - <a href="http://ykoz.net/">http://ykoz.net/</a><br>Découvrez la Réunion des Technologies IP & Telecom
<br>TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE<br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list
<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>