Friday, 15 March 2013

c# - Asterisk: How can I filter the Dial event only to my extension -



c# - Asterisk: How can I filter the Dial event only to my extension -

i making asterisk client in c# winforms using asterisk.net. client listening 1 extension only.we can view calls, reject or transfer etc calls coming extensions. need source channel transfer call, , source channel can got dial event. recently, noticed dial event happens everytime when of extension connected server starts dialling. want filter out, phone call coming extension only.

void manager_dial(object sender, dialevent e) { callinginfo.src_channel = e.channel; }

e.dialstring giving me destination extension number; don't know if become null according server status. moreover, happen if external calls coming me, wont dial event or source channel, cannot transferred. right ?

you can't.

asterisk not allow such functionality.

you can read , filter code needed extension. can write deamon filter on server , send app needed deamon.

reason: asterisk pbx, not pbx functionality limited.

also can send in dialplan userevent field want before dialling , after answer, grab userevent only.

c# winforms asterisk asteriskami

No comments:

Post a Comment