[asterisk-dev] qeustion about app_dial.c do_forward function getting the forwarding peer

Stefan Schmidt sst at sil.at
Mon Sep 21 09:47:21 CDT 2009


ok i found it by my own:

chan->chan_list.next->chan_list.next->name

but why there are 2 local channels so i have to use the 2nd linked channel?

best regards

steve

Stefan Schmidt schrieb:
> Hello,
> 
> i´ve a question about the do_forward function in app_dial.c for asterisk
> ver. 1.6.1.6.
> 
> maybe i havent seen it but is there any way of getting the information
> from which peer a forward has started the local channel?
> 
> my problem is that i want to know from which user a forward has been
> started. at the moment when the local channel goes to the standart
> context to call the number the forward points to, i couldnt find out
> from which peer the redirect comes.
> 
> what i would need is the c->name from this row(519) from app_dial.c in a
> channel var.
> ast_verb(3, "Now forwarding %s to '%s/%s' (thanks to %s)\n", in->name,
> tech, stuff, c->name);
> 
> i just could patch a
> pbx_builtin_setvar_helper(in,"FORWARDING_PEER",c->name)
> but i want to know if this is allready done but iam just too blind to
> see it.
> 
> i hope its clear what i mean...
> 
> best regards
> 
> steve
> 
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

-- 
Für weitere Fragen stehen wir gerne unter voip at sil.at oder
059944 - 2440 zur Verfügung.

Mit freundlichen Grüssen
-- 
Stefan Schmidt
Sysadmin/VOIP // voip at sil.at // Tel 059944-2440//
-------------------------------------------------
SILVER SERVER GmbH // Lorenz-Mandl-Gasse 33/1 //
A-1160 Wien // Fax 059944-9000 // www.sil.at  //
-------------------------------------------------



More information about the asterisk-dev mailing list