1 2
2005-Jul-14 02:08 UTC
[Asterisk-Users] auto dialing - call file - channel variable question
Hi When using a call file to place a call I can't seem to figure out how to get the variable alert_info passed to the actual channel (in my case a SIP phone) that an agent is logged in at. Please can someone give me a pointer in the right direction ;) Thanx! Probably best illustrated in an example: Below works great and tells SIP/123 to pick up the call from asterisk then it dials the desired extension: SetVar: _alert_info=auto_answer Channel: SIP/123 Context: autodial Exten: 123456789 Priority: 1 Below doesn't pass alert_info to the sip phone the agent is logged in at, so the agent has to answer the call before the destination extension is dialed: SetVar: _alert_info=auto_answer Channel: AGENT/1001 Context: autodial Exten: 123456789 Priority: 1 ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
1 2
2005-Jul-15 07:52 UTC
[Asterisk-Users] auto dialing - call file - channel variable question
as it turns out if the agent (with callbacklogin) is logged into SIP/123 it will try to dial 123 in local context. only variable I can get so far that is passed on is callerid If i want auto answer I set caller id to include a specific string In local context I have a dialplan matching 123 and other SIP extensions which checks the callerid for this string if it exists sets _alert_info=something CallerId: blah blah (autopickup) <1234> Channel: AGENT/1001 Context: autodial Exten: 123456789 Priority: 1 There must be a better way though. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com