Simple task calls to pager- please help to configure!

Asterisk14 configured and running.

I have two VOIP lines.

My task-
Asterisk gets a call on the first line and put caller on hold and plays music and message “wait, someone will be with you shortly”) at this time asterisk calls me at pager. I get the pager message and I am calling to the second-line from my cell to my asterisk and via the asterisk menus I get connected to the incoming call.

Could you please help me to configure extensions.conf and sip.conf

Thanks!

That’s a long time to make somebody wait.

But here’s how you might try it:

  1. Call comes in from customer
  2. System command forks process to spool outbound call (copy simple.call file to /var/spool/asterisk/outgoing)
  3. Put customer in a Queue
  4. You get the page from previous System command call spooling
  5. You dial back in on phone to AgentLogin application

[quote=“penguinpbx”]That’s a long time to make somebody wait.
[/quote]

Thanks for your prompt reply penguinpbx!

Thanks.

Why don’t you just setup a queue and get Asterisk call your cell phone. Why bother with a pager if you intend to speak with the caller anyway

See, At my work place I can not use the cell phone.

I am trying to set it up and just one stage does not work-

When someone calls in he/she goes into the queue.

[submenu1]
# Press 1 for sales
exten=> s,1,Answer
exten=> s,2,Ringing
exten=> s,3,Wait(2)
exten=> s,4,system(cp /opt/tmp/test.call /opt/var/spool/asterisk/outgoing)
exten=> s,5,Queue(MyQueue)
exten=> s,6,Hangup

The system command would originale the call out to my pager #444444444 via test.call file-

Channel: SIP/444444444@myvoip_out
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: call-file-test
Extension: 444444444

My only problem now is to be able to transfer DTMF signal when pager operator is asking for my pager ID and call back #.
I was able to do it via siple extension line- where 444444444 is my pager phone #, 2222 my pager ID, and 222222222 is a call back #.

exten => 444444444,1,Dial(SIP/${EXTEN}@myvoip_out,D(wwwwwww2w2w2w2wwwwwww222222222ww#))

I just do not know how to do it.

If i add it at the and of the Channel: SIP/444444444@myvoip_out,D(wwwwwww2w2w2w2wwwwwww222222222ww#)

It does not work this way.

Any idea will be appreciated.