[asterisk-users] Variables sip redirects and call forward

Eric "ManxPower" Wieling eric at fnords.org
Sun Aug 6 19:27:45 MST 2006


Check that status of:

${RDNIS} and/or ${CALLERID(rdnis)}) in 
/path/to/src/asterisk/docs/README.variables


C F wrote:
> First my little Sunday story.
> A client of mine with a big factory calls me up that he is trying to
> call in to his place because the fire alarm went off. He is dialing
> the extension I gave him that will call all the extensions (and worked
> before) but after 2 rings he gets a message: The subscriber you are
> trying to reach is unavailable (probly from T-Mobile or Cingular). So
> I tell him immediately just keep calling back until someone picked up,
> I realized that someone must have forwarded their extension (using
> local sip forward) to their cell phone, and their cell phone is out of
> reach. Sure enough a few hours later when I had a chance to log into
> the box, I did my test call and there it was in the CLI calling blah
> blah thanks to sip blah at 192.168.24.247 blah blah.
> After working with this for around half an hour I just ended up
> disabling local forward using the .cfg files from cisco.
> So here is my question, is there anyway to determine thru variables
> that a phone call is forwarded thru a sip redirect (I think its 302
> moved temp)?
> Here is my setup:
> exten 123 calls a macro that takes a few arguments one of them is the
> name of the queue,
> the macro in turn calls the Queue, the queue has:
> member =sip/1
> member = sip/2
> member = sip/3
> In my case sip/3 was forwarded to an outside number.
> so app_queue just followed the sip moved.
> Here are my questions:
> 1. Is there any way to have app_queue ignore redirects?
> 2. Is there any way to detect in the DP that an extension is called
> from a redirect (any varialbes)?
> 3. While playing around with this problem I tried setting a variable
> in the macro that calls the queue using both _VARNAME and __VARNAME
> and I was not able to see it anywhere outside the macro that is,
> neither was I able to see any of the setvar=VARNAME from sip.conf for
> sip/3 in any of the extensions created thru the 302 from sip/3, I also
> tried _VARNAME and __VARNAME, is there a workaround to either have the
> var from the macro show up everywhere the member it calls end up? or
> to have a sip acconts setvar show up even on the channel created from
> the 302?
> 
> Thank you all.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.



More information about the asterisk-users mailing list