[Asterisk-Dev] Interface names (in AddQueueMember)

The Traveller traveler at xs4all.nl
Thu Aug 14 12:11:04 MST 2003


Hey all,

On Wed, Aug 13, 2003 at 12:42:03 -0500, Santosh Prasad wrote:

> Hello Jordyn,
> 
> I am using AddQueueMember as shown below and it works fine
> for SIP and H.323. If you are using chan_h323 for H.323 then specify the
> full ip address for "interface" in AddQueueMember. 
> 
> My extensions.conf is as follows:
> 
> [queue]
> exten =>9000,1,Answer
> exten =>9000,2,Queue(techsupport|TtH)
> exten =>9000,3,WaitMusicOnHold(10)
> exten =>9000,4,Voicemail(u4050)
> exten =>9000,5,Playback(vm-goodbye)
> 
> exten =>8000,1,AddQueueMember(techsupport|SIP/${CALLERIDNUM})
> exten =>8000,2,Playback(auth-thankyou)
> exten =>8000,3,Hangup
> exten =>8001,1,RemoveQueueMember(techsupport|SIP/${CALLERIDNUM})
> exten =>8001,2,Playback(auth-thankyou)
> exten =>8001,3,Hangup
> 
> exten =>8050,1,AddQueueMember(techsupport|H323/4050 at x.x.x.x)
> exten =>8050,2,Hangup
> exten =>8051,1,RemoveQueueMember(techsupport|H323/4050 at x.x.x.x)
> exten =>8051,2,Hangup
> 
> Hope this helps

Isn't this a perfect job for chan_local?  Try something like this:

exten =>8000,1,AddQueueMember(techsupport|Local/${CALLERIDNUM}@${CONTEXT})
exten =>8000,2,Playback(auth-thankyou)
exten =>8000,3,Hangup
exten =>8001,1,RemoveQueueMember(techsupport|Local/${CALLERIDNUM}@${CONTEXT})
exten =>8001,2,Playback(auth-thankyou)
exten =>8001,3,Hangup

Should work for everything, as it just uses the extension-number and lets
chan_local resolve the rest through the dial-plan.

Note: I haven't tested this myself, so it may or may not work as
above, but you get the general idea, I hope.  :-)



    Grtz,

      Oliver



More information about the asterisk-dev mailing list