Newbie Asterisk


#1

I’m a newbie in Asterisk and I’m shamed to so that means in linux also.
So i’m a geek in a not shell.
But im proud to say that i have a Asterisk server up and running.
On the server there are 4 ata’s and Asterisk handels the nummers starting at 100, 200 and so on.
Asterisk is really great
But there are two things I dont get working.
So I hope there is someone who can help.
I can make out bound calls on ale phones and I reseave calls also on al phones.
But I can not make calls in bound.
I can not call no 100 from 200 and so on.
Where shoot I look for this in the config ???
My other problem is this
I want the set up the fax on number 100 and I want this number be the only one that resonse to fax meseges.
Is this possible ??


#2

Hi,

I’m not sure I understand well what you were meaning, here is what I understand: You are not able make call from one extension to an other one and those extension are in the same local network. Right ?

Normally, with a setup like that, everything should work fine. But I experienced with some phone models that’s not true. The way I founded then to make them work was to put canreinvite=no in there definition in sip.conf

Hope this help !


#3

Thanks

I just had a look at the sip.conf and this is what I already had in it.

qualify=3000
dtmfmode=inband
canreinvite=no
nat=no

And i’m sorry for not explaning my self beter.
It is the same Local network.
All is really working great but as I wan’t to call for one ata to another it won’t work.
The ata’s I juse are from Zyxel and Grandstream
Al ata’s are registet in Asterisk and when I make a call outbount I can also see in Asterisk that that call was made from example exstation 300.
So you made think it is working but no sutch luck


#4

Then that’s may be something wrong in your extension.conf
Can you post relevent lines about your extension dialing from your extension.conf

If you put asterisk in verbose mode, let say: set verbose 8
when you’re trying to make the calls between extensions, what’s the message giving by asterisk ?


#5

It definitely sounds like a problem in your dialplan, which is defined in the extensions.conf file. Luckily for you, there is a whole chapter about that here, and they include a section on how to make “internal” calls:

http://www.oreilly.com/catalog/asterisk/

-RFH


#6

This is wat I use now

exten => 100,1,Dial(SIP/100),30,t(
exten => 200,1,Dial(SIP/200),30,t
exten => 300,1,Dial(SIP/300),30,t
exten => 400,1,Dial(SIP/400),30,t
exten => 500,1,Dial(SIP/500),30,t

And it is working.
So on to the next project fax on one nummber
Thanks for nou


#7

I’m happy to see you find the problem :smile:

About your fax question, you will need to be more explicit with what you really want to do, because right now, I don’t see what’s your problem with that !

Please explain what you want to do and what you don’t know how to do.


#8

oke

This is what I want to do.
My fax is on number 100 on Asterisk.
When someone sents me a fax all four phones go off and when I pick one up the fax mesage is gone.
so what I want to do is this asterisk recognice the fax mesage and sent it to numder 100.
I dont know if this is posible but it whout be great as it chout work that way.


#9

I think what you want to do is describe here:
voip-info.org/tiki-index.php … terisk+fax

The relevent part is :
Asterisk as a fax/voice switch
The answer is simple: Yes, it can. If you Answer() the call before you Dial() an extension, Asterisk will listen for fax beeping. If the call is an fax, it will automatically jump into the fax extension IF your fax call comes in thru a ZAP channel (i.e. not a CAPI channel).

Background info: It’s not the card that detects the fax. Its the builtin code in asterisk that does it (dsp.c). chan_zap.c is currently the only channel driver that uses the faxdetection but in theory it could be enabled/used in other channel drivers as well.

Sample code to receive a fax:

[default]
; Answer the line and listen
exten => s,1,Answer
; Dial an extension, let asterisk give a ringtone
exten => s,2,Dial(IAX2/3987,40,r)
; Hangup if nobody picked up within 40 seconds
exten => s,3,Hangup

; Did we get a fax?
exten => fax,1,SetVar(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
exten => fax,2,rxfax(${FAXFILE})

Downside of this solution: The moment that somebody calls you, Asterisk picks up and it will cost him, like with any other fax/voice switch.

I hope this is what you want to do !
Bye !


#10

I hope you don’t find me a fool…
But in witch dir shout I put this config.
I can’t find it in Asterisk.
Is there a spool file or something??


#11

That will go in your extension.conf
Read the link I sent you, you will understand more.