<div><p>Hello,</p><p><span><span style="font-size: 10pt; font-family: Arial; color: black;">I have implemented the following scenario:</span></span></p><p><span style="font-size: 10pt; font-family: Arial; color: black;">




<span>[incoming pstn]---&gt;[opensips]--&gt;[asterisk]
---&gt;[sip phone]</span><br><span>                                                        |</span><br>
<span>[outgoing pstn]&lt;---[opensips]&lt;------|</span><br>
<br>
<span>Opensips acts as SBC with mediaproxy
functionality. Moreover, I use the LCR module to route calls.</span><br>
<span>The Asterisk is located at the public domain and
we have activated the packet2packet bridge. A soft phone is registered to
asterisk and we have created a ring group that sends an incoming call to soft
phone and external line (outbound pstn) that rings simultaneous both devices. Opesips version 1.4.5 or 1.5 Asterisk version 1.6</span><br>
<br>
<span>Single calls without ring gourp:</span><br>
<br>
<span>Incoming calls from PSTN to asterisk through Opensips
with mediaproxy enabled. It works properly.</span><br>
<span>Outgoing calls from Asterisk to PSTN through Opensips
with mediaproxy enabled. It works properly.</span><br>
<br></span></p><p><span style="font-size: 10pt; font-family: Arial; color: black;"><br>
<span>Calls with ring group enabled:</span><br>
<span>Incoming call from PSTN to asterisk through
opensips with mediaproxy enabled. The incoming call activate the
asterisk&#39;s  ring group and sends the call to sip phone and external line –
outgoing pstn call. Both devices ring simultaneous. When hang-up:</span><br>
<br>
<span>A) soft phone, the signaling and media work
properly.</span><br>
<span>B) External line, the signaling works properly but
the media is not open. The system (opensips/mediaproxy) generates two
media
sessions(incoming and outgoing) but the ip of asterisk at both sessions
has value Unknown. The mediaproxy/opensips tries to connect the two
legs through asterisk. But this does not work because the asterisk acts
as
packet2packet bridge.</span></span></p><p><span style="font-size: 10pt; font-family: Arial; color: black;">
<br>
<span>Please, can you provide any help/sugestion about this
problem?</span></span></p>

<p><br></p><p>Best Regards,</p><p>Dimitris</p>
</div>