Summary:ASTERISK-00479: [patch] SIP forwarding
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2003-11-04 17:47:59.000-0600Date Closed:2011-06-07 14:05:15
Versions:Frequency of
Environment:Attachments:( 0) sipforwarding__20031104_2.diff
Description:Allows SIP channels to be forwarded to other extensions.


This does not do loop detection currently.  That will be posted later in another bugset.

You'll want to do something like this in your extensions.conf:

; *72 - Forwarding
exten => _*72.,1,Cut(chanfwd=CHANNEL,-,1)
exten => _*72.,2,DBPut(SIPforward/${chanfwd:4}=${EXTEN:3})
exten => _*72.,3,Playback(nowforwarded)
exten => _*72.,4,Congestion
; trailing dot needed to prevent conflicts with chan_zap
exten => _*73.,1,Cut(chanfwd=CHANNEL,-,1)
exten => _*73.,2,DBDel(SIPforward/${chanfwd:4})
exten => _*73.,3,Playback(nolongerforwarded)
exten => _*73.,4,Congestion
Comments:By: Mark Spencer (markster) 2003-11-04 23:47:27.000-0600

Do it the way zap does it if you want to do it, and then we can make the actual codes configurable one day the way parking is configurable now.

By: John Todd (jtodd) 2003-11-06 18:25:53.000-0600

In other words, mark, do you mean to hardcode the *72 and *73 into the channel?  If so, that's terribly broken, and already causes me headaches with Zap channels.  See the existing bugnote at http://bugs.digium.com/bug_view_page.php?bug_id=0000071  which seems to have some proponents.  If this is not what you mean, I apologize, but I don't understand then what your intent was.

By: Mark Spencer (markster) 2003-11-14 10:31:31.000-0600

I have explained a configurable framework to Corydon, but i don't think it's gone anywhere.  I do not want features in the dialplan.

By: Tilghman Lesher (tilghman) 2003-11-14 11:15:15.000-0600

It's gone somewhere, but the code is not complete nor presentable at this time.  Patience.

By: Mark Spencer (markster) 2003-11-14 11:18:37.000-0600

I stand/sit corrected :)

By: Brian West (bkw918) 2004-03-21 10:28:32.000-0600

closing, will reopen if a new patch is updated.