Summary:ASTERISK-01955: Calls hanging up when answered
Reporter:Terry Wilson (twilson)Labels:
Date Opened:2004-07-06 10:58:56Date Closed:2011-06-07 14:04:49
Versions:Frequency of
Description:With latest CVS when I complete calls with the following macro:
 's' =>            1. SetMusicOnHold(jazz)                      
                   2. Answer()
                   3. Dial(SIP/${ARG1}|20)                      
                   4. Voicemail2(u${ARG2}@${ARG3})              
                   5. Hangup()                                  
                   104. Voicemail2(b${ARG2}@${ARG3})            
                   105. Hangup()                                

between two SIP phones (7960s), the call is hungup immediately when answered.  If I take the Answer() out, it works fine.  This worked with the CVS from 6/15, but has not worked on several others (about a week after or so).  Also, without the Answer() (can't test right now with it), transfers between two 7960s hangup when answered and display the following:
   -- Attempting native bridge of SIP/6751-8862 and SIP/6720-c5b1
   -- Attempting native bridge of SIP/6751-8862 and SIP/6720-c5b1
Jul  6 10:42:27 WARNING[1157024688]: chan_sip.c:1860 sip_write: Asked to transmit frame type 64, while native formats is 256 (read/write = 4/256)
 == Spawn extension (macro-oneline, s, 2) exited non-zero on 'SIP/6751-8862' in macro 'oneline'

Again, both these things work fine with CVS from 6/15.
Comments:By: Terry Wilson (twilson) 2004-07-06 11:10:02

Also, I forgot to mention that in the following scenario:

Phone A calls Phone B who transfers to Phonce C

If I set the dialplan for Phone B to just be Dial(SIP/PhoneB), and they transfer to phone C, it works fine.  But with the Macro for dialing the PhoneB extension, it doesn't.  The dialplan for PhoneC's extension still uses the Macro.

Hope that helps.

By: Rob Gagnon (rgagnon) 2004-07-06 11:57:45

is this related to ASTERISK-1941976 ?

edited on: 07-06-04 11:43

By: cshaw59 (cshaw59) 2004-07-06 12:21:26

I'll bet this is related to my report for the GrandStream phones. You're getting a different message and a different line in chan_sip.c but I suspect that's because you're using a different codec than I am

By: Terry Wilson (twilson) 2004-07-06 12:56:55

... and yet again, I leave it marked feature as opposed to major in the drop down.  But yes, it looks like this is the same bug as 1976 and 1959.

By: Terry Wilson (twilson) 2004-07-10 19:06:30

This bug appears to be fixed in latest CVS now.

By: Brian West (bkw918) 2004-07-10 22:49:31

This has been fixed in cvs within the past week.