* You are viewing Posts Tagged ‘extension’

Modifying cid.cid_name in app_parkandannounce.c

Hi List,

I need to modify the callerID name of the call coming back when a parked
call returns to the extension that parked it when it times out.

Looking at app_parkandannounce.c

/* Now place the call to the extention */

snprintf(buf, sizeof(buf), “%d”, lot);
memset(&oh, 0, sizeof(oh));
oh.parent_channel = chan;
oh.vars = ast_variable_new(“_PARKEDAT”, buf);
dchan = __ast_request_and_dial(dialtech, AST_FORMAT_SLINEAR,
dialstr,30000, &outstate, chan->cid.cid_num, chan->cid.cid_name, &oh);

I assume (I hope not incorrectly) that I have to modify the
variable chan->cid.cid_name

Could one of the Asterisk gurus point me in the right direction as to how to
do this?

Thanks in advance
Brian

CALLERPRES() with Queue

Good afternoon list,

I’m having a problem using the function CALLERPRES() when connection to a
Queue().

When I call an extension, before the Dial (), I select the function
CALLERPRES () as “unavailable” to link the extension comes as anonymous. But
if I call a queue before the Queue (), I select the function CALLERPRES() as
“unavailable”, but the identification appears normal.

Is it a problem or configuration? Someone can have for that?

Regards,

CDR record for call originated from CLI originate

hello List,

i am in a situation where i cannot get cdr records for call originated from
CLI , i am not able to get when i used application or extension.

is there any solution regarding this ,i working since last 3 days onto this.

regards
Dhaval

take input and store in variable

I am using a context to change values in a DB. Currently in my context, I
am passing it to

exten => s,1,WaitExten(7) ; 7 seconds to input
exten => s,n,Set(NEW_VAR=${EXTEN}) ;Here is my problem. This is the only
way I know how to ‘grab’ user input, which was normally from ${EXTEN} but
I realize this won’t work for extension ‘s’……

The short google search I did didn’t turn up anything concrete.

Thank you!

-Tom

DISA does not accept “pause” from cellphones when upgrading from 1.4 to 1.6

I just upgraded my asterisk box from 1.4 + Zaptel to 1.6 + DAHDI and
services I was using perfectly before are suddenly broken.

I have a DISA access configured, and my companies employees use if to
dial into the companies extension from their cell phones.

For example they would dial DISA-ACCESS-NUMBER(pause)EXTENSION.

Most cellphones (Nokia, Blackberry, iPhone) have some way to save a
pause in the dialed string. Nokia does it by saving the letter “p”,
blackberry has the option to insert a pause (shows up in the address
book as “pause”), and the iPhone uses a space and a comma (like
DISA-ACCESS-NUMBER, EXTENSION).

The pause function on these phones worked perfectly with Asterisk 1.4
+ Zaptel. After the upgrade to Asterisk 1.6 + DAHDI, the pause
function no longer works. If you MANUALY dial into the access number,
wait for the dial tone, and then dial the extension, DISA works
perfectly. But if you have the whole DISA access number saved with a
pause and an extension and dial, asterisk will not recognize the
second number. Basically the DISA dial tone will continue to sound, as
if it has not received the extension number.

Has anybody else experienced this problem? Any tip would be welcome.

Thank you in advance.

Alejandro