Summary:ASTERISK-07452: SIPPEER{xx:status} - space, Dial - feature req., __TRANSFER_CONTEXT - question
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2006-08-03 06:16:16Date Closed:2011-06-07 14:08:26
Versions:Frequency of
Description:1. SIPPEER{xx:status} return - "OK ". Space is normal?

2. In Dial and ChanIsAvail option "j" not allways helpful. Maybe add option J(Priority) or J(context^ext^priority) like G()?

if u have some
1, ChanIsAvail(xxx|j)
2, Dial(xxx,,j)
and u need parse many operations - this way have some troubles or long code =(

This my example to emulate multiline work

exten => 74995036894,1,ChanIsAvail(SIP/a74995036894-1|j)
exten => 74995036894,2,GotoIf($["${SIPPEER(a74995036894-1:status)}" != "OK "]?102:21)
exten => 74995036894,21,Dial(SIP/a74995036894-1,9,j)
exten => 74995036894,22,Goto(102)
exten => 74995036894,122,Goto(406)

exten => 74995036894,102,ChanIsAvail(SIP/a74995036894-2|j)
exten => 74995036894,103,GotoIf($["${SIPPEER(a74995036894-2:status)}" != "OK "]?203:133)
exten => 74995036894,133,Dial(SIP/a74995036894-2,9,j)
exten => 74995036894,134,Goto(203)
exten => 74995036894,234,Goto(406)

exten => 74995036894,203,ChanIsAvail(SIP/a74995036894-3|j)
exten => 74995036894,204,GotoIf($["${SIPPEER(a74995036894-3:status)}" != "OK "]?304:245)
exten => 74995036894,245,Dial(SIP/a74995036894-3,9,j)
exten => 74995036894,246,Goto(304)
exten => 74995036894,346,Goto(406)

exten => 74995036894,304,ChanIsAvail(SIP/a74995036894-4|j)
exten => 74995036894,305,GotoIf($["${SIPPEER(a74995036894-4:status)}" != "OK "]?405:358)
exten => 74995036894,358,Dial(SIP/a74995036894-4,9,j)
exten => 74995036894,359,Goto(405)
exten => 74995036894,459,Goto(406)

exten => 74995036894,405,Dial(SIP/a74995036894-1&SIP/a74995036894-2&SIP/a74995036894-3&SIP/a74995036894-4,60,)
exten => 74995036894,406,Busy
exten => 74995036894,407,Hangup

3. #1 and *1 feature
if i not set __TRANSFER_CONTEXT - normal get ext to forward (5 numbers) in default context of peer (digth timeout 5 sec)
if i set __TRANSFER_CONTEXT - after i press 1 button - its try to forward to it... not wait 5 sec timeout.. i can't forward to number more than 1 symbol =( But it use needed for me context! =)

Thx for u doing.
Best regals, Slavon
Comments:By: Badalian Vyacheslav (slavon) 2006-08-03 06:19:12

One idea __TRANSFER_CONTEXT - set common context for "t" and "T" (see Dial cmd)
If i need different process for this two ways?

By: Tilghman Lesher (tilghman) 2006-08-05 02:54:43

We typically don't keep Feature Requests on the bugtracker, given that there's no candidate code.  You are encouraged to repost your feature request on the Wiki and to reopen this bug when you have a candidate patch.