Hi, I&#39;m running a ivr script on FS, the call is from a softswitch to extenal sip endpoint of FS.<br>I added two dialplan in public dialplan xml file. as flow:<br>&lt;extension name=&quot;ivr_demo2&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^88888$&quot;&gt;<br>
        &lt;action application=&quot;lua&quot; data=&quot;../ivr/test.lua&quot;/&gt;<br>
      &lt;/condition&gt;<br>
 &lt;/extension&gt;<br>
<br>&lt;extension name=&quot;ivr_demo2&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^\*114$&quot;&gt;<br>        &lt;action application=&quot;lua&quot; data=&quot;../ivr/test.lua&quot;/&gt;<br>
      &lt;/condition&gt;<br> &lt;/extension&gt;<br><br>Every thing is ok when call to number 88888. but when I call the second number &quot;*114&quot;, fs hangup  after accept and answer the call, I captured the sip packets and found FS sent a bye packet after answer the call. the cause is   &quot;Reason: Q.850;cause=1;text=&quot;Unallocated (unassigned) number&quot;&quot;. But as the fs console log show, the call is answered and the correct ivr script is runned. Why FS hangup the call? Does somebody have any idea about this problem?<br>
<br><br>============sip packets===================<br>********invite msg from softswitch<br>INVITE sip:*114@10.37.143.6:5060;user=phone SIP/2.0<br>Contact: &lt;<a href="http://sip:xxxxxxxxx@10.4.35.17:5061">sip:xxxxxxxxx@10.4.35.17:5061</a>&gt;<br>
Content-Type: application/sdp<br>To: &lt;sip:*114@10.37.143.6:5060;user=phone&gt;<br>From: xxxxxxxxx&lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;;tag=949132463135364198E42500<br>P-Asserted-Identity: &lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;<br>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,COMET,UPDATE,PRACK,REFER,SUBSCRIBE,NOTIFY,MESSAGE<br>Supported: 100rel,timer,replaces,diversion<br>Expires: 155<br>Session-Expires: 1800<br>Min-SE: 90<br>Call-ID: 01FD10D1BD81400000010690@sip-3<br>
Max-Forwards: 70<br>CSeq: 1 INVITE<br>Timestamp: 58520<br>Via: SIP/2.0/UDP 10.4.35.17:5061;branch=z9hG4bK5C0F524645A70C943998751419749696<br>Content-Length: 150<br><br>v=0<br>o=- 54000602557 1258015146 IN IP4 10.4.35.59<br>
s=SDP Data<br>c=IN IP4 10.4.35.59<br>t=0 0<br>m=audio 30000 RTP/AVP 8<br>a=rtpmap:8 PCMA/8000<br>a=ptime:20<br><br><br>******FS ack<br>SIP/2.0 100 Trying<br>Via: SIP/2.0/UDP 10.4.35.17:5061;branch=z9hG4bK5C0F524645A70C943998751419749696<br>
From: xxxxxxxxx &lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;;tag=949132463135364198E42500<br>To: &lt;sip:*114@10.37.143.6:5060;user=phone&gt;<br>Call-ID: 01FD10D1BD81400000010690@sip-3<br>CSeq: 1 INVITE<br>Timestamp: 58520 0.000000<br>
User-Agent: FreeSWITCH-mod_sofia/1.0.4-14460<br>Content-Length: 0<br><br>*****FS answer the call (in lua script, I called session:answer() )<br>SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.4.35.17:5061;branch=z9hG4bK5C0F524645A70C943998751419749696<br>
From: xxxxxxxxx &lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;;tag=949132463135364198E42500<br>To: &lt;sip:*114@10.37.143.6:5060;user=phone&gt;;tag=UjZcZUKZXjHcQ<br>Call-ID: 01FD10D1BD81400000010690@sip-3<br>CSeq: 1 INVITE<br>
Contact: &lt;sip:*114@10.37.143.6:5060;transport=udp&gt;<br>User-Agent: FreeSWITCH-mod_sofia/1.0.4-14460<br>Accept: application/sdp<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
Require: timer<br>Supported: timer, precondition, path, replaces<br>Allow-Events: talk, refer<br>Session-Expires: 1800;refresher=uac<br>Min-SE: 120<br>Content-Type: application/sdp<br>Content-Disposition: session<br>Content-Length: 245<br>
<br>v=0<br>o=FreeSWITCH 1257988835 1257988836 IN IP4 10.37.143.6<br>s=FreeSWITCH<br>c=IN IP4 10.37.143.6<br>t=0 0<br>m=audio 24890 RTP/AVP 8 120<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:120 telephone-event/8000<br>a=fmtp:120 0-16<br>
a=silenceSupp:off - - - -<br>a=ptime:20<br>ACK sip:*114@10.37.143.6:5060;transport=udp SIP/2.0<br>CSeq: 1 ACK<br>To: &lt;sip:*114@10.37.143.6:5060;user=phone&gt;;tag=UjZcZUKZXjHcQ<br>From: xxxxxxxxx&lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;;tag=949132463135364198E42500<br>
Call-ID: 01FD10D1BD81400000010690@sip-3<br>Max-Forwards: 70<br>Timestamp: 58520<br>Via: SIP/2.0/UDP 10.4.35.17:5061;branch=z9hG4bK0CC4AE6EE59CA15F69429CDB97848C21<br>Content-Length: 0<br><br>*******FS hangup the call<br>BYE sip:*114@10.37.143.6:5060;transport=udp SIP/2.0<br>
Reason: Q.850;cause=1;text=&quot;Unallocated (unassigned) number&quot;<br>To: &lt;sip:*114@10.37.143.6:5060;user=phone&gt;;tag=UjZcZUKZXjHcQ<br>From: xxxxxxxxx&lt;sip:xxxxxxxxx@10.4.35.17:5061;user=phone&gt;;tag=949132463135364198E42500<br>
Call-ID: 01FD10D1BD81400000010690@sip-3<br>Max-Forwards: 70<br>CSeq: 2 BYE<br>Timestamp: 58521<br>Via: SIP/2.0/UDP 10.4.35.17:5061;branch=z9hG4bKBE2D7D86B44CA171A5D374ECAA99A1DB<br>Content-Length: 0<br><br><br>