asteriskami - Asterisk Originate Some noooob Questions ^_^' -



asteriskami - Asterisk Originate Some noooob Questions ^_^' -

its couple of day i'm working on asterisk, developing application phone call tracking & monitoring , etc ...(asterisk.net lib)

i want tell extension(phone) on desk phone call number when press button in application.

well i've done googling originate

action: originate actionid: 1234 channel: **??*** callerid: **??** context: from-internal exten: [targetphoneno] priority: 1 async: true timeout: 30000 variable: logedinuserid:113

well don't know how gonna work. otl

1st : extension info (phone on desk)

cahnnel : source channel or destination channel how can channel state if 1 them busy or whatever ?(e.g dahdi/101 busy )

callerid : optional can set whatever want there ?

context : have set or asterisk gonna process it

..............[edit]................ thx ur reply ^_^

in case asterisk worked way :

when want create internal phone call sip sip phone call

sip registered user 551 wants phone call sip user 101 :

action: originate actionid: 1234 channel: sip/551 callerid: 101 context: from-internal exten: 101 priority: 1 async: true timeout: 30000

when want create outbound phone call sip mobile no

sip registered user 551 wants phone call mobile 0999-1234-1234 :

action: originate actionid: 1234 channel: dahdi/g0/099912341234 callerid: 099912341234 context: from-internal exten: 551 priority: 1 async: true timeout: 30000

channel :

dahdi -> channel protocol g0 -> trunk

if extension sip have register sip client in asterisk server.

sip show peers

will show current active extensions mapped asterisk server

i assume have desk phone(pstn) , number 9123456. channel be

channel : dahdi/g0/9123456

channel source channel.

callerid want show display number when phone call initiated phone.

callerid : 91123454

you see phone call coming number.yes optional. in republic of india can not set anything(legal issue). if using voip service can set number, 1 time again there legal concern of fraud. have own number.

context dial destination number. have write context in asterisk config file. suppose

context: your_context

when receive call, jump context

[your_context] exten => _x.,1,dial(dahdi/g0/your_destination_number)

in case of sip replace dahdi sip.and here g0 logical pri grouping through want dial number

asterisk asteriskami

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -