similar to: Using SIPPEER status with CUT function? SOLVED

Displaying 20 results from an estimated 1000 matches similar to: "Using SIPPEER status with CUT function? SOLVED"

2010 Jan 20
1
Using SIPPEER status with CUT function?
Hi All, I'm using Asterisk 1.4 branch and checking the status of some SIP Peers with the functions ${SIPPEER(101:status)} and the result is "OK (48 ms)". Seems to work fine. Now I would like to use the function CUT to set a variable with the 'OK' portion of the status "OK (48 ms)" and then do some follow on stuff if the status is OK. I'm running into syntax
2008 Nov 04
1
Is SIPPEER curcalls working for you ?
Hi, In this thread http://lists.digium.com/pipermail/asterisk-users/2008-October/219592.html , I wondered whether SIPPEER curcalls was working. I could test this anew today. Here are my findings : Alice, Bob and Carol ar all using SIP Phones. Whenever Alice is calling Bob, - if Carol is calling Alice, SIPPEER(Alice:curcalls) equals 0 - if Carol is calling Bob, SIPPEER(Bob:curcalls) equals 1
2009 Mar 25
1
SIPPEER equivalent for users.conf ?
Hi, In sip.conf, it's possible to add a line such as setvar=MYFIELD=foo and access this value from diaplan with SIPPEER function. 1. Which function is available to access values in users.conf such as vmsecret ? 2. Is it possible to extend users.conf with custom keys/values ? Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Aug 10
1
DEBUG: Cannot find variable 'XXX' ??
On 1.6.2.11-rc2 I've noticed a bunch of DEBUG statements on startup, such as: == Registered custom function 'SIP_HEADER' [Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot find variable 'SIPPEER' in tree 'description' == Registered custom function 'SIPPEER' [Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot find
2008 Nov 04
0
Is SIPPEER curcalls working for you ? [SOLVED]
2008/11/4 Igor Zamocky <asterix at ponozky.sk> > > Did You tried http://www.voip-info.org/wiki/view/Asterisk+sip+limitonpeers > ? > I didn't. Now I did and it's working the way I wanted. Meanwhile, I had found a (complex) workaround using GROUP, GROUP_COUNT and SIPPEER but limitonpeers is much more concise. Thanks a lot. > > > Hi, > > > In this
2009 Nov 11
2
Bug or feature: SIP chanvars not overriden
Hello, Using 1.6.2-rc5, my settings include: [local-phone](!) context=mylocal type=friend nat=no canreinvite=no host=dynamic qualify=yes dtmf=info language=fr call-limit=5 subscribecontext=subs disallow=all allow=alaw t38pt_udptl=no setvar=accountcode=foo [168](local-phone) defaultuser=168 secret=pass168 callerid=John Doe<168>
2013 Oct 01
0
Feature request: SIPPEER or IAXPEER equivalent for DAHDI
Hello, With setvar statements in chan_dahdi.conf, we have a convenient way to store DAHDI channels specific values. Unfortunately, we don't have a function to access this data from the dialplan as easily as SIPPEER ou IAXPEER would for SIP or IAX trunks. Using AST_CONFIG, you can access DAHDI setvar value but: 1. only one setvar value (see bellow) 2. AST_CONFIG reads values from current
2007 Jan 19
1
Red: Sip Phone CID
Here is what I have in my extensions.conf file now. Trustrcid and sendrcid are turned to "yes" in the conf file. I'm not fully sure how the SIPCalledRPID works though. The example I found seems to try and provide the stuff automatically (id and name), but does the SIPPEER stuff even exist? I think this is probably the right track though. Any insight would be much appreciated.
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all, I'm struck with a very strange problem today. I've an AGI with some code subroutine snippet as follows: sub enable_sbc($) { my $carrier = shift; my $tmp = substr($carrier,1); my $jkh = $tmp; $server_port = $ast_agi->get_variable("SIPPEER($jkh,port)"); $ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)");
2006 Dec 15
2
Trying to forward calls by using the Callee's context as the forward dial context
I'm simply trying to forward calls to users who have the call forwarding feature enabled (FWD Status and FWD Ph Number kept in the astDB). The problem is that I want users to be able to forward calls to numbers that they would normally be allowed to dial within their own context. (I don't want a local call only person forwarding to a long dist number, for example.) I'm able to
2006 May 05
5
Code parsing error?
This code executes just fine, and leaves the SIP peer's mailbox setting from sip.conf in variable target. exten => 1,1,Set(target=${CHANNEL:4}-) exten => 1,n,Set(target=${SIPPEER(${CUT(target,,1)}:mailbox}) exten => 1,n,VoiceMailMain(${target}) However, every time it runs I get an error in the CLI as follows WARNING[5629]: pbx.c:1366 ast_func_read: Can't
2006 Apr 19
1
Sending SIP NOTIFY / How to get remote SIP port?
try, database get SIP/Registry/<peername> it gives you a string which contains the info, then pass it to CUT to extract ip-adr and port Freddi > To do that you need to get the remote ip address and port of the sip peer! > > I found the function: > > ${SIPPEER(exten:ip) > > But how can I get the port??? > >
2014 Nov 06
1
Function to get mailbox for a PJSIP Endpoint?
Howdy, I'm trying to re-write my voicemail check extension. I formerly used the SIPPEER function to get the mailbox for a peer with ${SIPPEER(${peer},mailbox)} Is there a way to do this with PJSIP now that I've converted over? I see a function PJSIP_ENDPOINT and it has a mailboxes subset but I'm not retrieving any data from it when I query it. -- A human being should be
2008 Feb 26
1
Still can't pickup parked call
I'm still struggling to pickup calls. I now have a single context (entryocginternal) where I have "include => parkedcalls". The log below shows me calling from one internal extension to another, then picking up, then parking the call. -- SIP/239-0915d5c8 is ringing -- SIP/239-0915d5c8 answered SIP/233-0915bf40 -- Packet2Packet bridging SIP/233-0915bf40 and
2011 May 19
2
[Fwd: FW: realtime mysql - p4]
Ok, i tried the suggestion: Instead of: sippuser => resource, database_name, table_name sippeer => resource, database_name, table_name I put in: sippuser => resource, context, table_name sippeer => resource, context, table_name Unfortunately, with the same results. btw i tried both "general" as "default" Besids the commands i tried below, isn't there any
2011 Jan 20
2
Accessing a 'user' variable via. dialplan.
Hi, I know you can access various sip variables via 'Set(sstatus=${SIPPEER(201,status)})' (for example) to get the status of the sip user - but what about variables? I have a user that has setvar=123456 in their users.conf (sip.conf if you prefer). I can read it with a 'sip show peer 201' - but that gives everything and parsing that isn't really an option. Anyone know how
2010 Feb 23
2
SIP provider registration attempts
Hi, I am registering my Asterisk boxes to a SIP provider for outgoing calls. My "outgoing" dialplan context tries to dial out in sequence, starting with the SIP provider then ISDN lines and finally analog lines. So the idea is that if the SIP trunk fails then all calls are dialed out via ISDN and analog. I noticed however that if I switch my DSL connection off (ie. no internet access
2009 Jun 04
2
broken pipe in perl agi
Hi gang, Since I'm getting no joy from device_Status or SIPPEER in 1.4.26-rc1, I thought I would do an AGI to read my hints and check for line in use that way. The AGI works fine from a prompt, but returns the dreaded "utils.c:966 ast_carefulwrite: write() returned error: Broken pipe" when I try to run it from the dialplan. Here is my dialplan snippet;
2014 Nov 17
1
Get the status of a PJSIP endpoint?
Is there an equivalent to ${SIPPEER(${peer},status)} for PJSIP? The closest I've been able to get is to use AST_SOURCERY to see if they have a contact ${AST_SORCERY(res_pjsip,aor,${peer},contact) but I'm not certain if I'll still have a contact entry after a phone has gone unreachable? -- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a
2015 Jun 12
1
Voice mail and caller ID
On Fri, 12 Jun 2015 11:49:05 -0700 John Kiniston <johnkiniston at gmail.com> wrote: > Try this for CHAN_SIP: > > same => n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer > same => n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the > mailbox same => n,VoicemailMain(${MailBox}@LocalSets,s) ; If we > have a mailbox defined log into it Perfect.