Thank you!<br><br>It would be greate to have these feature set as a parameter in sip.conf<br><br>cheers<br>tomasz<br><br><div class="gmail_quote">On Nov 28, 2007 2:38 PM, Philipp Kempgen <<a href="mailto:philipp.kempgen@amooma.de">
philipp.kempgen@amooma.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Tomasz Zieleniewski wrote:<br>
> How does asterisk detect the loop.<br>> What are the criteria here.<br>> What do I need to change in the SIP message so<br>> that asterisk will not consider it looped??<br><br></div><div class="Ih2E3d">> On Nov 23, 2007 4:03 PM, Tomasz Zieleniewski <
<a href="mailto:tzieleniewski@gmail.com">tzieleniewski@gmail.com</a>><br>> wrote:<br>><br>>> hi,<br>>><br>>> I use asterisk as a gateway which forwards external calls from pstn to<br>>> my internal sip network.
<br>>> all sip signaling is passed to sip proxy.<br>>> I also use asterisk as a voicemail server.<br>>> everything works well when calls are passed to asterisk from local<br>>> network.<br>>> but when calls are forwarded from asterisk to sip proxy and then sip
<br>>> proxy decides to pass it back to asterisk<br>>> waorking as a voicemail server<br>>> asterisk complains about the loop and returns 482 response.<br>>> Can it be somehow reconfigured??<br><br>
</div>See<br><a href="http://bugs.digium.com/view.php?id=7403" target="_blank">http://bugs.digium.com/view.php?id=7403</a><br>and look for this code in chan_sip.c:<br>---cut---<br> /* Check if this is a loop */<br>
if (ast_test_flag(&p->flags[0], SIP_OUTGOING) && p->owner && (p->owner->_state != AST_STATE_UP)) {<br> /* This is a call to ourself. Send ourselves an error code and stop
<br> processing immediately, as SIP really has no good mechanism for<br> being able to call yourself */<br> /* If pedantic is on, we need to check the tags. If they're different, this is
<br> in fact a forked call through a SIP proxy somewhere. */<br> transmit_response(p, "482 Loop Detected", req);<br> sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);<br> return 0;
<br> }<br>---cut---<br><br>There's no way to configure the loop detection but you could<br>remove the code to disable loop detection.<br><br>Grüße,<br> Philipp Kempgen<br><br>--<br>amooma GmbH - Bachstr. 126 - 56566 Neuwied -
<a href="http://www.amooma.de" target="_blank">http://www.amooma.de</a><br> Let's use IT to solve problems and not to create new ones.<br> Asterisk? -> <a href="http://www.das-asterisk-buch.de" target="_blank">
http://www.das-asterisk-buch.de</a><br><br>Geschäftsführer: Stefan Wintermeyer<br>Handelsregister: Neuwied B 14998<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">
http://www.api-digital.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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>