<div dir="ltr"><div><div>I have configured the diaplan to make a database query using the lcr module and respond with a 302 (moved temporarily) the destination number with a new prefix to the gateway that is sending the call. The process of manipulatinfg the digits works fine and the 302 message is generated bur the call fails because of a problem in the 302 message below:<br>
<br><i><br> SIP/2.0 302 Moved Temporarily<br> Via: SIP/2.0/UDP 192.168.8.23:5060;rport=5060;branch=z9hG4bK-528b3362-c488a182-4cc5<br> Max-Forwards: 50<br> From: "Armando Kumbara"<<a href="mailto:sip%3A1234567@192.168.8.23">sip:1234567@192.168.8.23</a>>;tag=45826b5f-13c4-528b3362-c488a182-473c<br>
To: <<a href="http://sip:9903645879714@95.107.130.71:5080">sip:9903645879714@95.107.130.71:5080</a>>;tag=vSU04ySty4yvQ<br> Call-ID: <a href="mailto:12b6c96c-45826b5f-13c4-528b3362-c488a182-670e@192.168.8.23">12b6c96c-45826b5f-13c4-528b3362-c488a182-670e@192.168.8.23</a><br>
CSeq: 1 INVITE<br> Contact: "unknown" <<a href="http://sip:9902645879714@192.168.8.26:5060">sip:9902645879714@192.168.8.26:5060</a>><br> User-Agent: FreeSWITCH-mod_sofia/1.5.6b+git~20131104T192948Z~384ddf1517~32bit<br>
Accept: application/sdp<br> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY<br> Supported: timer, precondition, path, replaces<br> Allow-Events: talk, hold, conference, refer<br>
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED"<br> Content-Length: 0<br> Remote-Party-ID: "9903645879714" <<a href="mailto:sip%3A9903645879714@192.168.8.25">sip:9903645879714@192.168.8.25</a>>;party=calling;privacy=off;screen=no</i><br>
</div><br>Contact: "unknown" <<a href="http://sip:9902645879714@192.168.8.26:5060">sip:9902645879714@192.168.8.26:5060</a>> should be <br>Contact: "9902645879714" <<a href="http://sip:9902645879714@192.168.8.26:5060">sip:9902645879714@192.168.8.26:5060</a>>. the dialplan entry for theDB query is the following:<br>
<br><<i>condition field="destination_number" expression="9903645879714"><br> <action application="lcr" data="$1 test"/><br> <action application="capture" data="mynum|${lcr_auto_route}|([^/]*)$"/><br>
<action application="redirect" data="${mynum[1]}@<a href="http://192.168.8.26:5060">192.168.8.26:5060</a>>"/><br> </condition></i><br><br></div><div>Basically it should receive the call and query the db, capture the last digits after the "/" from the returned string and return it to the gaetway via the 302 message.<br>
</div>Can you please advice me how i can fix this issue? Is there any way i can fix the contact information from the dialplan?<br><div><br></div></div>