Hi,

I managed to integrate pn in opensips 3.4 as I get as reply to register from my 
opensips server:

SIP/2.0 200 OK

Via: SIP/2.0/UDP 
192.168.1.14:57993;received=x.x.x.x;branch=z9hG4bK.wxwvFfCSG;rport=57993

To: sip:xx;tag=eeba.752562b862ac8bd9236fb7979b3044b6

From: <sip:xx>;tag=mFddPGSw6

Call-ID: UFVVRWp5rN

CSeq: 23 REGISTER

**Feature-Caps: 
+sip.pns="apns";+sip.pnsreg="130";+sip.pnspurr="3fa.a1d4c.c3fbd0c8"**
****
Server: OpenSIPS (3.4.0 (aarch64/linux))

Content-Length: 0


Also I have a bash script getting token and sending pn to apns developement.
I have pn-prid, pn-param, pn-provider
I want to connect the in the function 




route[pm_send]



{




exit;



}

questions: 
How do I get opensips to call a bash script with arguments? Arguments being 
pn-prid, pn-param, pn-provider.
Where do I place the script?

would that be in my module path?



mpath="/usr/local/lib64/opensips/modules/"


I tried a marg.sh doing:



#!/bin/bash




echo "The first argument is: $1"



echo "The second argument is: $2"



echo "The third argument is: $3"


But I got:



ERROR:core:parse_opensips_cfg: bad config file (4 errors)


Any advise appreciated.

Regards,
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to