Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

call parking

Hi all,

I am having problems retrieving my parked calls.I am using snom 300 phones.
I can transfer the call to 700 to park the call and if i do parkedcalls show i get this

Pabx-tierpoort*CLI> parkedcalls show
 Num                   Channel (Context         Extension    Pri ) Timeout
*** Parking lot: default
700                 SIP/103-00000004 (park-dial       SIP0100      1   )     62s
---

So it is parked but i just cant retrieve the call

here are my configs

features.conf
[general]
parkext => 700              
parkpos => 700-710      
context => parkedcalls  
parkinghints = no          
parkingtime => 65  
comebacktoorigin = yes

extensions.conf

[general]
autofallthrough = yes

[incoming]
exten => s,1,Dial(SIP/100&SIP/101&SIP/102&SIP/103&SIP/104,,tTwW)
exten => s,n,Hangup()

[internal]
exten => _XXX,1,Hangup()
exten => _1XX,1,Dial(SIP/${EXTEN},20,tTwW)
exten => _1XX,n,Dial(SIP/100,,tTwW)
exten => _1XX,n,Hangup()

exten => _XXX.,1,Dial(SIP/6381/${EXTEN},,tTwW)
exten => _XXX.,n,Dial(SIP/quintum/${EXTEN},,tTwW)
exten => _XXX.,n,Hangup()

exten => _00.,1,Hangup()

exten => 1234567890,1,Dial(SIP/quintum/${EXTEN},,tTwW)
exten => 1234567890,n,Hangup()

exten => 9000,1,Answer
exten => 9000,2,MusicOnHold()

[from-internal]

include => parkedcalls
exten => _7XX,1,Dial(SIP/${EXTEN})
exten => _7XX,n,Hangup()

Thanks for all the help

Regards,

Frank
0
frankie_jnr
Asked:
frankie_jnr
  • 6
  • 5
1 Solution
 
frankie_jnrAuthor Commented:
if i remove this line
exten => _XXX,1,Hangup()

and dial the extention it disconnects the call
0
 
grbladesCommented:
First problem is parkpos should be 701-710.

When you make a call from an internal phone what context does the call go to?
I.e what context do you have set for the phones in sip.conf.
0
 
grbladesCommented:
I am guessing int [internal] context is used for internal calls. Not sure what you are trying to do with these next lines. Are you using extensions 7xx for internal calls?

[from-internal]

include => parkedcalls
exten => _7XX,1,Dial(SIP/${EXTEN})
exten => _7XX,n,Hangup()
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
frankie_jnrAuthor Commented:
i just added them to try to get the parking to work. i have removed them and here is my sip.conf

[general]
useragent = TierpoortTransport
context=default
allowoverlap=no
srvlookup=yes
limitonpeers=yes
register => 6381:1fvsdfdhghj@192.168.60.46

[6381]
host=??????
context=incoming
defaultuser=6381
type=peer
disallow=all
allow=g729
secret=?????
dtmfmode=info
canredirect=no
canreinvite=no
qualify=yes
insecure=port,invite

[quintum]
host=dynamic
context=incoming
defaultuser=quintum
type=peer
disallow=all
allow=g729
secret=?????
dtmfmode=rfc2833
canredirect=no
canreinvite=no
qualify=yes
insecure=port,invite

[sets](!)
type=friend
context=internal
host=dynamic
disallow=all
allow=g729
canreinvite=no
canredirect=no
secret=tierpoort
dtmfmode=info
qualify=yes
insecure=port,invite

[100](sets)
0
 
grbladesCommented:
Delete these lines from your config:-

[from-internal]

include => parkedcalls
exten => _7XX,1,Dial(SIP/${EXTEN})
exten => _7XX,n,Hangup()

In the code part below I have shown a modified dialplan with a few comments
[internal]
include => parkedcalls     ; need to include this otherwise call parking doesnt work

; exten => _XXX,1,Hangup() commenting this out as it matches all 3 digit extensions and could stop call parking from working.

exten => _1XX,1,Dial(SIP/${EXTEN},20,tTwW)
exten => _1XX,n,Dial(SIP/100,,tTwW)
exten => _1XX,n,Hangup()

; changing the next 3 lines to match dialled numbers 4 or more digits long to stop it interfering with the 3 digit parked call numbers
exten => _XXXX.,1,Dial(SIP/6381/${EXTEN},,tTwW)
exten => _XXXX.,n,Dial(SIP/quintum/${EXTEN},,tTwW)
exten => _XXXX.,n,Hangup()

exten => _00.,1,Hangup()

exten => 1234567890,1,Dial(SIP/quintum/${EXTEN},,tTwW)
exten => 1234567890,n,Hangup()

exten => 9000,1,Answer
exten => 9000,2,MusicOnHold()

Open in new window

parkpos should start at 701 otherwise extension 700 is a parked position and the extension used to park a calls so it wont work prioperly.

features.conf
[general]
parkext => 700              
parkpos => 701-710

Open in new window

0
 
frankie_jnrAuthor Commented:
ok i have done that. How would i go about retrieving the call? if i just dial 701 from my phone it automatically disconnects the parked call
0
 
grbladesCommented:
You should just dial 701 (or whichever extension it announces).

I see you are using the g729 codec. Have you installed the license for it in Asterisk?
If you havent then it can only pass through the audio which can lead to call disconnection problems if asterisk needs to send any audio to it. If the phones are all on the local network then there is really no need to use anything other than g711 ulaw/alaw. I would change all the phones over to use that instead at least while you are testing.
0
 
frankie_jnrAuthor Commented:
yes it seems that is the problem i have disabled
parkinghints = no          
parkingtime => 65  
comebacktoorigin = yes

and now it is working. How would i go about changing to g711 ulaw/alaw ?
0
 
frankie_jnrAuthor Commented:
could this also be why i am struggling to get moh working?
0
 
grbladesCommented:
Yes using g729 without a license will stop asterisk from being able to convert audio format to or from g729. So moh wont work unless you have the music stored in g729 format. It will also stop asterisk from being able to play back the digits telling you what extension the call has been parked on.

To change it edit your sip.conf and change all lines currently set to :-
allow=g729
to :-
allow=ulaw

If your phones are configured not to permit ulaw then you will need to change that aswell but by default the phones will allow any codec that they support.
Then just reload asterisk and retest.
0
 
frankie_jnrAuthor Commented:
Thank you so much for the help!
0

Featured Post

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now