Asterisk automatic selection of outgoing line

Hey, so far I have
in my sip.conf  under the phone im using
context=sipoutgoing

then in extensions.conf
I have
[sipoutgoing]
exten => s,1,Dial(Zap/1)
but that doesnt work I just want to be able to call outside via Zap/1-8

Tom
T0maszAsked:
Who is Participating?
 
scampgbConnect With a Mentor Commented:
Hi T0masz,
You seem to have "group=2" in your zapata.conf, yet you're using "g1" in your dial string.

You need to put "group=1" in the zapata.conf, or put "g2" in your dial string.

Also, you need to make sure that you have the wcfxs &  zaptel modules loaded.  You can check this with "lsmod".

Does that help?
0
 
T0maszAuthor Commented:
[sip]
exten => _.,1,Dial(Zap/1/${EXTEN})
exten => _.,2,Hangup

now I tried defining group1 in my zapata.conf
group=1
signalling=fxs_ks
callerid="" <0>
mailbox=
group=2
context=default
channel => 1-4
but If I call exten => _.,1,Dial(Zap/g1/${EXTEN})
then it says unable to create channel of type Zap

Let me know
Tom
0
 
scampgbCommented:
Hi T0masz,

Was the above of use, or do you need some further help with this?

0
 
T0maszAuthor Commented:
ill post within the next day, i didnt get a chance to test it yet. Ill let you know.

Tom
0
 
scampgbCommented:
Glad I could help :-)


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.