Page 1 of 1

Outbound dialing with different users with different provide

PostPosted: Sat May 24, 2008 1:28 pm
by prince.fer
Hello,

I am using asterisk-1.2.10 and astuguiclient-2.0.3. I have 10 users with my system. I want 5 users to dial with X provider and 5 users with Y provider. By changing the context=X for 5 and context=Y for next 5 users it`s dialing from default context only.

I also have X and Y context in extensions.conf. And also in sip.conf in users peer for 5+5 context=X and context=Y.

Do i need to change anything else. ?

hello

PostPosted: Sat May 24, 2008 8:06 pm
by eliasferreyra
hello
you can make 2 out dialplans

samples:

X-CONTEXT
exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(SIP/${EXTEN}@TRUNKX,55,Ttor)
exten => _X.,3,Hangup


Y-CONTEXT
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(SIP/${EXTEN}@TRUNKY,55,Ttor)
exten => _9X.,3,Hangup

and only have to specify on the campaign on the dial prefix, the prefix for each user group

prefix X and prefix 9