JR Richardson
2010-Jan-20 20:42 UTC
[asterisk-users] Using SIPPEER status with CUT function?
Hi All, I'm using Asterisk 1.4 branch and checking the status of some SIP Peers with the functions ${SIPPEER(101:status)} and the result is "OK (48 ms)". Seems to work fine. Now I would like to use the function CUT to set a variable with the 'OK' portion of the status "OK (48 ms)" and then do some follow on stuff if the status is OK. I'm running into syntax errors in the Set command, I think due to the spaces in the SIPPEER status. Any suggestions on how to deal with the 'spaces' in the status? Thanks. JR -- JR Richardson Engineering for the Masses
Kevin P. Fleming
2010-Jan-25 13:43 UTC
[asterisk-users] Using SIPPEER status with CUT function?
JR Richardson wrote:> Hi All, > > I'm using Asterisk 1.4 branch and checking the status of some SIP > Peers with the functions ${SIPPEER(101:status)} and the result is "OK > (48 ms)". Seems to work fine.That is a bug; the function should be returning OK without the calculated lag value. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpfleming at digium.com Check us out at digium.com & asterisk.org